Class AliCloudKmsClient
java.lang.Object
io.confluent.kafka.schemaregistry.encryption.alicloud.AliCloudKmsClient
- All Implemented Interfaces:
com.google.crypto.tink.KmsClient
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a generic AliCloudKmsClient that is not bound to any specific key.AliCloudKmsClient(String uri) Constructs an AliCloudKmsClient that is bound to a single key identified byuri.AliCloudKmsClient(Map<String, ?> configs, Optional<String> kekUrl) -
Method Summary
Modifier and TypeMethodDescriptionbooleandoesSupport(String uri) com.google.crypto.tink.Aeadstatic voidCreates and registers an Alibaba Cloud KMS client with the Tink runtime.com.google.crypto.tink.KmsClientwithCredentials(String credentialPath) com.google.crypto.tink.KmsClient
-
Field Details
-
PREFIX
The prefix of all keys stored in Alibaba Cloud KMS.- See Also:
-
-
Constructor Details
-
AliCloudKmsClient
public AliCloudKmsClient()Constructs a generic AliCloudKmsClient that is not bound to any specific key. -
AliCloudKmsClient
Constructs an AliCloudKmsClient that is bound to a single key identified byuri. -
AliCloudKmsClient
public AliCloudKmsClient(Map<String, ?> configs, Optional<String> kekUrl) throws GeneralSecurityException- Throws:
GeneralSecurityException
-
-
Method Details
-
doesSupport
- Specified by:
doesSupportin interfacecom.google.crypto.tink.KmsClient
-
withCredentials
public com.google.crypto.tink.KmsClient withCredentials(String credentialPath) throws GeneralSecurityException - Specified by:
withCredentialsin interfacecom.google.crypto.tink.KmsClient- Throws:
GeneralSecurityException
-
withDefaultCredentials
public com.google.crypto.tink.KmsClient withDefaultCredentials()- Specified by:
withDefaultCredentialsin interfacecom.google.crypto.tink.KmsClient
-
getAead
- Specified by:
getAeadin interfacecom.google.crypto.tink.KmsClient- Throws:
GeneralSecurityException
-
register
public static void register(Optional<String> keyUri, Optional<String> credentialPath) throws GeneralSecurityException Creates and registers an Alibaba Cloud KMS client with the Tink runtime.- Throws:
GeneralSecurityException
-