Class: JWT::Configuration::Container
- Inherits:
-
Object
- Object
- JWT::Configuration::Container
- Defined in:
- lib/jwt/configuration/container.rb
Overview
The Container class holds the configuration settings for JWT.
Instance Attribute Summary collapse
-
#decode ⇒ DecodeConfiguration
The decode configuration.
-
#deprecation_warnings ⇒ Object
Returns the value of attribute deprecation_warnings.
-
#jwk ⇒ JwkConfiguration
The JWK configuration.
-
#strict_base64_decoding ⇒ Boolean
Whether strict Base64 decoding is enabled.
Instance Method Summary collapse
-
#initialize ⇒ Container
constructor
Initializes a new Container instance and resets the configuration.
-
#reset! ⇒ void
Resets the configuration to default values.
Constructor Details
#initialize ⇒ Container
Initializes a new Container instance and resets the configuration.
23 24 25 |
# File 'lib/jwt/configuration/container.rb', line 23 def initialize reset! end |
Instance Attribute Details
#decode ⇒ DecodeConfiguration
Returns the decode configuration.
16 17 18 |
# File 'lib/jwt/configuration/container.rb', line 16 def decode @decode end |
#deprecation_warnings ⇒ Object
Returns the value of attribute deprecation_warnings.
20 21 22 |
# File 'lib/jwt/configuration/container.rb', line 20 def deprecation_warnings @deprecation_warnings end |
#jwk ⇒ JwkConfiguration
Returns the JWK configuration.
16 |
# File 'lib/jwt/configuration/container.rb', line 16 attr_accessor :decode, :jwk, :strict_base64_decoding |
#strict_base64_decoding ⇒ Boolean
Returns whether strict Base64 decoding is enabled.
16 |
# File 'lib/jwt/configuration/container.rb', line 16 attr_accessor :decode, :jwk, :strict_base64_decoding |
Instance Method Details
#reset! ⇒ void
This method returns an undefined value.
Resets the configuration to default values.
30 31 32 33 34 35 36 |
# 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 |