Class PolicyValidator

java.lang.Object
io.helidon.security.abac.policy.PolicyValidator
All Implemented Interfaces:
AbacValidator<PolicyValidator.PolicyConfig>

public final class PolicyValidator extends Object implements AbacValidator<PolicyValidator.PolicyConfig>
Abac validator based on a PolicyValidator.PolicyStatement. The statement itself is not resolved by this validator and is delegated to another module implementing the PolicyExecutor obtained through a PolicyExecutorService java service.

Implementations provided by Helidon security:

  • Java EE expression language support, artifact id: "helidon-security-abac-policy-el"
Example of a policy statement:
@PolicyStatement("${env.time.year >= 2017 && object.owner == subject.principal.id}")