Module: JWT::JWA::Unsupported
- Extended by:
- SigningAlgorithm
- Defined in:
- lib/jwt/jwa/unsupported.rb
Overview
Represents an unsupported algorithm
Instance Attribute Summary
Attributes included from SigningAlgorithm
Class Method Summary collapse
Methods included from SigningAlgorithm
header, included, raise_sign_error!, raise_verify_error!, sign, valid_alg?, verify
Class Method Details
.sign ⇒ Object
10 11 12 |
# File 'lib/jwt/jwa/unsupported.rb', line 10 def sign(*) raise_sign_error!('Unsupported signing method') end |
.verify ⇒ Object
14 15 16 |
# File 'lib/jwt/jwa/unsupported.rb', line 14 def verify(*) raise JWT::VerificationError, 'Algorithm not supported' end |