Class: Aliyun::Odps::Authorization
- Inherits:
-
Object
- Object
- Aliyun::Odps::Authorization
- Defined in:
- lib/aliyun/odps/authorization.rb
Constant Summary collapse
- PROVIDER =
'ODPS'
Class Method Summary collapse
-
.get_authorization(access_key, secret_key, options = {}) ⇒ String
Get authorization key.
Class Method Details
.get_authorization(access_key, secret_key, options = {}) ⇒ String
Get authorization key
26 27 28 29 30 |
# File 'lib/aliyun/odps/authorization.rb', line 26 def (access_key, secret_key, = {}) content_string = concat_content_string([:verb], [:date], ) signature_string = signature(secret_key, content_string) "#{PROVIDER} #{access_key}:#{signature_string.strip}" end |