Class: Azure::Storage::Table::Auth::SharedKeyLite

Inherits:
SharedKey show all
Defined in:
lib/azure/storage/table/auth/shared_key_lite.rb

Instance Attribute Summary

Attributes inherited from SharedKey

#account_name

Attributes inherited from Auth::SharedKey

#account_name

Attributes inherited from Core::Auth::Signer

#access_key

Instance Method Summary collapse

Methods inherited from SharedKey

#canonicalized_resource

Methods inherited from Auth::SharedKey

#canonicalized_headers, #canonicalized_resource, #initialize, #sign, #sign_request

Methods inherited from Core::Auth::Signer

#initialize, #sign

Constructor Details

This class inherits a constructor from Azure::Storage::Auth::SharedKey

Instance Method Details

#nameObject

Public: The name of the strategy.

Returns a String.


24
25
26
# File 'lib/azure/storage/table/auth/shared_key_lite.rb', line 24

def name
  'SharedKeyLite'
end

#signable_string(method, uri, headers) ⇒ Object

Generate the string to sign.

verb - The HTTP request method. uri - The URI of the request we're signing. headers - A Hash of HTTP request headers.

Returns a plain text string.


35
36
37
38
39
40
# File 'lib/azure/storage/table/auth/shared_key_lite.rb', line 35

def signable_string(method, uri, headers)
  [
    headers.fetch('Date') { headers.fetch('x-ms-date') },
    canonicalized_resource(uri)
  ].join("\n")
end