Class OAuth::Signature::RSA::SHA1
In: lib/oauth/signature/rsa/sha1.rb
Parent: OAuth::Signature::Base

Methods

==   public_key  

Public Instance methods

[Source]

# File lib/oauth/signature/rsa/sha1.rb, line 8
    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

[Source]

# File lib/oauth/signature/rsa/sha1.rb, line 12
    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]