Class EncryptionMaterialsRequest.Builder
- java.lang.Object
-
- com.amazonaws.encryptionsdk.model.EncryptionMaterialsRequest.Builder
-
- Enclosing class:
- EncryptionMaterialsRequest
public static class EncryptionMaterialsRequest.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionMaterialsRequestbuild()CommitmentPolicygetCommitmentPolicy()Map<String,String>getContext()byte[]getPlaintext()Please note that this does not make a defensive copy of the plaintext and so any modifications made to the backing array will be reflected in this Builder.longgetPlaintextSize()CryptoAlgorithmgetRequestedAlgorithm()EncryptionMaterialsRequest.BuildersetCommitmentPolicy(CommitmentPolicy commitmentPolicy)EncryptionMaterialsRequest.BuildersetContext(Map<String,String> context)EncryptionMaterialsRequest.BuildersetPlaintext(byte[] plaintext)Sets the plaintext field of the request.EncryptionMaterialsRequest.BuildersetPlaintextSize(long plaintextSize)EncryptionMaterialsRequest.BuildersetRequestedAlgorithm(CryptoAlgorithm requestedAlgorithm)
-
-
-
Method Detail
-
build
public EncryptionMaterialsRequest build()
-
setContext
public EncryptionMaterialsRequest.Builder setContext(Map<String,String> context)
-
getRequestedAlgorithm
public CryptoAlgorithm getRequestedAlgorithm()
-
setRequestedAlgorithm
public EncryptionMaterialsRequest.Builder setRequestedAlgorithm(CryptoAlgorithm requestedAlgorithm)
-
getPlaintextSize
public long getPlaintextSize()
-
setPlaintextSize
public EncryptionMaterialsRequest.Builder setPlaintextSize(long plaintextSize)
-
getPlaintext
public byte[] getPlaintext()
Please note that this does not make a defensive copy of the plaintext and so any modifications made to the backing array will be reflected in this Builder.
-
setPlaintext
public EncryptionMaterialsRequest.Builder setPlaintext(byte[] plaintext)
Sets the plaintext field of the request. Please note that this does not make a defensive copy of the plaintext and so any modifications made to the backing array will be reflected in this Builder. This method implicitly sets plaintext size as well.
-
getCommitmentPolicy
public CommitmentPolicy getCommitmentPolicy()
-
setCommitmentPolicy
public EncryptionMaterialsRequest.Builder setCommitmentPolicy(CommitmentPolicy commitmentPolicy)
-
-