Class: Aws::S3::EncryptionV3::DefaultKeyProvider Private
- Inherits:
-
Object
- Object
- Aws::S3::EncryptionV3::DefaultKeyProvider
- Includes:
- KeyProvider
- Defined in:
- lib/aws-sdk-s3/encryptionV3/default_key_provider.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
The default key provider is constructed with a single key that is used for both encryption and decryption, ignoring the possible per-object envelope encryption materials description.
Instance Attribute Summary collapse
- #encryption_materials ⇒ Materials readonly private
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DefaultKeyProvider
constructor
private
A new instance of DefaultKeyProvider.
-
#key_for(_materials_description) ⇒ Object
private
Returns the key given in the constructor.
Constructor Details
#initialize(options = {}) ⇒ DefaultKeyProvider
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DefaultKeyProvider.
17 18 19 20 21 22 |
# File 'lib/aws-sdk-s3/encryptionV3/default_key_provider.rb', line 17 def initialize( = {}) @encryption_materials = Materials.new( key: [:encryption_key], description: [:materials_description] || '{}' ) end |
Instance Attribute Details
#encryption_materials ⇒ Materials (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 |
# File 'lib/aws-sdk-s3/encryptionV3/default_key_provider.rb', line 25 def encryption_materials @encryption_materials end |
Instance Method Details
#key_for(_materials_description) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the key given in the constructor.
29 30 31 |
# File 'lib/aws-sdk-s3/encryptionV3/default_key_provider.rb', line 29 def key_for(_materials_description) @encryption_materials.key end |