Interface JwtClaimConstraint<T>
-
- Type Parameters:
T
- The claim value type.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface JwtClaimConstraint<T>
AJwtClaimConstraint
represents an individual check that can applied to test a claim from a JWT.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Promise<Result,NeverThrowsException>
apply(ValidatorConstraintContext constraintContext, String key, T value)
Apply a constraint to the given claim value.
-
-
-
Method Detail
-
apply
Promise<Result,NeverThrowsException> apply(ValidatorConstraintContext constraintContext, String key, T value)
Apply a constraint to the given claim value.- Parameters:
constraintContext
- The validation context used to hold data between constraints validationkey
- The claim's key.value
- The value on which to apply theJwtClaimConstraint
.- Returns:
- a
Result
promise for thisJwtClaimConstraint
.
-
-