Class: Aws::Plugins::S3RequestSigner::SigningHandler Private

Inherits:
RequestSigner::Handler show all
Defined in:
lib/aws-sdk-core/plugins/s3_request_signer.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

Constants inherited from RequestSigner::Handler

RequestSigner::Handler::COGNITO_IDENTITY_UNSIGNED_REQUESTS, RequestSigner::Handler::SIGNERS, RequestSigner::Handler::STS_UNSIGNED_REQUESTS

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Handler

#handler

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Handler

#initialize, #inspect

Constructor Details

This class inherits a constructor from Seahorse::Client::Handler

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.


13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/aws-sdk-core/plugins/s3_request_signer.rb', line 13

def call(context)
  require_credentials(context)
  version = context.config.signature_version
  case version
  when 'v4' then apply_v4_signature(context)
  when 's3' then apply_s3_legacy_signature(context)
  else
    raise "unsupported signature version #{version.inspect}, valid"\
      " options: 'v4' (default), 's3'"
  end
  @handler.call(context)
end