Package com.networknt.exception
Class ExpiredTokenException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.networknt.exception.ExpiredTokenException
-
- All Implemented Interfaces:
Serializable
public class ExpiredTokenException extends Exception
This is a checked exception used by JWT verification and it is thrown if the JWT token is expired. Used by Security module only to work around Jose4j only return InvalidTokenException without differentiating expiry or incorrect signature. The security module needs to respond differently to consumer in case of token expiry so that caller will try to renew the token reactively.- Author:
- Steve Hu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExpiredTokenException()ExpiredTokenException(String message)ExpiredTokenException(String message, Throwable cause)ExpiredTokenException(Throwable cause)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-