Class InvalidJwtException

  • All Implemented Interfaces:
    Serializable

    public class InvalidJwtException
    extends JwtReconstructionException
    Represents an exception that occurs when a JWT is determined as invalid.

    Possible causes, but not definitive, are incorrect number of "." characters, unparsable JSON, duplicate entries in header or claims set.

    Since:
    2.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • InvalidJwtException

        public InvalidJwtException​(String message)
        Constructs a new JwtReconstructionException with the provided exception message.
        Parameters:
        message - The exception message.
      • InvalidJwtException

        public InvalidJwtException​(String message,
                                   Throwable throwable)
        Constructs a new JwtReconstructionException with the provided exception message and underlying throwable.
        Parameters:
        message - The exception message.
        throwable - The underlying throwable.
      • InvalidJwtException

        public InvalidJwtException​(Throwable throwable)
        Constructs a new JwtReconstructionException with the provided underlying throwable.
        Parameters:
        throwable - The underlying throwable.