aws_encryption_sdk.materials_managers.default

Default crypto material manager class.

Classes

DefaultCryptoMaterialsManager(…) Default crypto material manager.
class aws_encryption_sdk.materials_managers.default.DefaultCryptoMaterialsManager(master_key_provider)

Bases: aws_encryption_sdk.materials_managers.base.CryptoMaterialsManager

Default crypto material manager.

New in version 1.3.0.

Parameters:master_key_provider (aws_encryption_sdk.key_providers.base.MasterKeyProvider) – Master key provider to use
decrypt_materials(request)

Obtains a plaintext data key from one or more encrypted data keys using underlying master key provider.

Parameters:request (aws_encryption_sdk.materials_managers.DecryptionMaterialsRequest) – decrypt materials request
Returns:decryption materials
Return type:aws_encryption_sdk.materials_managers.DecryptionMaterials
get_encryption_materials(request)

Creates encryption materials using underlying master key provider.

Parameters:

request (aws_encryption_sdk.materials_managers.EncryptionMaterialsRequest) – encryption materials request

Returns:

encryption materials

Return type:

aws_encryption_sdk.materials_managers.EncryptionMaterials

Raises:
  • MasterKeyProviderError – if no master keys are available from the underlying master key provider
  • MasterKeyProviderError – if the primary master key provided by the underlying master key provider is not included in the full set of master keys provided by that provider