Interface ClaimVerifier.Predicate<T>

Type Parameters:
T - Type of the token handled by this predicate.
All Known Implementing Classes:
ClaimVerifier.AudienceCheck, ClaimVerifier.ClaimCheck, ClaimVerifier.ExpCheck, ClaimVerifier.IatLifetimeCheck, ClaimVerifier.NbfCheck, ClaimVerifier.NegatedClaimCheck
Enclosing class:
ClaimVerifier

public static interface ClaimVerifier.Predicate<T>
Functional interface of checks that verify some part of a JWT.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Instant
     
    boolean
    test(T t)
    Performs a single check on the given token verifier.
  • Method Details

    • test

      boolean test(T t) throws VerificationException
      Performs a single check on the given token verifier.
      Parameters:
      t - Token, guaranteed to be non-null.
      Returns:
      Throws:
      VerificationException
    • getCurrentTimestamp

      default Instant getCurrentTimestamp()