Package com.amazonaws.encryptionsdk
Class MasterKeyRequest
- java.lang.Object
-
- com.amazonaws.encryptionsdk.MasterKeyRequest
-
public final class MasterKeyRequest extends Object
Contains information whichMasterKeyProvider
s can use to select whichMasterKey
s to use to protect a given plaintext. This class is immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MasterKeyRequest.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.long
getSize()
The size of the plaintext, if available.boolean
isStreaming()
static MasterKeyRequest.Builder
newBuilder()
-
-
-
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()
-
-