Class: JWTF::Configuration
- Inherits:
-
Object
- Object
- JWTF::Configuration
- Defined in:
- lib/jwtf/configuration.rb
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
Returns the value of attribute algorithm.
-
#exp_period ⇒ Object
Returns the value of attribute exp_period.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#use_iat_claim ⇒ Object
Returns the value of attribute use_iat_claim.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #token_payload(&block) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 |
# File 'lib/jwtf/configuration.rb', line 6 def initialize @payload = Proc.new { {} } @algorithm = 'none' @use_iat_claim = false @exp_period = nil end |
Instance Attribute Details
#algorithm ⇒ Object
Returns the value of attribute algorithm.
3 4 5 |
# File 'lib/jwtf/configuration.rb', line 3 def algorithm @algorithm end |
#exp_period ⇒ Object
Returns the value of attribute exp_period.
3 4 5 |
# File 'lib/jwtf/configuration.rb', line 3 def exp_period @exp_period end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
4 5 6 |
# File 'lib/jwtf/configuration.rb', line 4 def payload @payload end |
#secret ⇒ Object
Returns the value of attribute secret.
3 4 5 |
# File 'lib/jwtf/configuration.rb', line 3 def secret @secret end |
#use_iat_claim ⇒ Object
Returns the value of attribute use_iat_claim.
3 4 5 |
# File 'lib/jwtf/configuration.rb', line 3 def use_iat_claim @use_iat_claim end |
Instance Method Details
#token_payload(&block) ⇒ Object
13 14 15 |
# File 'lib/jwtf/configuration.rb', line 13 def token_payload(&block) @payload = block end |