Class InvalidJWTException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExpiredJWTException, InactiveJWTException

public class InvalidJWTException extends JOSEProcessingException

Thrown by a JWTClaimsSet during validation to indicate that a JWT claim set is invalid.

Since:
1.5
Author:
Jeremy Kuhn
See Also:
  • Constructor Details

    • InvalidJWTException

      public InvalidJWTException()

      Creates an invalid JWT exception.

    • InvalidJWTException

      public InvalidJWTException(String message)

      Creates an invalid JWT exception with the specified message.

      Parameters:
      message - the message
    • InvalidJWTException

      public InvalidJWTException(Throwable cause)

      Creates an invalid JWT exception with the specified cause.

      Parameters:
      cause - the cause
    • InvalidJWTException

      public InvalidJWTException(String message, Throwable cause)

      Creates an invalid JWT exception with the specified message and cause.

      Parameters:
      message - the message
      cause - the cause
    • InvalidJWTException

      public InvalidJWTException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)

      Creates an invalid JWT exception with the specified message, cause, suppression enabled or disabled and writable stack trace enabled or disabled.

      Parameters:
      message - the message
      cause - the cause
      enableSuppression - true to enable suppression, false otherwise
      writableStackTrace - true to make the stack trace writable, false otherwise