Package com.amazonaws.encryptionsdk
Class MasterKeyRequest
- java.lang.Object
-
- com.amazonaws.encryptionsdk.MasterKeyRequest
-
public final class MasterKeyRequest extends Object
Contains information whichMasterKeyProviders can use to select whichMasterKeys to use to protect a given plaintext. This class is immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMasterKeyRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getEncryptionContext()byte[]getPlaintext()The plaintext, if available, to be protected by this request.longgetSize()The size of the plaintext, if available.booleanisStreaming()static MasterKeyRequest.BuildernewBuilder()
-
-
-
Method Detail
-
isStreaming
public boolean isStreaming()
-
getPlaintext
public byte[] getPlaintext()
The plaintext, if available, to be protected by this request. Otherwise,null.
-
getSize
public long getSize()
The size of the plaintext, if available. Otherwise-1.
-
newBuilder
public static MasterKeyRequest.Builder newBuilder()
-
-