class JWT::Configuration::Container
The Container
class holds the configuration settings for JWT
.
Constants
- DEPRECATION_WARNINGS_VALUES
Attributes
@!attribute [rw] decode
@return [DecodeConfiguration] the decode configuration.
@!attribute [rw] jwk
@return [JwkConfiguration] the JWK configuration.
@!attribute [rw] strict_base64_decoding
@return [Boolean] whether strict Base64 decoding is enabled.
@!attribute [r] deprecation_warnings
@return [Symbol] the deprecation warnings setting.
@!attribute [rw] decode
@return [DecodeConfiguration] the decode configuration.
@!attribute [rw] jwk
@return [JwkConfiguration] the JWK configuration.
@!attribute [rw] strict_base64_decoding
@return [Boolean] whether strict Base64 decoding is enabled.
@!attribute [rw] decode
@return [DecodeConfiguration] the decode configuration.
@!attribute [rw] jwk
@return [JwkConfiguration] the JWK configuration.
@!attribute [rw] strict_base64_decoding
@return [Boolean] whether strict Base64 decoding is enabled.
Public Class Methods
Public Instance Methods
Source
# File lib/jwt/configuration/container.rb, line 45 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
Sets the deprecation warnings setting.
@param value [Symbol] the deprecation warnings setting. Must be one of ‘:once`, `:warn`, or `:silent`. @raise [ArgumentError] if the value is not one of the supported values. @return [void]
Source
# File lib/jwt/configuration/container.rb, line 30 def reset! @decode = DecodeConfiguration.new @jwk = JwkConfiguration.new @strict_base64_decoding = false self.deprecation_warnings = :once end
Resets the configuration to default values.
@return [void]