Module: JWT::Claims::Verifier Private
- Defined in:
- lib/jwt/claims/verifier.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
Class Method Details
.errors(context, *options) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/jwt/claims/verifier.rb', line 32 def errors(context, *) errors = [] iterate_verifiers(*) do |verifier, | verify_one!(context, verifier, ) rescue ::JWT::ClaimValidationError, ::JWT::MalformedTokenError => e # A payload that cannot be decoded has no valid claims either, so the # predicate API reports it instead of raising. errors << JWT::Claims::Error.new(message: e.) end errors end |
.verify!(context, *options) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 27 28 29 |
# File 'lib/jwt/claims/verifier.rb', line 24 def verify!(context, *) iterate_verifiers(*) do |verifier, | verify_one!(context, verifier, ) end nil end |