Verification |
Verification.acceptExpiresAt(long leeway) |
Set a specific leeway window in seconds in which the Expires At ("exp") Claim will still be valid.
|
Verification |
Verification.acceptIssuedAt(long leeway) |
Set a specific leeway window in seconds in which the Issued At ("iat") Claim will still be valid.
|
Verification |
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 |
Verification.acceptNotBefore(long leeway) |
Set a specific leeway window in seconds in which the Not Before ("nbf") Claim will still be valid.
|
Verification |
Verification.ignoreIssuedAt() |
Skip the Issued At ("iat") claim verification.
|
Verification |
Verification.withAnyOfAudience(java.lang.String... audience) |
Verifies whether the JWT contains an Audience ("aud") claim contain at least one of the specified audiences.
|
Verification |
Verification.withArrayClaim(java.lang.String name,
java.lang.Integer... items) |
Verifies whether the claim contain at least the given Integer items.
|
Verification |
Verification.withArrayClaim(java.lang.String name,
java.lang.Long... items) |
Verifies whether the claim contain at least the given Long items.
|
Verification |
Verification.withArrayClaim(java.lang.String name,
java.lang.String... items) |
Verifies whether the claim contain at least the given String items.
|
Verification |
Verification.withAudience(java.lang.String... audience) |
Verifies whether the JWT contains an Audience ("aud") claim that contains all the values provided.
|
Verification |
Verification.withClaim(java.lang.String name,
java.lang.Boolean value) |
Verifies whether the claim is equal to the given Boolean value.
|
Verification |
Verification.withClaim(java.lang.String name,
java.lang.Double value) |
Verifies whether the claim is equal to the given Integer value.
|
Verification |
Verification.withClaim(java.lang.String name,
java.lang.Integer value) |
Verifies whether the claim is equal to the given Integer value.
|
Verification |
Verification.withClaim(java.lang.String name,
java.lang.Long value) |
Verifies whether the claim is equal to the given Long value.
|
Verification |
Verification.withClaim(java.lang.String name,
java.lang.String value) |
Verifies whether the claim is equal to the given String value.
|
default Verification |
Verification.withClaim(java.lang.String name,
java.time.Instant value) |
Verifies whether the claim is equal to the given Instant value.
|
Verification |
Verification.withClaim(java.lang.String name,
java.util.Date value) |
Verifies whether the claim is equal to the given Date value.
|
Verification |
Verification.withClaim(java.lang.String name,
java.util.function.BiPredicate<Claim,DecodedJWT> predicate) |
Executes the predicate provided and the validates the JWT if the predicate returns true.
|
Verification |
Verification.withClaimPresence(java.lang.String name) |
Verifies whether the claim is present in the JWT, with any value including null .
|
default Verification |
Verification.withIssuer(java.lang.String issuer) |
Verifies whether the JWT contains an Issuer ("iss") claim that equals to the value provided.
|
Verification |
Verification.withIssuer(java.lang.String... issuer) |
Verifies whether the JWT contains an Issuer ("iss") claim that contains all the values provided.
|
Verification |
Verification.withJWTId(java.lang.String jwtId) |
Verifies whether the JWT contains a JWT ID ("jti") claim that equals to the value provided.
|
Verification |
Verification.withNullClaim(java.lang.String name) |
Verifies whether the claim is present with a null value.
|
Verification |
Verification.withSubject(java.lang.String subject) |
Verifies whether the JWT contains a Subject ("sub") claim that equals to the value provided.
|