Class NotBeforeJwtClaimsValidator
- java.lang.Object
-
- io.micronaut.security.token.jwt.validator.NotBeforeJwtClaimsValidator
-
- All Implemented Interfaces:
GenericJwtClaimsValidator,JwtClaimsValidator
@Singleton @Requires(property="micronaut.security.token.jwt.claims-validators.not-before", value="true") public class NotBeforeJwtClaimsValidator extends java.lang.Object implements GenericJwtClaimsValidatorValidate current time is not before the not-before claim of a JWT token.- Since:
- 2.4.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNOT_BEFORE_PROP-
Fields inherited from interface io.micronaut.security.token.jwt.validator.JwtClaimsValidator
PREFIX
-
-
Constructor Summary
Constructors Constructor Description NotBeforeJwtClaimsValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanvalidate(com.nimbusds.jwt.JWTClaimsSet claimsSet)booleanvalidate(JwtClaims claims, io.micronaut.http.HttpRequest<?> request)
-
-
-
Field Detail
-
NOT_BEFORE_PROP
public static final java.lang.String NOT_BEFORE_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
protected boolean validate(@NonNull com.nimbusds.jwt.JWTClaimsSet claimsSet)- Parameters:
claimsSet- The JWT Claims- Returns:
- true if the not-before claim denotes a date before now
-
validate
public boolean validate(@NonNull JwtClaims claims, @Nullable io.micronaut.http.HttpRequest<?> request)- Specified by:
validatein interfaceJwtClaimsValidator- Parameters:
claims- The JwtClaimsrequest- HTTP Request- Returns:
- true if the not-before claim denotes a date before now
-
-