Class EncryptionMaterials
java.lang.Object
com.amazonaws.encryptionsdk.model.EncryptionMaterials
Contains the cryptographic materials needed for an encryption operation.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
The algorithm to use for this encryption operation.The cleartext data key to use for encrypting this message.The KeyBlobs to serialize (in cleartext) into the encrypted message.The encryption context to use for the encryption operation.Contains a list of all MasterKeys that could decrypt this message.The private key to be used to sign the message trailer.int
hashCode()
static EncryptionMaterials.Builder
-
Method Details
-
toBuilder
-
newBuilder
-
getAlgorithm
The algorithm to use for this encryption operation. Must match the algorithm in EncryptionMaterialsRequest, if that algorithm was non-null. -
getEncryptionContext
The encryption context to use for the encryption operation. Does not need to match the EncryptionMaterialsRequest. -
getEncryptedDataKeys
The KeyBlobs to serialize (in cleartext) into the encrypted message. -
getCleartextDataKey
The cleartext data key to use for encrypting this message. Note that this is the data key prior to any key derivation required by the crypto algorithm in use. -
getTrailingSignatureKey
The private key to be used to sign the message trailer. Must be present if any only if required by the crypto algorithm, and the key type must likewise match the algorithm in use.Note that it's the
CryptoMaterialsManager
's responsibility to find a place to put the public key; typically, this will be in the encryption context, to improve cross-compatibility, but this is not a strict requirement. -
getMasterKeys
Contains a list of all MasterKeys that could decrypt this message. -
equals
-
hashCode
public int hashCode()
-