Class: JWT::Configuration::JwkConfiguration Private

Inherits:
Object
  • Object
show all
Defined in:
lib/jwt/configuration/jwk_configuration.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJwkConfiguration

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of JwkConfiguration.



10
11
12
# File 'lib/jwt/configuration/jwk_configuration.rb', line 10

def initialize
  self.kid_generator_type = :key_digest
end

Instance Attribute Details

#kid_generatorObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



25
26
27
# File 'lib/jwt/configuration/jwk_configuration.rb', line 25

def kid_generator
  @kid_generator
end

Instance Method Details

#kid_generator_type=(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



14
15
16
17
18
19
20
21
22
23
# File 'lib/jwt/configuration/jwk_configuration.rb', line 14

def kid_generator_type=(value)
  self.kid_generator = case value
                       when :key_digest
                         JWT::JWK::KidAsKeyDigest
                       when :rfc7638_thumbprint
                         JWT::JWK::Thumbprint
                       else
                         raise ArgumentError, "#{value} is not a valid kid generator type."
                       end
end