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
Configuration for time attribute validator.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Fluent API builder forTimeValidator.TimeConfig
. -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeValidator.TimeConfig
Create a time config for a check between times within a day.builder()
Builder for this class.static TimeValidator.TimeConfig
Create an time config from configuration.static TimeValidator.TimeConfig
daysOfWeek
(DayOfWeek... days) Create a time config for a check for days of week.
-
Method Details
-
builder
Builder for this class.- Returns:
- a new builder instance
-
between
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
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
Create an time config from configuration.- Parameters:
config
- configuration located on this validator config key- Returns:
- time configuration based on the config
-