Class: WorkOS::JwksResponseKeys
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::JwksResponseKeys
- Defined in:
- lib/workos/user_management/jwks_response_keys.rb
Constant Summary collapse
- HASH_ATTRS =
{ :alg => :alg, :kty => :kty, :use => :use, :x5c => :x_5_c, :n => :n, :e => :e, :kid => :kid, "x5t#S256" => :x_5_t_s_256 }.freeze
Instance Attribute Summary collapse
-
#alg ⇒ Object
Returns the value of attribute alg.
-
#e ⇒ Object
Returns the value of attribute e.
-
#kid ⇒ Object
Returns the value of attribute kid.
-
#kty ⇒ Object
Returns the value of attribute kty.
-
#n ⇒ Object
Returns the value of attribute n.
-
#use ⇒ Object
Returns the value of attribute use.
-
#x_5_c ⇒ Object
Returns the value of attribute x_5_c.
-
#x_5_t_s_256 ⇒ Object
Returns the value of attribute x_5_t_s_256.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ JwksResponseKeys
constructor
A new instance of JwksResponseKeys.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ JwksResponseKeys
Returns a new instance of JwksResponseKeys.
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/workos/user_management/jwks_response_keys.rb', line 28 def initialize(json) hash = self.class.normalize(json) @alg = hash[:alg] @kty = hash[:kty] @use = hash[:use] @x_5_c = hash[:x5c] || [] @n = hash[:n] @e = hash[:e] @kid = hash[:kid] @x_5_t_s_256 = hash[:"x5t#S256"] end |
Instance Attribute Details
#alg ⇒ Object
Returns the value of attribute alg.
18 19 20 |
# File 'lib/workos/user_management/jwks_response_keys.rb', line 18 def alg @alg end |
#e ⇒ Object
Returns the value of attribute e.
18 19 20 |
# File 'lib/workos/user_management/jwks_response_keys.rb', line 18 def e @e end |
#kid ⇒ Object
Returns the value of attribute kid.
18 19 20 |
# File 'lib/workos/user_management/jwks_response_keys.rb', line 18 def kid @kid end |
#kty ⇒ Object
Returns the value of attribute kty.
18 19 20 |
# File 'lib/workos/user_management/jwks_response_keys.rb', line 18 def kty @kty end |
#n ⇒ Object
Returns the value of attribute n.
18 19 20 |
# File 'lib/workos/user_management/jwks_response_keys.rb', line 18 def n @n end |
#use ⇒ Object
Returns the value of attribute use.
18 19 20 |
# File 'lib/workos/user_management/jwks_response_keys.rb', line 18 def use @use end |
#x_5_c ⇒ Object
Returns the value of attribute x_5_c.
18 19 20 |
# File 'lib/workos/user_management/jwks_response_keys.rb', line 18 def x_5_c @x_5_c end |
#x_5_t_s_256 ⇒ Object
Returns the value of attribute x_5_t_s_256.
18 19 20 |
# File 'lib/workos/user_management/jwks_response_keys.rb', line 18 def x_5_t_s_256 @x_5_t_s_256 end |