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

net.aholbrook.paseto.exception.claims.ExpiredTokenException Maven / Gradle / Ivy

package net.aholbrook.paseto.exception.claims;

import net.aholbrook.paseto.service.Token;

import java.time.OffsetDateTime;

public class ExpiredTokenException extends ClaimException {
	public ExpiredTokenException(OffsetDateTime time, String ruleName, Token token) {
		super(message(time), ruleName, token);
	}

	private static String message(OffsetDateTime time) {
		return "Token expired at " + time.toString() + '.';
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy