Class KmsKeyFactory
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.security.KmsKeyFactory
-
- All Implemented Interfaces:
EncryptionKeyFactory
public class KmsKeyFactory extends Object implements EncryptionKeyFactory
An EncryptionKeyFactory that is backed by AWS KMS.- See Also:
EncryptionKeyFactory
-
-
Constructor Summary
Constructors Constructor Description KmsKeyFactory(software.amazon.awssdk.services.kms.KmsClient kmsClient, String masterKeyId)
-
-
-
Constructor Detail
-
KmsKeyFactory
public KmsKeyFactory(software.amazon.awssdk.services.kms.KmsClient kmsClient, String masterKeyId)
-
-
Method Detail
-
create
public EncryptionKey create()
- Specified by:
create
in interfaceEncryptionKeyFactory
- Returns:
- A key that satisfies the specification defined in BlockCrypto
-
-