Uses of Interface
org.forgerock.openig.tools.jwt.JwtClaimConstraint
-
Packages that use JwtClaimConstraint Package Description org.forgerock.openig.tools.jwt This package contains classes used to perform JWT validation. -
-
Uses of JwtClaimConstraint in org.forgerock.openig.tools.jwt
Methods in org.forgerock.openig.tools.jwt that return JwtClaimConstraint Modifier and Type Method Description static <T> JwtClaimConstraint<Collection<T>>
Constraints. contains(T expected)
Returnsempty
if the list contains the expected value.static <T> JwtClaimConstraint<Collection<T>>
Constraints. containsOnly(T expected)
Returnsempty
if the list contains only the expected value.static <T> JwtClaimConstraint<T>
Constraints. isEqualTo(T expected)
Returnsempty
if the value is equal to the one expected and fulfill theViolation
with the custom error message.static JwtClaimConstraint<Instant>
Constraints. isInTheFuture()
Returns aJwtClaimConstraint
that will succeed if the timestamp is after the given date, otherwise it will fail.static JwtClaimConstraint<Instant>
Constraints. isInThePast()
Returns aJwtClaimConstraint
that will succeed if the timestamp is before the given date, otherwise it will fail.static JwtClaimConstraint<JsonValue>
Constraints. isNotNull()
Returnsempty
if the value is present.Methods in org.forgerock.openig.tools.jwt with parameters of type JwtClaimConstraint Modifier and Type Method Description JwtValidator.Builder
JwtValidator.Builder. claim(String key, JwtClaimConstraint<JsonValue> jwtClaimConstraint)
Adds aJwtClaimConstraint
on a claim.<T,E extends Exception>
JwtValidator.BuilderJwtValidator.Builder. claim(String key, Function<JsonValue,? extends T,E> transformer, JwtClaimConstraint<T> jwtClaimConstraint)
Adds aJwtClaimConstraint
on a claim.JwtValidator.Builder
JwtValidator.Builder. claims(String key, JwtClaimConstraint<String> jwtClaimConstraint)
Adds aJwtClaimConstraint
on a claim.<T> JwtValidator.Builder
JwtValidator.Builder. claimSet(String key, Function<Optional<JwtClaimsSet>,Optional<T>> adapter, JwtClaimConstraint<T> jwtClaimConstraint)
Adds aJwtClaimConstraint
on the claimSet.
-