Class 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 Detail

      • ExpiredTokenException

        public ExpiredTokenException()
      • ExpiredTokenException

        public ExpiredTokenException​(String message)
      • ExpiredTokenException

        public ExpiredTokenException​(String message,
                                     Throwable cause)
      • ExpiredTokenException

        public ExpiredTokenException​(Throwable cause)