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
Nested ClassesModifier and TypeClassDescriptionstatic final classFluent API builder forTimeValidator.TimeConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeValidator.TimeConfigCreate a time config for a check between times within a day.builder()Builder for this class.static TimeValidator.TimeConfigDeprecated, for removal: This API element is subject to removal in a future version.static TimeValidator.TimeConfigCreate a time config from configuration.static TimeValidator.TimeConfigdaysOfWeek(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
@Deprecated(since="4.4.0", forRemoval=true) public static TimeValidator.TimeConfig create(Config config) Deprecated, for removal: This API element is subject to removal in a future version.usecreate(io.helidon.config.Config)insteadCreate a time config from configuration.- Parameters:
config- configuration located on this validator config key- Returns:
- time configuration based on the config
-
create
Create a time config from configuration.- Parameters:
config- configuration located on this validator config key- Returns:
- time configuration based on the config
-
create(io.helidon.config.Config)instead