Class: JWT::JWA::None
- Inherits:
-
Object
- Object
- JWT::JWA::None
- Includes:
- SigningAlgorithm
- Defined in:
- lib/jwt/jwa/none.rb
Instance Attribute Summary
Attributes included from SigningAlgorithm
Instance Method Summary collapse
-
#initialize ⇒ None
constructor
A new instance of None.
- #sign ⇒ Object
- #verify ⇒ Object
Methods included from SigningAlgorithm
#header, included, #raise_sign_error!, #raise_verify_error!, #valid_alg?
Constructor Details
#initialize ⇒ None
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
#sign ⇒ Object
12 13 14 |
# File 'lib/jwt/jwa/none.rb', line 12 def sign(*) '' end |
#verify ⇒ Object
16 17 18 |
# File 'lib/jwt/jwa/none.rb', line 16 def verify(*) true end |