Uses of Interface
com.auth0.jwt.interfaces.Verification
Packages that use Verification
-
Uses of Verification in com.auth0.jwt
Classes in com.auth0.jwt that implement VerificationModifier and TypeClassDescriptionstatic class
Verification
implementation that accepts all the expected Claim values for verification, and builds aJWTVerifier
used to verify a JWT's signature and expected claims.Methods in com.auth0.jwt that return VerificationModifier and TypeMethodDescriptionJWTVerifier.BaseVerification.acceptExpiresAt
(long leeway) JWTVerifier.BaseVerification.acceptIssuedAt
(long leeway) JWTVerifier.BaseVerification.acceptLeeway
(long leeway) JWTVerifier.BaseVerification.acceptNotBefore
(long leeway) JWTVerifier.BaseVerification.ignoreIssuedAt()
static Verification
Returns aVerification
builder with the algorithm to be used to validate token signature.JWTVerifier.BaseVerification.withAnyOfAudience
(String... audience) JWTVerifier.BaseVerification.withArrayClaim
(String name, Integer... items) JWTVerifier.BaseVerification.withArrayClaim
(String name, Long... items) JWTVerifier.BaseVerification.withArrayClaim
(String name, String... items) JWTVerifier.BaseVerification.withAudience
(String... audience) JWTVerifier.BaseVerification.withClaim
(String name, BiPredicate<Claim, DecodedJWT> predicate) JWTVerifier.BaseVerification.withClaimPresence
(String name) JWTVerifier.BaseVerification.withIssuer
(String... issuer) JWTVerifier.BaseVerification.withNullClaim
(String name) JWTVerifier.BaseVerification.withSubject
(String subject) -
Uses of Verification in com.auth0.jwt.interfaces
Methods in com.auth0.jwt.interfaces that return VerificationModifier and TypeMethodDescriptionVerification.acceptExpiresAt
(long leeway) Set a specific leeway window in seconds in which the Expires At ("exp") Claim will still be valid.Verification.acceptIssuedAt
(long leeway) Set a specific leeway window in seconds in which the Issued At ("iat") Claim will still be valid.Verification.acceptLeeway
(long leeway) Define the default window in seconds in which the Not Before, Issued At and Expires At Claims will still be valid.Verification.acceptNotBefore
(long leeway) Set a specific leeway window in seconds in which the Not Before ("nbf") Claim will still be valid.Verification.ignoreIssuedAt()
Skip the Issued At ("iat") claim verification.Verification.withAnyOfAudience
(String... audience) Verifies whether the JWT contains an Audience ("aud") claim contain at least one of the specified audiences.Verification.withArrayClaim
(String name, Integer... items) Verifies whether the claim contain at least the given Integer items.Verification.withArrayClaim
(String name, Long... items) Verifies whether the claim contain at least the given Long items.Verification.withArrayClaim
(String name, String... items) Verifies whether the claim contain at least the given String items.Verification.withAudience
(String... audience) Verifies whether the JWT contains an Audience ("aud") claim that contains all the values provided.Verifies whether the claim is equal to the given Boolean value.Verifies whether the claim is equal to the given Integer value.Verifies whether the claim is equal to the given Integer value.Verifies whether the claim is equal to the given Long value.Verifies whether the claim is equal to the given String value.default Verification
Verifies whether the claim is equal to the given Instant value.Verifies whether the claim is equal to the given Date value.Verification.withClaim
(String name, BiPredicate<Claim, DecodedJWT> predicate) Executes the predicate provided and the validates the JWT if the predicate returns true.Verification.withClaimPresence
(String name) Verifies whether the claim is present in the JWT, with any value includingnull
.default Verification
Verification.withIssuer
(String issuer) Verifies whether the JWT contains an Issuer ("iss") claim that equals to the value provided.Verification.withIssuer
(String... issuer) Verifies whether the JWT contains an Issuer ("iss") claim that contains all the values provided.Verifies whether the JWT contains a JWT ID ("jti") claim that equals to the value provided.Verification.withNullClaim
(String name) Verifies whether the claim is present with anull
value.Verification.withSubject
(String subject) Verifies whether the JWT contains a Subject ("sub") claim that equals to the value provided.