Static Provider

Cryptographic materials provider for use with pre-configured encryption and decryption materials.

class dynamodb_encryption_sdk.material_providers.static.StaticCryptographicMaterialsProvider(decryption_materials=None, encryption_materials=None)[source]

Bases: dynamodb_encryption_sdk.material_providers.CryptographicMaterialsProvider

Manually combine encryption and decryption materials for use as a cryptographic materials provider.

Parameters:
  • decryption_materials (DecryptionMaterials) – Decryption materials to provide (optional)
  • encryption_materials (EncryptionMaterials) – Encryption materials to provide (optional)
decryption_materials(encryption_context)[source]

Return the static decryption materials.

Parameters:encryption_context (EncryptionContext) – Encryption context for request (not used by StaticCryptographicMaterialsProvider)
Raises:AttributeError – if no decryption materials are available
encryption_materials(encryption_context)[source]

Return the static encryption materials.

Parameters:encryption_context (EncryptionContext) – Encryption context for request (not used by StaticCryptographicMaterialsProvider)
Raises:AttributeError – if no encryption materials are available