Class: Keratin::AuthN::MockKeychain
- Inherits:
-
Object
- Object
- Keratin::AuthN::MockKeychain
- Defined in:
- lib/keratin/authn/mock_keychain.rb
Instance Method Summary collapse
- #[](_) ⇒ Object
-
#initialize ⇒ MockKeychain
constructor
a temporary RSA key for the test suite.
- #key ⇒ Object
Constructor Details
#initialize ⇒ MockKeychain
a temporary RSA key for the test suite.
generates the smallest (fastest) key possible for RS256
6 7 8 |
# File 'lib/keratin/authn/mock_keychain.rb', line 6 def initialize @keypair ||= OpenSSL::PKey::RSA.new(512).to_jwk end |
Instance Method Details
#[](_) ⇒ Object
14 15 16 |
# File 'lib/keratin/authn/mock_keychain.rb', line 14 def [](_) key end |
#key ⇒ Object
10 11 12 |
# File 'lib/keratin/authn/mock_keychain.rb', line 10 def key @keypair end |