Package com.auth0.jwt

Class JWTVerifier

  • All Implemented Interfaces:
    JWTVerifier

    public final class JWTVerifier
    extends java.lang.Object
    implements JWTVerifier
    The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also its signature matches.

    This class is thread-safe.

    See Also:
    JWTVerifier
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  JWTVerifier.BaseVerification
      Verification implementation that accepts all the expected Claim values for verification, and builds a JWTVerifier used to verify a JWT's signature and expected claims.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DecodedJWT verify​(DecodedJWT jwt)
      Perform the verification against the given decoded JWT, using any previous configured options.
      DecodedJWT verify​(java.lang.String token)
      Perform the verification against the given Token, using any previous configured options.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait