Package io.helidon.security.abac.time
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimeValidator.TimeConfig.Builder
Fluent API builder forTimeValidator.TimeConfig
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeValidator.TimeConfig
between(LocalTime from, LocalTime to)
Create a time config for a check between times within a day.static TimeValidator.TimeConfig.Builder
builder()
Builder for this class.static TimeValidator.TimeConfig
create(Config config)
Create an time config from configuration.static TimeValidator.TimeConfig
daysOfWeek(DayOfWeek... days)
Create a time config for a check for days of week.
-
-
-
Method Detail
-
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
-
-