Package com.amazonaws.encryptionsdk
Class MasterKeyRequest.Builder
- java.lang.Object
-
- com.amazonaws.encryptionsdk.MasterKeyRequest.Builder
-
- Enclosing class:
- MasterKeyRequest
public static final class MasterKeyRequest.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MasterKeyRequestbuild()Map<String,String>getEncryptionContext()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.longgetSize()booleanisStreaming()MasterKeyRequest.BuildersetEncryptionContext(Map<String,String> encryptionContext)MasterKeyRequest.BuildersetPlaintext(byte[] plaintext)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.MasterKeyRequest.BuildersetSize(long size)MasterKeyRequest.BuildersetStreaming(boolean isStreaming)
-
-
-
Method Detail
-
setEncryptionContext
public MasterKeyRequest.Builder setEncryptionContext(Map<String,String> encryptionContext)
-
isStreaming
public boolean isStreaming()
-
setStreaming
public MasterKeyRequest.Builder setStreaming(boolean isStreaming)
-
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 MasterKeyRequest.Builder setPlaintext(byte[] plaintext)
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.
-
setSize
public MasterKeyRequest.Builder setSize(long size)
-
getSize
public long getSize()
-
build
public MasterKeyRequest build()
-
-