Class GcpKmsDriver
java.lang.Object
io.confluent.kafka.schemaregistry.encryption.gcp.GcpKmsDriver
- All Implemented Interfaces:
KmsDriver
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface io.confluent.kafka.schemaregistry.encryption.tink.KmsDriver
KMS_TYPE_SUFFIX, TEST_CLIENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.crypto.tink.KmsClientnewKmsClient(Map<String, ?> configs, Optional<String> kekUrl) protected static com.google.crypto.tink.KmsClientnewKmsClientWithCloudKms(Optional<String> keyUri, Optional<com.google.auth.oauth2.GoogleCredentials> credentials, com.google.api.services.cloudkms.v1.CloudKMS cloudKms) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.confluent.kafka.schemaregistry.encryption.tink.KmsDriver
doesSupport, getKmsClient, getTestClient, registerKmsClient
-
Field Details
-
ACCOUNT_TYPE
- See Also:
-
CLIENT_ID
- See Also:
-
CLIENT_EMAIL
- See Also:
-
PRIVATE_KEY_ID
- See Also:
-
PRIVATE_KEY
- See Also:
-
-
Constructor Details
-
GcpKmsDriver
public GcpKmsDriver()
-
-
Method Details
-
getKeyUrlPrefix
- Specified by:
getKeyUrlPrefixin interfaceKmsDriver
-
newKmsClient
public com.google.crypto.tink.KmsClient newKmsClient(Map<String, ?> configs, Optional<String> kekUrl) throws GeneralSecurityException- Specified by:
newKmsClientin interfaceKmsDriver- Throws:
GeneralSecurityException
-
newKmsClientWithCloudKms
protected static com.google.crypto.tink.KmsClient newKmsClientWithCloudKms(Optional<String> keyUri, Optional<com.google.auth.oauth2.GoogleCredentials> credentials, com.google.api.services.cloudkms.v1.CloudKMS cloudKms) throws GeneralSecurityException - Throws:
GeneralSecurityException
-