Class: AWS::S3::Authentication::Signature
- Inherits:
-
String
- Object
- String
- AWS::S3::Authentication::Signature
- Defined in:
- lib/aws/s3/authentication.rb
Overview
Signature is the abstract super class for the Header and QueryString authentication methods. It does the job of computing the canonical_string using the CanonicalString class as well as encoding the canonical string. The subclasses parameterize these computations and arrange them in a string form appropriate to how they are used, in one case a http request header value, and in the other case key/value query string parameter pairs.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#access_key_id ⇒ Object
readonly
:nodoc:.
-
#current_host ⇒ Object
readonly
:nodoc:.
-
#options ⇒ Object
readonly
:nodoc:.
-
#request ⇒ Object
readonly
:nodoc:.
-
#secret_access_key ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(request, access_key_id, secret_access_key, current_host = nil, options = {}) ⇒ Signature
constructor
A new instance of Signature.
Constructor Details
#initialize(request, access_key_id, secret_access_key, current_host = nil, options = {}) ⇒ Signature
Returns a new instance of Signature.
55 56 57 58 59 |
# File 'lib/aws/s3/authentication.rb', line 55 def initialize(request, access_key_id, secret_access_key, current_host = nil, = {}) super() @request, @access_key_id, @secret_access_key, @current_host = request, access_key_id, secret_access_key, current_host @options = end |
Instance Attribute Details
#access_key_id ⇒ Object (readonly)
:nodoc:
53 54 55 |
# File 'lib/aws/s3/authentication.rb', line 53 def access_key_id @access_key_id end |
#current_host ⇒ Object (readonly)
:nodoc:
53 54 55 |
# File 'lib/aws/s3/authentication.rb', line 53 def current_host @current_host end |
#options ⇒ Object (readonly)
:nodoc:
53 54 55 |
# File 'lib/aws/s3/authentication.rb', line 53 def @options end |
#request ⇒ Object (readonly)
:nodoc:
53 54 55 |
# File 'lib/aws/s3/authentication.rb', line 53 def request @request end |
#secret_access_key ⇒ Object (readonly)
:nodoc:
53 54 55 |
# File 'lib/aws/s3/authentication.rb', line 53 def secret_access_key @secret_access_key end |