Class AzureKmsDriver
java.lang.Object
io.confluent.kafka.schemaregistry.encryption.azure.AzureKmsDriver
- All Implemented Interfaces:
KmsDriver
-
Field Summary
FieldsFields 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.KmsClientnewKmsClientWithAzureKms(Optional<String> keyUri, Optional<com.azure.core.credential.TokenCredential> credentials, com.azure.security.keyvault.keys.cryptography.CryptographyClient cryptographyClient) 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
-
TENANT_ID
- See Also:
-
CLIENT_ID
- See Also:
-
CLIENT_SECRET
- See Also:
-
-
Constructor Details
-
AzureKmsDriver
public AzureKmsDriver()
-
-
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
-
newKmsClientWithAzureKms
protected static com.google.crypto.tink.KmsClient newKmsClientWithAzureKms(Optional<String> keyUri, Optional<com.azure.core.credential.TokenCredential> credentials, com.azure.security.keyvault.keys.cryptography.CryptographyClient cryptographyClient) throws GeneralSecurityException - Throws:
GeneralSecurityException
-