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.
-
#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.
6 7 8 9 10 |
# File 'lib/aws-sigv4/signature.rb', line 6 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.
25 26 27 |
# File 'lib/aws-sigv4/signature.rb', line 25 def canonical_request @canonical_request end |
#content_sha256 ⇒ String
Returns For debugging purposes.
31 32 33 |
# File 'lib/aws-sigv4/signature.rb', line 31 def content_sha256 @content_sha256 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’.
22 23 24 |
# File 'lib/aws-sigv4/signature.rb', line 22 def headers @headers end |
#string_to_sign ⇒ String
Returns For debugging purposes.
28 29 30 |
# File 'lib/aws-sigv4/signature.rb', line 28 def string_to_sign @string_to_sign end |