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 <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 <T extends Comparable<T>> JwtClaimConstraint<T> |
Constraints.isGreaterOrEqualTo(Function<ValidatorConstraintContext,T> limitSupplier) |
Returns a JwtClaimConstraint that will succeed if the value is greater than or equal to the given value,
otherwise it will fail.
|
static <T extends Comparable<T>> JwtClaimConstraint<T> |
Constraints.isGreaterOrEqualTo(T limit) |
A shorter version of isGreaterOrEqualTo(constant(limit)).
|
static <T extends Comparable<T>> JwtClaimConstraint<T> |
Constraints.isGreaterThan(Function<ValidatorConstraintContext,T> limitSupplier) |
Returns a JwtClaimConstraint that will succeed if the value is greater than the given value,
otherwise it will fail.
|
static <T extends Comparable<T>> JwtClaimConstraint<T> |
Constraints.isGreaterThan(T limit) |
A shorter version of isGreaterThan(constant(limit)).
|
static JwtClaimConstraint<Instant> |
Constraints.isInTheFuture() |
Returns a JwtClaimConstraint that will succeed if the timestamp is after the given date,
otherwise it will fail.
|
static JwtClaimConstraint<Instant> |
Constraints.isInThePast() |
Returns a JwtClaimConstraint that will succeed if the timestamp is before the given date,
otherwise it will fail.
|
static <T extends Comparable<T>> JwtClaimConstraint<T> |
Constraints.isLessOrEqualTo(Function<ValidatorConstraintContext,T> limitSupplier) |
Returns a JwtClaimConstraint that will succeed if the value is less than or equal to the given value,
otherwise it will fail.
|
static <T extends Comparable<T>> JwtClaimConstraint<T> |
Constraints.isLessOrEqualTo(T limit) |
A shorter version of isLessOrEqualTo(constant(limit)).
|
static <T extends Comparable<T>> JwtClaimConstraint<T> |
Constraints.isLessThan(Function<ValidatorConstraintContext,T> limitSupplier) |
Returns a JwtClaimConstraint that will succeed if the value is less than the given value,
otherwise it will fail.
|
static <T extends Comparable<T>> JwtClaimConstraint<T> |
Constraints.isLessThan(T limit) |
A shorter version of isLessThan(constant(limit)).
|
static JwtClaimConstraint<JsonValue> |
Constraints.isNotNull() |
Returns empty if the value is present.
|
static JwtClaimConstraint<String> |
Constraints.matches(Pattern pattern) |
Build and returns a new `Constraint` that checks if the claim's value is matched (as per Matcher.matches() ) by the given regex .
|