Package io.helidon.security.abac.policy
Class PolicyValidator.Builder
- java.lang.Object
-
- io.helidon.security.abac.policy.PolicyValidator.Builder
-
- All Implemented Interfaces:
Builder<PolicyValidator>
,Supplier<PolicyValidator>
- Enclosing class:
- PolicyValidator
public static final class PolicyValidator.Builder extends Object implements Builder<PolicyValidator>
A fluent API builder forPolicyValidator
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyValidator.Builder
addExecutor(PolicyExecutor executor)
Add an executor (that is not available as a java service).PolicyValidator
build()
Build the instance from this builder.PolicyValidator.Builder
config(Config config)
Update this builder from configuration.
-
-
-
Method Detail
-
build
public PolicyValidator build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<PolicyValidator>
- Returns:
- instance of the built type
-
addExecutor
public PolicyValidator.Builder addExecutor(PolicyExecutor executor)
Add an executor (that is not available as a java service).- Parameters:
executor
- to evaluate policy statements- Returns:
- updated builder instance
-
config
public PolicyValidator.Builder config(Config config)
Update this builder from configuration.- Parameters:
config
- configuration instance located onPolicyValidatorService.configKey()
- Returns:
- updated builder instance
-
-