Class DefaultCryptoMaterialsManager
- java.lang.Object
-
- software.amazon.encryption.s3.materials.DefaultCryptoMaterialsManager
-
- All Implemented Interfaces:
CryptographicMaterialsManager
public class DefaultCryptoMaterialsManager extends Object implements CryptographicMaterialsManager
Default implementation ofCryptographicMaterialsManagerthat uses a Keyring to obtain cryptographic materials. This CMM calls the keyring's onEncrypt and onDecrypt operations to prepare the cryptographic materials for each request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultCryptoMaterialsManager.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultCryptoMaterialsManager.Builderbuilder()DecryptionMaterialsdecryptMaterials(DecryptMaterialsRequest request)Returns decryption materials appropriate for the given request.EncryptionMaterialsgetEncryptionMaterials(EncryptionMaterialsRequest request)Returns encryption materials appropriate for the given request.
-
-
-
Method Detail
-
builder
public static DefaultCryptoMaterialsManager.Builder builder()
-
getEncryptionMaterials
public EncryptionMaterials getEncryptionMaterials(EncryptionMaterialsRequest request)
Description copied from interface:CryptographicMaterialsManagerReturns encryption materials appropriate for the given request.- Specified by:
getEncryptionMaterialsin interfaceCryptographicMaterialsManager- Parameters:
request- the encryption materials request containing encryption context, commitment policy, and other configuration- Returns:
- encryption materials including plaintext data key, encrypted data keys, algorithm suite, and encryption context
-
decryptMaterials
public DecryptionMaterials decryptMaterials(DecryptMaterialsRequest request)
Description copied from interface:CryptographicMaterialsManagerReturns decryption materials appropriate for the given request.- Specified by:
decryptMaterialsin interfaceCryptographicMaterialsManager- Parameters:
request- the decrypt materials request containing algorithm suite, encrypted data keys, and encryption context- Returns:
- decryption materials including plaintext data key and encryption context
-
-