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.
A
JwtClaimConstraint represents an individual check that can applied to test a claim from a JWT.-
Method Summary
Modifier and TypeMethodDescriptionapply(ValidatorConstraintContext constraintContext, String key, T value) Apply a constraint to the given claim value.
-
Method Details
-
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
Resultpromise for thisJwtClaimConstraint.
-