Class: Aws::Sigv4::Signature
- Inherits:
-
Object
- Object
- Aws::Sigv4::Signature
- Defined in:
- lib/aws-sigv4/signature.rb
Instance Attribute Summary collapse
-
#canonical_request ⇒ String
For debugging purposes.
-
#content_sha256 ⇒ String
For debugging purposes.
-
#extra ⇒ Hash
Internal data for debugging purposes.
-
#headers ⇒ Hash<String,String>
A hash of headers that should be applied to the HTTP request.
-
#string_to_sign ⇒ String
For debugging purposes.
Instance Method Summary collapse
-
#initialize(options) ⇒ Signature
constructor
private
A new instance of Signature.
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.
8 9 10 11 12 |
# File 'lib/aws-sigv4/signature.rb', line 8 def initialize() .each_pair do |attr_name, attr_value| send("#{attr_name}=", attr_value) end end |
Instance Attribute Details
#canonical_request ⇒ String
Returns For debugging purposes.
27 28 29 |
# File 'lib/aws-sigv4/signature.rb', line 27 def canonical_request @canonical_request end |
#content_sha256 ⇒ String
Returns For debugging purposes.
33 34 35 |
# File 'lib/aws-sigv4/signature.rb', line 33 def content_sha256 @content_sha256 end |
#extra ⇒ Hash
Returns Internal data for debugging purposes.
36 37 38 |
# File 'lib/aws-sigv4/signature.rb', line 36 def extra @extra end |
#headers ⇒ Hash<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’.
24 25 26 |
# File 'lib/aws-sigv4/signature.rb', line 24 def headers @headers end |
#string_to_sign ⇒ String
Returns For debugging purposes.
30 31 32 |
# File 'lib/aws-sigv4/signature.rb', line 30 def string_to_sign @string_to_sign end |