Class: Firebase::Auth::IDToken::PublicKey
- Inherits:
-
Object
- Object
- Firebase::Auth::IDToken::PublicKey
- Defined in:
- lib/firebase/auth/id_token/public_keys.rb
Instance Attribute Summary collapse
-
#certificate ⇒ Object
readonly
Returns the value of attribute certificate.
-
#kid ⇒ Object
readonly
Returns the value of attribute kid.
Instance Method Summary collapse
-
#initialize(kid:, certificate:) ⇒ PublicKey
constructor
A new instance of PublicKey.
Constructor Details
#initialize(kid:, certificate:) ⇒ PublicKey
Returns a new instance of PublicKey.
44 45 46 47 |
# File 'lib/firebase/auth/id_token/public_keys.rb', line 44 def initialize(kid:, certificate:) @kid = kid @certificate = OpenSSL::X509::Certificate.new(certificate) end |
Instance Attribute Details
#certificate ⇒ Object (readonly)
Returns the value of attribute certificate.
42 43 44 |
# File 'lib/firebase/auth/id_token/public_keys.rb', line 42 def certificate @certificate end |
#kid ⇒ Object (readonly)
Returns the value of attribute kid.
42 43 44 |
# File 'lib/firebase/auth/id_token/public_keys.rb', line 42 def kid @kid end |