class JWT::Configuration::Container

Constants

DEPRECATION_WARNINGS_VALUES

Attributes

decode[RW]
deprecation_warnings[R]
jwk[RW]
strict_base64_decoding[RW]

Public Class Methods

new() click to toggle source
# File lib/jwt/configuration/container.rb, line 12
def initialize
  reset!
end

Public Instance Methods

deprecation_warnings=(value) click to toggle source
# File lib/jwt/configuration/container.rb, line 25
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
reset!() click to toggle source
# File lib/jwt/configuration/container.rb, line 16
def reset!
  @decode                 = DecodeConfiguration.new
  @jwk                    = JwkConfiguration.new
  @strict_base64_decoding = false

  self.deprecation_warnings = :once
end