Class TimeValidator.TimeConfig

java.lang.Object
io.helidon.security.abac.time.TimeValidator.TimeConfig
All Implemented Interfaces:
AbacValidatorConfig
Enclosing class:
TimeValidator

public static final class TimeValidator.TimeConfig extends Object implements AbacValidatorConfig
Configuration for time attribute validator.
  • Method Details

    • builder

      public static TimeValidator.TimeConfig.Builder builder()
      Builder for this class.
      Returns:
      a new builder instance
    • between

      public static TimeValidator.TimeConfig between(LocalTime from, LocalTime to)
      Create a time config for a check between times within a day.
      Parameters:
      from - from time (ignoring date part)
      to - to time (ignoring date part)
      Returns:
      time configuration for this between config
    • daysOfWeek

      public static TimeValidator.TimeConfig daysOfWeek(DayOfWeek... days)
      Create a time config for a check for days of week.
      Parameters:
      days - days the endpoint should be accessible on
      Returns:
      time configuration for this week day config
    • create

      public static TimeValidator.TimeConfig create(Config config)
      Create an time config from configuration.
      Parameters:
      config - configuration located on this validator config key
      Returns:
      time configuration based on the config