Package | Description |
---|---|
org.forgerock.openig.tools.jwt |
This package contains classes used to perform JWT validation.
|
Modifier and Type | Method and Description |
---|---|
static <T> JwtClaimConstraint<Collection<T>> |
Constraints.contains(T expected)
Returns
empty if the list contains the expected value. |
static <T> JwtClaimConstraint<Collection<T>> |
Constraints.containsOnly(T expected)
Returns
empty if the list contains only the expected value. |
static JwtClaimConstraint<Instant> |
Constraints.isAfter(Clock clock)
Returns
empty if the timestamp is after the given date. |
static JwtClaimConstraint<Instant> |
Constraints.isAfter(Clock clock,
TemporalAmount skewAllowance)
Returns
empty if the timestamp is after the given date. |
static JwtClaimConstraint<Instant> |
Constraints.isBefore(Clock clock)
Returns
empty if the timestamp is before the given date. |
static JwtClaimConstraint<Instant> |
Constraints.isBefore(Clock clock,
TemporalAmount skewAllowance)
Returns
empty if the timestamp is before the given date. |
static <T> JwtClaimConstraint<T> |
Constraints.isEqualTo(T expected)
Returns
empty if the value is equal to the one expected and fulfill the Violation with the custom
error message. |
static JwtClaimConstraint<JsonValue> |
Constraints.isNotNull()
Returns
empty if the value is present. |
Modifier and Type | Method and Description |
---|---|
JwtValidator.Builder |
JwtValidator.Builder.claim(JsonPointer ptr,
JwtClaimConstraint<JsonValue> jwtClaimConstraint)
Adds a
JwtClaimConstraint on a claim. |
<T,E extends Exception> |
JwtValidator.Builder.claim(String key,
Function<JsonValue,? extends T,E> transformer,
JwtClaimConstraint<T> jwtClaimConstraint)
Adds a
JwtClaimConstraint on a claim. |
JwtValidator.Builder |
JwtValidator.Builder.claim(String key,
JwtClaimConstraint<JsonValue> jwtClaimConstraint)
Adds a
JwtClaimConstraint on a claim. |
JwtValidator.Builder |
JwtValidator.Builder.claims(String key,
JwtClaimConstraint<String> jwtClaimConstraint)
Adds a
JwtClaimConstraint on a claim. |
<T> JwtValidator.Builder |
JwtValidator.Builder.claimSet(String key,
Function<Optional<JwtClaimsSet>,Optional<T>> adapter,
JwtClaimConstraint<T> jwtClaimConstraint)
Adds a
JwtClaimConstraint on the claimSet. |
Copyright 2011-2017 ForgeRock AS.