Class NotBeforeJwtClaimsValidator<T>
java.lang.Object
io.micronaut.security.token.jwt.validator.NotBeforeJwtClaimsValidator<T>
- Type Parameters:
T
- Request
- All Implemented Interfaces:
GenericJwtClaimsValidator<T>
,JwtClaimsValidator<T>
@Singleton
@Requires(property="micronaut.security.token.jwt.claims-validators.not-before",
value="true")
public class NotBeforeJwtClaimsValidator<T>
extends Object
implements GenericJwtClaimsValidator<T>
Validate current time is not before the not-before claim of a JWT token.
- Since:
- 2.4.0
- Author:
- Jason Schindler, Sergio del Amo
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
NOT_BEFORE_PROP
- See Also:
-
-
Constructor Details
-
NotBeforeJwtClaimsValidator
public NotBeforeJwtClaimsValidator()
-
-
Method Details
-
validate
protected boolean validate(@NonNull @NonNull com.nimbusds.jwt.JWTClaimsSet claimsSet) - Parameters:
claimsSet
- The JWT Claims- Returns:
- true if the not-before claim denotes a date before now
-
validate
- Specified by:
validate
in interfaceJwtClaimsValidator<T>
- Parameters:
claims
- The JwtClaimsrequest
- HTTP Request- Returns:
- true if the not-before claim denotes a date before now
-