Class: LightJWT::JWA::JWS::NoneHandler

Inherits:
BaseHandler show all
Defined in:
lib/light_jwt/jwa/jws.rb

Instance Attribute Summary

Attributes inherited from BaseHandler

#alg, #digest

Instance Method Summary collapse

Methods inherited from BaseHandler

#initialize, #secure_compare

Constructor Details

This class inherits a constructor from LightJWT::JWA::JWS::BaseHandler

Instance Method Details

#sign(_, _) ⇒ Object



169
170
171
# File 'lib/light_jwt/jwa/jws.rb', line 169

def sign(_, _)
  ''
end

#verify(_, _, signature) ⇒ Object



173
174
175
# File 'lib/light_jwt/jwa/jws.rb', line 173

def verify(_, _, signature)
  signature == ''
end