Class: Firebase::Auth::IDToken::PublicKey

Inherits:
Object
  • Object
show all
Defined in:
lib/firebase/auth/id_token/public_keys.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#certificateObject (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

#kidObject (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