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

com.auth0.jwt.impl.ExpectedCheckHolder Maven / Gradle / Ivy

The newest version!
package com.auth0.jwt.impl;

import com.auth0.jwt.interfaces.Claim;
import com.auth0.jwt.interfaces.DecodedJWT;

/**
 * This holds the checks that are run to verify a JWT.
 */
public interface ExpectedCheckHolder {
    /**
     * The claim name that will be checked.
     *
     * @return the claim name
     */
    String getClaimName();

    /**
     * The verification that will be run.
     *
     * @param claim the claim for which verification is done
     * @param decodedJWT the JWT on which verification is done
     * @return whether the verification passed or not
     */
    boolean verify(Claim claim, DecodedJWT decodedJWT);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy