Class JwtException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.oauth2.jwt.JwtException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadJwtException, JwtEncodingException

public class JwtException extends RuntimeException
Base exception for all JSON Web Token (JWT) related errors.
Since:
5.0
See Also:
  • Constructor Details

    • JwtException

      public JwtException(String message)
      Constructs a JwtException using the provided parameters.
      Parameters:
      message - the detail message
    • JwtException

      public JwtException(String message, Throwable cause)
      Constructs a JwtException using the provided parameters.
      Parameters:
      message - the detail message
      cause - the root cause