Class: Rottweiler::Configs::JWT
- Inherits:
-
Object
- Object
- Rottweiler::Configs::JWT
- Defined in:
- lib/rottweiler/configs/jwt.rb
Overview
Implements JWT configuration for Rottweiler
Constant Summary collapse
- ACCEPTED_ALGORITHMS =
%w[RS256 RS384 RS512 HS256 HS384 HS512].freeze
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
Returns the value of attribute algorithm.
-
#decode_key ⇒ Object
Returns the value of attribute decode_key.
Instance Method Summary collapse
-
#initialize ⇒ JWT
constructor
A new instance of JWT.
Constructor Details
#initialize ⇒ JWT
Returns a new instance of JWT.
12 13 14 15 |
# File 'lib/rottweiler/configs/jwt.rb', line 12 def initialize @algorithm = 'RS256' @decode_key = nil end |
Instance Attribute Details
#algorithm ⇒ Object
Returns the value of attribute algorithm.
9 10 11 |
# File 'lib/rottweiler/configs/jwt.rb', line 9 def algorithm @algorithm end |
#decode_key ⇒ Object
Returns the value of attribute decode_key.
10 11 12 |
# File 'lib/rottweiler/configs/jwt.rb', line 10 def decode_key @decode_key end |