Interface KmsDriver
public interface KmsDriver
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault booleandoesSupport(String keyUri) default com.google.crypto.tink.KmsClientgetKmsClient(String kekUrl) default ObjectgetTestClient(Map<String, ?> configs) com.google.crypto.tink.KmsClientnewKmsClient(Map<String, ?> configs, Optional<String> kekUrl) default com.google.crypto.tink.KmsClientregisterKmsClient(Map<String, ?> configs, Optional<String> kekUrl)
-
Field Details
-
KMS_TYPE_SUFFIX
- See Also:
-
TEST_CLIENT
- See Also:
-
-
Method Details
-
getKeyUrlPrefix
String getKeyUrlPrefix() -
newKmsClient
com.google.crypto.tink.KmsClient newKmsClient(Map<String, ?> configs, Optional<String> kekUrl) throws GeneralSecurityException- Throws:
GeneralSecurityException
-
doesSupport
- Returns:
- true if this client does support
keyUri
-
getKmsClient
default com.google.crypto.tink.KmsClient getKmsClient(String kekUrl) throws GeneralSecurityException - Throws:
GeneralSecurityException
-
registerKmsClient
default com.google.crypto.tink.KmsClient registerKmsClient(Map<String, ?> configs, Optional<String> kekUrl) throws GeneralSecurityException- Throws:
GeneralSecurityException
-
getTestClient
-