Class: JWT::JWA::None

Inherits:
Object
  • Object
show all
Includes:
SigningAlgorithm
Defined in:
lib/jwt/jwa/none.rb

Instance Attribute Summary

Attributes included from SigningAlgorithm

#alg

Instance Method Summary collapse

Methods included from SigningAlgorithm

#header, included, #raise_sign_error!, #raise_verify_error!, #valid_alg?

Constructor Details

#initializeNone

Returns a new instance of None.



8
9
10
# File 'lib/jwt/jwa/none.rb', line 8

def initialize
  @alg = 'none'
end

Instance Method Details

#signObject



12
13
14
# File 'lib/jwt/jwa/none.rb', line 12

def sign(*)
  ''
end

#verifyObject



16
17
18
# File 'lib/jwt/jwa/none.rb', line 16

def verify(*)
  true
end