Class: Aws::Plugins::Sign::Handler Private

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

API:

  • private



39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/aws-sdk-core/plugins/sign.rb', line 39

def call(context)
  # Skip signing if using sigv2 signing from s3_signer in S3
  unless v2_signing?(context.config)
    signer = Sign.signer_for(
      context[:auth_scheme],
      context.config,
      context[:sigv4_region],
      context[:sigv4_credentials]
    )
    signer.sign(context)
  end
  with_metrics(signer) { @handler.call(context) }
end