Class ValidatorConstraintContext
java.lang.Object
org.forgerock.openig.tools.jwt.validation.ValidatorConstraintContext
The validation context that will be passed among the different JWT constraints validations.
-
Method Summary
Modifier and TypeMethodDescription<T> TgetAttribute(String key) Get an attribute from theJwtValidationContextby key.Returns the current instant that was captured when the validation started.getJwt()Return the JWT the constraints must be applied on.Returns the skew allowance that can be tolerated when validating temporal fields.
-
Method Details
-
getCurrentDateTime
Returns the current instant that was captured when the validation started.- Returns:
- the current instant that was captured when the validation started.
-
getSkewAllowance
Returns the skew allowance that can be tolerated when validating temporal fields.- Returns:
- the skew allowance that can be tolerated when validating temporal fields.
-
getAttribute
Get an attribute from theJwtValidationContextby key.- Type Parameters:
T- the expected attribute type- Parameters:
key- the key to use to retrieve the attribute- Returns:
- the attribute
-
getJwt
Return the JWT the constraints must be applied on.- Returns:
- the JWT the constraints must be applied on.
-