Methods

OAuth::Signature::RSA::SHA1

Public Instance Methods

==(cmp_signature) click to toggle source
# File lib/oauth/signature/rsa/sha1.rb, line 9
def ==(cmp_signature)
  public_key.verify(OpenSSL::Digest::SHA1.new, Base64.decode64(cmp_signature.is_a?(Array) ? cmp_signature.first : cmp_signature), signature_base_string)
end
public_key() click to toggle source
# File lib/oauth/signature/rsa/sha1.rb, line 13
def public_key
  if consumer_secret.is_a?(String)
    decode_public_key
  elsif consumer_secret.is_a?(OpenSSL::X509::Certificate)
    consumer_secret.public_key
  else
    consumer_secret
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.