| Constructor and Description |
|---|
AzureKmsClient() |
AzureKmsClient(String uri)
Constructs a specific AzureKmsClient that is bound to a single key identified by
uri. |
AzureKmsClient(String uri,
com.azure.security.keyvault.keys.cryptography.models.EncryptionAlgorithm algorithm)
Constructs a specific AzureKmsClient that is bound to a single key identified by
uri
and specified EncryptionAlgorithm. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesSupport(String uri) |
com.google.crypto.tink.Aead |
getAead(String uri)
Returns
AzureKmsAead for the url provided. |
com.google.crypto.tink.KmsClient |
withCredentials(String credentialPath)
Loads Azure credentials from a properties file.
|
com.google.crypto.tink.KmsClient |
withCredentialsProvider(com.azure.core.credential.TokenCredential provider)
loads credentials using provided
TokenCredential |
com.google.crypto.tink.KmsClient |
withCryptographyClient(com.azure.security.keyvault.keys.cryptography.CryptographyClient cryptographyClient)
Specifies the
CryptographyClient object to be used. |
com.google.crypto.tink.KmsClient |
withDefaultCredentials()
Loads credentials using
DefaultAzureCredentialBuilder Creates default
DefaultAzureCredential instance. |
public static final String PREFIX
public AzureKmsClient()
public AzureKmsClient(String uri)
uri.public AzureKmsClient(String uri, com.azure.security.keyvault.keys.cryptography.models.EncryptionAlgorithm algorithm)
uri
and specified EncryptionAlgorithm.uri - urialgorithm - algorithmpublic boolean doesSupport(String uri)
doesSupport in interface com.google.crypto.tink.KmsClientPREFIX, or the client is a specific one that is bound to the key
identified by uri.public com.google.crypto.tink.KmsClient withCredentials(String credentialPath) throws GeneralSecurityException
withCredentials in interface com.google.crypto.tink.KmsClientGeneralSecurityExceptionpublic com.google.crypto.tink.KmsClient withDefaultCredentials()
throws GeneralSecurityException
DefaultAzureCredentialBuilder Creates default
DefaultAzureCredential instance. Uses AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, and AZURE_TENANT_ID
environment variables to create a ClientSecretCredential. If these environment variables are
not available, then this will use the Shared MSAL token cache.withDefaultCredentials in interface com.google.crypto.tink.KmsClientGeneralSecurityException - security exceptionpublic com.google.crypto.tink.KmsClient withCredentialsProvider(com.azure.core.credential.TokenCredential provider)
throws GeneralSecurityException
TokenCredentialGeneralSecurityException - security exceptionpublic com.google.crypto.tink.KmsClient withCryptographyClient(com.azure.security.keyvault.keys.cryptography.CryptographyClient cryptographyClient)
CryptographyClient object to be used. Only used for testing.public com.google.crypto.tink.Aead getAead(String uri) throws GeneralSecurityException
AzureKmsAead for the url provided.getAead in interface com.google.crypto.tink.KmsClienturi - - azure keyvault key uriGeneralSecurityException - security exceptionCopyright © 2025 Confluent, Inc.. All rights reserved.