Class: Rottweiler::Configs::JWT

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeJWT

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

#algorithmObject

Returns the value of attribute algorithm.



9
10
11
# File 'lib/rottweiler/configs/jwt.rb', line 9

def algorithm
  @algorithm
end

#decode_keyObject

Returns the value of attribute decode_key.



10
11
12
# File 'lib/rottweiler/configs/jwt.rb', line 10

def decode_key
  @decode_key
end