Class EncryptionMaterialsRequest
- java.lang.Object
-
- com.amazonaws.encryptionsdk.model.EncryptionMaterialsRequest
-
public final class EncryptionMaterialsRequest extends Object
Contains the contextual information needed to prepare an encryption operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EncryptionMaterialsRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
CommitmentPolicy
getCommitmentPolicy()
Map<String,String>
getContext()
byte[]
getPlaintext()
long
getPlaintextSize()
CryptoAlgorithm
getRequestedAlgorithm()
int
hashCode()
static EncryptionMaterialsRequest.Builder
newBuilder()
EncryptionMaterialsRequest.Builder
toBuilder()
-
-
-
Method Detail
-
getContext
public Map<String,String> getContext()
- Returns:
- the encryption context (possibly an empty map)
-
getRequestedAlgorithm
public CryptoAlgorithm getRequestedAlgorithm()
- Returns:
- If a specific encryption algorithm was requested by calling
AwsCrypto.setEncryptionAlgorithm(CryptoAlgorithm)
, the algorithm requested. Otherwise, returns null.
-
getPlaintextSize
public long getPlaintextSize()
- Returns:
- The size of the plaintext if known, or -1 otherwise
-
getPlaintext
public byte[] getPlaintext()
- Returns:
- The entire input plaintext, if available (and not streaming). Note that for performance reason this is not a copy of the plaintext; you should never modify this buffer, lest the actual data being encrypted be modified. If the input plaintext is unavailable, this will be null.
-
getCommitmentPolicy
public CommitmentPolicy getCommitmentPolicy()
-
toBuilder
public EncryptionMaterialsRequest.Builder toBuilder()
-
newBuilder
public static EncryptionMaterialsRequest.Builder newBuilder()
-
-