All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.auth0.jwt.exceptions.TokenExpiredException Maven / Gradle / Ivy

The newest version!
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy