com.auth0.jwt.exceptions.TokenExpiredException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-jwt Show documentation
Show all versions of java-jwt Show documentation
Java implementation of JSON Web Token (JWT)
package com.auth0.jwt.exceptions;
import java.time.Instant;
/**
* The exception that is thrown if the token is expired.
*/
public class TokenExpiredException extends JWTVerificationException {
private static final long serialVersionUID = -7076928975713577708L;
private final Instant expiredOn;
public TokenExpiredException(String message, Instant expiredOn) {
super(message);
this.expiredOn = expiredOn;
}
public Instant getExpiredOn() {
return expiredOn;
}
}