Class: OAuth::Signature::PLAINTEXT

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

Instance Attribute Summary

Attributes inherited from Base

#consumer_secret, #options, #request, #token_secret

Instance Method Summary collapse

Methods inherited from Base

digest_class, implements, #initialize, #verify

Methods included from Helper

#escape, #generate_key, #generate_timestamp, #normalize, #parse_header, #unescape

Constructor Details

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

Instance Method Details

#==(cmp_signature) ⇒ Object



11
12
13
# File 'lib/oauth/signature/plaintext.rb', line 11

def ==(cmp_signature)
  signature == escape(cmp_signature)
end

#secretObject



19
20
21
# File 'lib/oauth/signature/plaintext.rb', line 19

def secret
  escape(super)
end

#signatureObject



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

def signature
  signature_base_string
end

#signature_base_stringObject



15
16
17
# File 'lib/oauth/signature/plaintext.rb', line 15

def signature_base_string
  secret
end