Class: Aws::Sigv4::Signature

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sigv4/signature.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Signature

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 Signature.



6
7
8
9
10
# File 'lib/aws-sigv4/signature.rb', line 6

def initialize(options)
  options.each_pair do |attr_name, attr_value|
    send("#{attr_name}=", attr_value)
  end
end

Instance Attribute Details

#canonical_requestString

Returns For debugging purposes.

Returns:

  • (String)

    For debugging purposes.



25
26
27
# File 'lib/aws-sigv4/signature.rb', line 25

def canonical_request
  @canonical_request
end

#content_sha256String

Returns For debugging purposes.

Returns:

  • (String)

    For debugging purposes.



31
32
33
# File 'lib/aws-sigv4/signature.rb', line 31

def content_sha256
  @content_sha256
end

#headersHash<String,String>

Returns A hash of headers that should be applied to the HTTP request. Header keys are lower cased strings and may include the following:

  • ‘host’

  • ‘x-amz-date’

  • ‘x-amz-security-token’

  • ‘x-amz-content-sha256’

  • ‘authorization’.

Returns:

  • (Hash<String,String>)

    A hash of headers that should be applied to the HTTP request. Header keys are lower cased strings and may include the following:

    • ‘host’

    • ‘x-amz-date’

    • ‘x-amz-security-token’

    • ‘x-amz-content-sha256’

    • ‘authorization’



22
23
24
# File 'lib/aws-sigv4/signature.rb', line 22

def headers
  @headers
end

#string_to_signString

Returns For debugging purposes.

Returns:

  • (String)

    For debugging purposes.



28
29
30
# File 'lib/aws-sigv4/signature.rb', line 28

def string_to_sign
  @string_to_sign
end