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

com.nimbusds.jwt.proc.JWTClaimsVerifier Maven / Gradle / Ivy

package com.nimbusds.jwt.proc;


import com.nimbusds.jwt.JWTClaimsSet;


/**
 * JWT claims verifier. Intended to enable performance of various claim checks,
 * such as issuer acceptance, during {@link JWTProcessor JWT processing}
 * (after the JWT is successfully verified (for JWS) or decrypted (for JWE)).
 *
 * @author Vladimir Dzhuvinov
 * @version 2015-08-19
 */
public interface JWTClaimsVerifier {


	/**
	 * Performs verification of selected or all claims in the specified JWT
	 * claims set.
	 *
	 * @param claimsSet The JWT claims set. Not {@code null}.
	 *
	 * @throws BadJWTException If the JWT claims set is rejected.
	 */
	void verify(final JWTClaimsSet claimsSet)
		throws BadJWTException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy