# File lib/oauth/signature/rsa/sha1.rb, line 25
25: def decode_public_key
26: case consumer_secret
27: when /-----BEGIN CERTIFICATE-----/
28: OpenSSL::X509::Certificate.new( consumer_secret).public_key
29: else
30: OpenSSL::PKey::RSA.new( consumer_secret)
31: end
32: end
# File lib/oauth/signature/rsa/sha1.rb, line 34
34: def digest
35: private_key = OpenSSL::PKey::RSA.new(
36: if options[:private_key_file]
37: IO.read(options[:private_key_file])
38: else
39: consumer_secret
40: end
41: )
42:
43: private_key.sign(OpenSSL::Digest::SHA1.new, signature_base_string)
44: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.