Module: JWT::Claims::VerificationMethods Private

Included in:
EncodedToken, Token
Defined in:
lib/jwt/claims/verification_methods.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.

Instance Method Summary collapse

Instance Method Details

#claim_errors(*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.



11
12
13
# File 'lib/jwt/claims/verification_methods.rb', line 11

def claim_errors(*options)
  Verifier.errors(self, *options)
end

#valid_claims?(*options) ⇒ Boolean

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.

Returns:

  • (Boolean)


15
16
17
# File 'lib/jwt/claims/verification_methods.rb', line 15

def valid_claims?(*options)
  claim_errors(*options).empty?
end

#verify_claims!(*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.



7
8
9
# File 'lib/jwt/claims/verification_methods.rb', line 7

def verify_claims!(*options)
  Verifier.verify!(self, *options)
end