java.lang.Object
io.helidon.security.jwt.Jwt.NotBeforeValidator
- Enclosing class:
Jwt
@Deprecated(since="4.0.10",
forRemoval=true)
public static final class Jwt.NotBeforeValidator
extends Object
implements Validator<Jwt>
Deprecated, for removal: This API element is subject to removal in a future version.
Validator of not before claim.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Jwt.NotBeforeValidator
create()
Deprecated, for removal: This API element is subject to removal in a future version.New instance with default values (allowed time skew 5 seconds, optional).static Jwt.NotBeforeValidator
create
(Instant now, int allowedTimeSkew, TemporalUnit allowedTimeSkewUnit, boolean mandatory) Deprecated, for removal: This API element is subject to removal in a future version.New instance with explicit values.void
validate
(Jwt token, Errors.Collector collector) Deprecated, for removal: This API element is subject to removal in a future version.Validate the object against this class's configuration.
-
Method Details
-
create
Deprecated, for removal: This API element is subject to removal in a future version.New instance with default values (allowed time skew 5 seconds, optional).- Returns:
- not before time validator with defaults
-
create
public static Jwt.NotBeforeValidator create(Instant now, int allowedTimeSkew, TemporalUnit allowedTimeSkewUnit, boolean mandatory) Deprecated, for removal: This API element is subject to removal in a future version.New instance with explicit values.- Parameters:
now
- time to validate against (to be able to validate past tokens)allowedTimeSkew
- allowed time skew amount (such as 5)allowedTimeSkewUnit
- allowed time skew unit (such asChronoUnit.SECONDS
mandatory
- true for mandatory, false for optional- Returns:
- not before time validator
-
validate
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Validator
Validate the object against this class's configuration.- Specified by:
validate
in interfaceValidator<Jwt>
- Parameters:
token
- object to validatecollector
- collector of error messages to add problems to. UseErrors.Collector.fatal(Object, String)
to mark the validation as a failure
-
JwtValidator.Builder.addNotBeforeValidator()
instead