Module: JWT::JWA::Unsupported

Extended by:
SigningAlgorithm
Defined in:
lib/jwt/jwa/unsupported.rb

Instance Attribute Summary

Attributes included from SigningAlgorithm

#alg

Class Method Summary collapse

Methods included from SigningAlgorithm

header, included, raise_sign_error!, raise_verify_error!, sign, valid_alg?, verify

Class Method Details

.signObject



9
10
11
# File 'lib/jwt/jwa/unsupported.rb', line 9

def sign(*)
  raise_sign_error!('Unsupported signing method')
end

.verifyObject



13
14
15
# File 'lib/jwt/jwa/unsupported.rb', line 13

def verify(*)
  raise JWT::VerificationError, 'Algorithm not supported'
end