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 EncryptionMaterialsRequest
build()
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.long
getPlaintextSize()
CryptoAlgorithm
getRequestedAlgorithm()
EncryptionMaterialsRequest.Builder
setContext(Map<String,String> context)
EncryptionMaterialsRequest.Builder
setPlaintext(byte[] plaintext)
Sets the plaintext field of the request.EncryptionMaterialsRequest.Builder
setPlaintextSize(long plaintextSize)
EncryptionMaterialsRequest.Builder
setRequestedAlgorithm(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.
-
-