Class Jwt.IssueTimeValidator

java.lang.Object
io.helidon.security.jwt.Jwt.IssueTimeValidator
All Implemented Interfaces:
Validator<Jwt>
Enclosing class:
Jwt

@Deprecated(since="4.0.10", forRemoval=true) public static final class Jwt.IssueTimeValidator extends Object implements Validator<Jwt>
Deprecated, for removal: This API element is subject to removal in a future version.
Validator of issue time claim.
  • Method Summary

    Modifier and Type
    Method
    Description
    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).
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • create

      public static Jwt.IssueTimeValidator 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:
      issue time validator with defaults
    • create

      public static Jwt.IssueTimeValidator 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 as ChronoUnit.SECONDS
      mandatory - true for mandatory, false for optional
      Returns:
      configured issue time validator
    • validate

      public void validate(Jwt token, Errors.Collector collector)
      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 interface Validator<Jwt>
      Parameters:
      token - object to validate
      collector - collector of error messages to add problems to. Use Errors.Collector.fatal(Object, String) to mark the validation as a failure