
net.aholbrook.paseto.claims.Claim Maven / Gradle / Ivy
package net.aholbrook.paseto.claims;
import net.aholbrook.paseto.service.Token;
public interface Claim {
/**
* Name of the check.
*
* @return rule name
*/
String name();
/**
* Verify that the given token passes the this rule.
*
* @param token Token to check.
* @param context Claims context to store additional data.
*/
void check(Token token, VerificationContext context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy