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

com.atlassian.connect.spring.internal.jwt.JwtExpiredException Maven / Gradle / Ivy

package com.atlassian.connect.spring.internal.jwt;

import java.util.Date;

/**
 * Thrown if the JWT's timestamps show that it has expired.
 */
public class JwtExpiredException extends JwtVerificationException {

    public JwtExpiredException(Date expiredAt, Date now, final int leewaySeconds) {
        super(String.format("JWT expired at %s and time is now %s (%d seconds leeway is allowed)", expiredAt, now, leewaySeconds));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy