Class: Aws::S3::EncryptionV3::EncryptHandler Private

Inherits:
Seahorse::Client::Handler
  • Object
show all
Defined in:
lib/aws-sdk-s3/encryptionV3/encrypt_handler.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.

API:

  • private

Instance Method Summary collapse

Instance Method Details

#call(context) ⇒ 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.

API:

  • private



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/aws-sdk-s3/encryptionV3/encrypt_handler.rb', line 10

def call(context)
  envelope, cipher = context[:encryption][:cipher_provider]
                     .encryption_cipher(
                       kms_encryption_context: context[:encryption][:kms_encryption_context]
                     )
  context[:encryption][:cipher] = cipher
  apply_encryption_envelope(context, envelope)
  apply_encryption_cipher(context, cipher)
  apply_cse_user_agent(context)
  @handler.call(context)
end