Class: WorkOS::JwksResponseKeys

Inherits:
Types::BaseModel show all
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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

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

#algObject

Returns the value of attribute alg.



18
19
20
# File 'lib/workos/user_management/jwks_response_keys.rb', line 18

def alg
  @alg
end

#eObject

Returns the value of attribute e.



18
19
20
# File 'lib/workos/user_management/jwks_response_keys.rb', line 18

def e
  @e
end

#kidObject

Returns the value of attribute kid.



18
19
20
# File 'lib/workos/user_management/jwks_response_keys.rb', line 18

def kid
  @kid
end

#ktyObject

Returns the value of attribute kty.



18
19
20
# File 'lib/workos/user_management/jwks_response_keys.rb', line 18

def kty
  @kty
end

#nObject

Returns the value of attribute n.



18
19
20
# File 'lib/workos/user_management/jwks_response_keys.rb', line 18

def n
  @n
end

#useObject

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_cObject

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_256Object

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