Class EnvelopeCrypto.Builder
java.lang.Object
com.helixframework.aws.encryption.EnvelopeCrypto.Builder
- Enclosing class:
- EnvelopeCrypto
Builds an instance of
EnvelopeCrypto.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a new instance ofEnvelopeCrypto.AWS KMS Master Key Provider for decryption in discovery mode.withAwsCrypto(com.amazonaws.encryptionsdk.AwsCrypto awsCrypto) AWS encryption sdk.withDecryptMasterKeys(com.amazonaws.encryptionsdk.kms.KmsMasterKeyProvider decryptMasterKeyProvider) AWS KMS Master Key Provider for decryption.withEncryptMasterKeys(com.amazonaws.encryptionsdk.kms.KmsMasterKeyProvider encryptMasterKeyProvider) AWS KMS Master Key Provider for encryption.withEncryptMasterKeys(List<String> masterKeyArns) List of encryption keys for which to create a KMS Master Key provider.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withAwsCrypto
AWS encryption sdk.- Parameters:
awsCrypto- aws encryption sdk- Returns:
- this
EnvelopeCrypto.Builder
-
withEncryptMasterKeys
public EnvelopeCrypto.Builder withEncryptMasterKeys(com.amazonaws.encryptionsdk.kms.KmsMasterKeyProvider encryptMasterKeyProvider) AWS KMS Master Key Provider for encryption.- Parameters:
encryptMasterKeyProvider- kms key provider- Returns:
- this
EnvelopeCrypto.Builder
-
withEncryptMasterKeys
List of encryption keys for which to create a KMS Master Key provider.- Parameters:
masterKeyArns- master key arns- Returns:
- this
EnvelopeCrypto.Builder
-
withDecryptMasterKeys
public EnvelopeCrypto.Builder withDecryptMasterKeys(com.amazonaws.encryptionsdk.kms.KmsMasterKeyProvider decryptMasterKeyProvider) AWS KMS Master Key Provider for decryption.- Parameters:
decryptMasterKeyProvider- kms key provider- Returns:
- this
EnvelopeCrypto.Builder
-
discoverDecryptMasterKeys
AWS KMS Master Key Provider for decryption in discovery mode.- Returns:
- this
EnvelopeCrypto.Builder
-
build
Creates a new instance ofEnvelopeCrypto.- Returns:
- a
EnvelopeCrypto
-