Module: Aws::S3::EncryptionV2::KeyProvider
- Defined in:
- gems/aws-sdk-s3/lib/aws-sdk-s3/encryptionV2/key_provider.rb
Overview
This module defines the interface required for a Client#key_provider. A key provider is any object that:
Responds to #encryption_materials with an Materials object.
Responds to #key_for, receiving a JSON document String, returning an encryption key. The returned encryption key must be one of:
OpenSSL::PKey::RSA
- for asymmetric encryptionString
- 32, 24, or 16 bytes long, for symmetric encryption
Instance Method Summary collapse
-
#encryption_materials ⇒ Materials
-
#key_for(materials_description) ⇒ OpenSSL::PKey::RSA, String
Encryption_key.
Instance Method Details
#encryption_materials ⇒ Materials
22 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/encryptionV2/key_provider.rb', line 22 def encryption_materials; end |
#key_for(materials_description) ⇒ OpenSSL::PKey::RSA, String
Returns encryption_key.
26 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/encryptionV2/key_provider.rb', line 26 def key_for(materials_description); end |