Package io.helidon.security.abac.policy
Class PolicyValidator.PolicyConfig
- java.lang.Object
-
- io.helidon.security.abac.policy.PolicyValidator.PolicyConfig
-
- All Implemented Interfaces:
AbacValidatorConfig
- Enclosing class:
- PolicyValidator
public static final class PolicyValidator.PolicyConfig extends Object implements AbacValidatorConfig
Configuration of policy validator - a statement and whether to inherit value from parents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PolicyValidator.PolicyConfig.Builder
A fluent API builder forPolicyValidator.PolicyConfig
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyValidator.PolicyConfig.Builder
builder()
Creates a fluent API builder to build new instances of this class.List<String>
policyStatements()
The policy statements collected through configuration hierarchy.boolean
shouldInherit()
Whether to inherit statements from parent configurations.
-
-
-
Method Detail
-
builder
public static PolicyValidator.PolicyConfig.Builder builder()
Creates a fluent API builder to build new instances of this class.- Returns:
- a new builder instance
-
policyStatements
public List<String> policyStatements()
The policy statements collected through configuration hierarchy.- Returns:
- list of statements in order they should be executed
-
shouldInherit
public boolean shouldInherit()
Whether to inherit statements from parent configurations.- Returns:
- true to inherit, false to execute only this class's statements
-
-