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

de.cidaas.jwt.interfaces.Verification Maven / Gradle / Ivy

There is a newer version: 2.0.3
Show newest version
package de.cidaas.jwt.interfaces;

import de.cidaas.jwt.JWTVerifier;

import java.util.Date;

public interface Verification {
    Verification withIssuer(String... issuer);

    Verification withSubject(String subject);

    Verification withAudience(String... audience);

    Verification acceptLeeway(long leeway) throws IllegalArgumentException;

    Verification acceptExpiresAt(long leeway) throws IllegalArgumentException;

    Verification acceptNotBefore(long leeway) throws IllegalArgumentException;

    Verification acceptIssuedAt(long leeway) throws IllegalArgumentException;

    Verification withJWTId(String jwtId);

    Verification withClaim(String name, Boolean value) throws IllegalArgumentException;

    Verification withClaim(String name, Integer value) throws IllegalArgumentException;

    Verification withClaim(String name, Long value) throws IllegalArgumentException;

    Verification withClaim(String name, Double value) throws IllegalArgumentException;

    Verification withClaim(String name, String value) throws IllegalArgumentException;

    Verification withClaim(String name, Date value) throws IllegalArgumentException;

    Verification withArrayClaim(String name, String... items) throws IllegalArgumentException;

    Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException;

    Verification ignoreIssuedAt();

    JWTVerifier build();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy