Class: Aws::S3::Encryption::DecryptHandler Private

Inherits:
Seahorse::Client::Handler
  • Object
show all
Defined in:
lib/aws-sdk-s3/encryption/decrypt_handler.rb

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.

Constant Summary collapse

V1_ENVELOPE_KEYS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

%w(
  x-amz-key
  x-amz-iv
  x-amz-matdesc
)
V2_ENVELOPE_KEYS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

%w(
  x-amz-key-v2
  x-amz-iv
  x-amz-cek-alg
  x-amz-wrap-alg
  x-amz-matdesc
)
V2_OPTIONAL_KEYS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

%w(x-amz-tag-len)
POSSIBLE_ENVELOPE_KEYS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

(V1_ENVELOPE_KEYS +
V2_ENVELOPE_KEYS + V2_OPTIONAL_KEYS).uniq
POSSIBLE_WRAPPING_FORMATS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

%w(
  AES/GCM
  kms
  kms+context
  RSA-OAEP-SHA1
)
POSSIBLE_ENCRYPTION_FORMATS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

%w(
  AES/GCM/NoPadding
  AES/CBC/PKCS5Padding
  AES/CBC/PKCS7Padding
)
AUTH_REQUIRED_CEK_ALGS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

%w(AES/GCM/NoPadding)
@@warned_response_target_proc =

This classvariable is part of a private API. You should avoid using this classvariable if possible, as it may be removed or be changed in the future.

false

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.



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/aws-sdk-s3/encryption/decrypt_handler.rb', line 46

def call(context)
  attach_http_event_listeners(context)
  apply_cse_user_agent(context)

  if context[:response_target].is_a?(Proc) && !@@warned_response_target_proc
    @@warned_response_target_proc = true
    warn(':response_target is a Proc, or a block was provided. ' \
      'Read the entire object to the ' \
      'end before you start using the decrypted data. This is to ' \
      'verify that the object has not been modified since it ' \
      'was encrypted.')
  end

  @handler.call(context)
end