Class: JWT::JWK::KeyBase
- Inherits:
-
Object
- Object
- JWT::JWK::KeyBase
- Defined in:
- lib/jwt/jwk/key_base.rb
Instance Attribute Summary collapse
-
#keypair ⇒ Object
readonly
Returns the value of attribute keypair.
-
#kid ⇒ Object
readonly
Returns the value of attribute kid.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(keypair, kid = nil) ⇒ KeyBase
constructor
A new instance of KeyBase.
Constructor Details
#initialize(keypair, kid = nil) ⇒ KeyBase
Returns a new instance of KeyBase.
8 9 10 11 |
# File 'lib/jwt/jwk/key_base.rb', line 8 def initialize(keypair, kid = nil) @keypair = keypair @kid = kid end |
Instance Attribute Details
#keypair ⇒ Object (readonly)
Returns the value of attribute keypair.
6 7 8 |
# File 'lib/jwt/jwk/key_base.rb', line 6 def keypair @keypair end |
#kid ⇒ Object (readonly)
Returns the value of attribute kid.
6 7 8 |
# File 'lib/jwt/jwk/key_base.rb', line 6 def kid @kid end |