Class: Aws::Signers::Base Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-core/signers/base.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.

Direct Known Subclasses

V2, V3

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(credentials) ⇒ Base

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.

Returns a new instance of Base.

Parameters:



8
9
10
# File 'lib/aws-sdk-core/signers/base.rb', line 8

def initialize(credentials)
  @credentials = credentials.credentials
end

Class Method Details

.sign(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.

Parameters:



24
25
26
# File 'lib/aws-sdk-core/signers/base.rb', line 24

def sign(context)
  new(context.config.credentials).sign(context.http_request)
end