001package com.nimbusds.jwt.proc; 002 003 004import com.nimbusds.jwt.ReadOnlyJWTClaimsSet; 005 006 007/** 008 * JWT claims verifier. Intended to enable performance of various claim checks, 009 * such as issuer acceptance, during {@link JWTProcessor JWT processing} 010 * (after the JWT is successfully verified (for JWS) or decrypted (for JWE)). 011 * 012 * @author Vladimir Dzhuvinov 013 * @version 2015-06-30 014 */ 015public interface JWTClaimsVerifier { 016 017 018 /** 019 * Performs verification of selected or all claims in the specified JWT 020 * claims set. 021 * 022 * @param claimsSet The JWT claims set. Not {@code null}. 023 * 024 * @throws BadJWTException If the JWT claims set is rejected. 025 */ 026 void verify(final ReadOnlyJWTClaimsSet claimsSet) 027 throws BadJWTException; 028}