Class EncryptionMaterials.Builder
- java.lang.Object
-
- com.amazonaws.encryptionsdk.model.EncryptionMaterials.Builder
-
- Enclosing class:
- EncryptionMaterials
public static class EncryptionMaterials.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionMaterialsbuild()CryptoAlgorithmgetAlgorithm()SecretKeygetCleartextDataKey()List<KeyBlob>getEncryptedDataKeys()Map<String,String>getEncryptionContext()List<MasterKey>getMasterKeys()PrivateKeygetTrailingSignatureKey()EncryptionMaterials.BuildersetAlgorithm(CryptoAlgorithm algorithm)EncryptionMaterials.BuildersetCleartextDataKey(SecretKey cleartextDataKey)EncryptionMaterials.BuildersetEncryptedDataKeys(List<KeyBlob> encryptedDataKeys)EncryptionMaterials.BuildersetEncryptionContext(Map<String,String> encryptionContext)EncryptionMaterials.BuildersetMasterKeys(List<MasterKey> masterKeys)EncryptionMaterials.BuildersetTrailingSignatureKey(PrivateKey trailingSignatureKey)
-
-
-
Method Detail
-
build
public EncryptionMaterials build()
-
getAlgorithm
public CryptoAlgorithm getAlgorithm()
-
setAlgorithm
public EncryptionMaterials.Builder setAlgorithm(CryptoAlgorithm algorithm)
-
setEncryptionContext
public EncryptionMaterials.Builder setEncryptionContext(Map<String,String> encryptionContext)
-
setEncryptedDataKeys
public EncryptionMaterials.Builder setEncryptedDataKeys(List<KeyBlob> encryptedDataKeys)
-
getCleartextDataKey
public SecretKey getCleartextDataKey()
-
setCleartextDataKey
public EncryptionMaterials.Builder setCleartextDataKey(SecretKey cleartextDataKey)
-
getTrailingSignatureKey
public PrivateKey getTrailingSignatureKey()
-
setTrailingSignatureKey
public EncryptionMaterials.Builder setTrailingSignatureKey(PrivateKey trailingSignatureKey)
-
setMasterKeys
public EncryptionMaterials.Builder setMasterKeys(List<MasterKey> masterKeys)
-
-