Class: OAuth::Signature::HMAC::SHA1

Inherits:
Base
  • Object
show all
Defined in:
lib/oauth/signature/hmac/sha1.rb

Instance Attribute Summary

Attributes inherited from Base

#consumer_secret, #options, #request, #token_secret

Instance Method Summary collapse

Methods inherited from Base

#==, implements, #initialize, #signature, #signature_base_string, #verify

Methods included from Helper

#_escape, #escape, #generate_key, #generate_timestamp, #normalize, #normalize_nested_query, #parse_header, #stringify_keys, #unescape

Constructor Details

This class inherits a constructor from OAuth::Signature::Base

Instance Method Details

#body_hashObject



7
8
9
# File 'lib/oauth/signature/hmac/sha1.rb', line 7

def body_hash
  Base64.encode64(OpenSSL::Digest::SHA1.digest(request.body || '')).chomp.gsub(/\n/,'')
end