Interface PolicyExecutorService
- All Known Implementing Classes:
JavaxElPolicyExecutorService
public interface PolicyExecutorService
Java service for
PolicyValidator
ABAC validator.-
Method Summary
Modifier and TypeMethodDescriptionConfiguration key that is expected by this policy validator service.instantiate
(Config config) Create a new instance of aPolicyExecutor
based on the configuration provider.
-
Method Details
-
configKey
String configKey()Configuration key that is expected by this policy validator service. This is obtained from policy-validator area in configuration. Example:security.providers: - abac policy-validator: my-custom-policy-engine: some-key: "some value" another-key: "another value"
- Returns:
- configuration key (e.g. "my-custom-policy-engine" from example above)
-
instantiate
Create a new instance of aPolicyExecutor
based on the configuration provider. Another option is to use a builder directly withPolicyValidator.Builder.addExecutor(io.helidon.security.abac.policy.spi.PolicyExecutor)
- Parameters:
config
- configuration as located onconfigKey()
.- Returns:
- new executor instance to be used by
PolicyValidator
to evaluate policy statements
-