Class: Morpho::Configurations::JWT

Inherits:
Object
  • Object
show all
Defined in:
lib/morpho/configurations/jwt.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJWT

Returns a new instance of JWT.



9
10
11
12
13
14
# File 'lib/morpho/configurations/jwt.rb', line 9

def initialize
  self.secret = ''
  self.algorithm = ''
  self.header = ''
  self.expiration_time = 0
end

Instance Attribute Details

#algorithmObject

Returns the value of attribute algorithm.



5
6
7
# File 'lib/morpho/configurations/jwt.rb', line 5

def algorithm
  @algorithm
end

#expiration_timeObject

Returns the value of attribute expiration_time.



7
8
9
# File 'lib/morpho/configurations/jwt.rb', line 7

def expiration_time
  @expiration_time
end

#headerObject

Returns the value of attribute header.



6
7
8
# File 'lib/morpho/configurations/jwt.rb', line 6

def header
  @header
end

#secretObject

Returns the value of attribute secret.



4
5
6
# File 'lib/morpho/configurations/jwt.rb', line 4

def secret
  @secret
end