Class InvalidJwtException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.forgerock.json.jose.exceptions.JwtRuntimeException
-
- org.forgerock.json.jose.exceptions.JwtBuilderException
-
- org.forgerock.json.jose.exceptions.JwtReconstructionException
-
- org.forgerock.json.jose.exceptions.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 Summary
Constructors Constructor Description InvalidJwtException(String message)
Constructs a new JwtReconstructionException with the provided exception message.InvalidJwtException(String message, Throwable throwable)
Constructs a new JwtReconstructionException with the provided exception message and underlying throwable.InvalidJwtException(Throwable throwable)
Constructs a new JwtReconstructionException with the provided underlying throwable.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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.
-
-