Class AwsKmsDriver
java.lang.Object
io.confluent.kafka.schemaregistry.encryption.aws.AwsKmsDriver
- All Implemented Interfaces:
KmsDriver
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic 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 TypeMethodDescriptionstatic software.amazon.awssdk.regions.RegiongetRegionFromKeyId(String keyId) com.google.crypto.tink.KmsClientnewKmsClient(Map<String, ?> configs, Optional<String> kekUrl) protected static com.google.crypto.tink.KmsClientnewKmsClientWithAwsKms(Optional<String> keyUri, Optional<software.amazon.awssdk.auth.credentials.AwsCredentialsProvider> credentials, software.amazon.awssdk.services.kms.KmsClient awsKms) 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
-
ACCESS_KEY_ID
- See Also:
-
SECRET_ACCESS_KEY
- See Also:
-
PROFILE
- See Also:
-
ROLE_ARN
- See Also:
-
ROLE_SESSION_NAME
- See Also:
-
ROLE_EXTERNAL_ID
- See Also:
-
AWS_ROLE_ARN
- See Also:
-
AWS_ROLE_SESSION_NAME
- See Also:
-
AWS_ROLE_EXTERNAL_ID
- See Also:
-
-
Constructor Details
-
AwsKmsDriver
public AwsKmsDriver()
-
-
Method Details
-
getKeyUrlPrefix
- Specified by:
getKeyUrlPrefixin interfaceKmsDriver
-
getRegionFromKeyId
-
newKmsClient
public com.google.crypto.tink.KmsClient newKmsClient(Map<String, ?> configs, Optional<String> kekUrl) throws GeneralSecurityException- Specified by:
newKmsClientin interfaceKmsDriver- Throws:
GeneralSecurityException
-
newKmsClientWithAwsKms
protected static com.google.crypto.tink.KmsClient newKmsClientWithAwsKms(Optional<String> keyUri, Optional<software.amazon.awssdk.auth.credentials.AwsCredentialsProvider> credentials, software.amazon.awssdk.services.kms.KmsClient awsKms) throws GeneralSecurityException - Throws:
GeneralSecurityException
-