class Keratin::AuthN::MockKeychain

Public Class Methods

new() click to toggle source

a temporary RSA key for the test suite.

generates the smallest (fastest) key possible for RS256

# File lib/keratin/authn/mock_keychain.rb, line 6
def initialize
  @keypair ||= OpenSSL::PKey::RSA.new(512).to_jwk
end

Public Instance Methods

[](_) click to toggle source
# File lib/keratin/authn/mock_keychain.rb, line 14
def [](_)
  key
end
key() click to toggle source
# File lib/keratin/authn/mock_keychain.rb, line 10
def key
  @keypair
end