Package com.amazonaws.encryptionsdk
Class DefaultCryptoMaterialsManager
java.lang.Object
com.amazonaws.encryptionsdk.DefaultCryptoMaterialsManager
- All Implemented Interfaces:
CryptoMaterialsManager
The default implementation of
CryptoMaterialsManager, used implicitly when passing a
MasterKeyProvider to methods in AwsCrypto.
This default implementation delegates to a specific MasterKeyProvider specified at
construction time. It also handles generating trailing signature keys when needed, placing them
in the encryption context (and extracting them at decrypt time).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecryptMaterials(DecryptionMaterialsRequest request)Prepares materials for an encrypt request.
-
Constructor Details
-
DefaultCryptoMaterialsManager
- Parameters:
mkp- The master key provider to delegate to
-
-
Method Details
-
getMaterialsForEncrypt
Description copied from interface:CryptoMaterialsManagerPrepares materials for an encrypt request. The resulting materials result must have a cleartext data key and (if applicable for the crypto algorithm in use) a trailing signature key.The encryption context returned may be different from the one passed in the materials request, and will be serialized (in cleartext) within the encrypted message.
- Specified by:
getMaterialsForEncryptin interfaceCryptoMaterialsManager- Returns:
- See Also:
EncryptionMaterials,EncryptionMaterialsRequest
-
decryptMaterials
- Specified by:
decryptMaterialsin interfaceCryptoMaterialsManager
-