class JWT::Configuration::Container

The Container class holds the configuration settings for JWT.

def deprecation_warnings=(value)

Returns:
  • (void) -

Raises:
  • (ArgumentError) - if the value is not one of the supported values.

Parameters:
  • value (Symbol) -- the deprecation warnings setting. Must be one of `:once`, `:warn`, or `:silent`.
def deprecation_warnings=(value)
  raise ArgumentError, "Invalid deprecation_warnings value #{value}. Supported values: #{DEPRECATION_WARNINGS_VALUES}" unless DEPRECATION_WARNINGS_VALUES.include?(value)
  @deprecation_warnings = value
end

def initialize

Initializes a new Container instance and resets the configuration.
def initialize
  reset!
end

def reset!

Returns:
  • (void) -
def reset!
  @decode                 = DecodeConfiguration.new
  @jwk                    = JwkConfiguration.new
  self.deprecation_warnings = :once
end