Class JavaxElPolicyExecutor
java.lang.Object
io.helidon.security.abac.policy.el.JavaxElPolicyExecutor
- All Implemented Interfaces:
PolicyExecutor
PolicyExecutor
for Java EE Expression Language (EL).
See tutorial for details of the EL: https://docs
.oracle.com/javaee/7/tutorial/jsf-el005.htm#BNAIK-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent API builder forJavaxElPolicyExecutor
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a fluent API builder to build new instances of this class.static JavaxElPolicyExecutor
create()
Create a new instance configured with defaults.static JavaxElPolicyExecutor
Create an instance based on configuration.void
executePolicy
(String policyStatement, Errors.Collector collector, ProviderRequest request) Execute a policy based on a policy statement.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.security.abac.policy.spi.PolicyExecutor
supports
-
Method Details
-
builder
Creates a fluent API builder to build new instances of this class.- Returns:
- a new builder instance
-
create
Create an instance based on configuration.- Parameters:
config
- configuration located on the key provided byJavaxElPolicyExecutorService.configKey()
- Returns:
- a new configured instance
-
create
Create a new instance configured with defaults.- Returns:
- a new policy executor
-
executePolicy
public void executePolicy(String policyStatement, Errors.Collector collector, ProviderRequest request) Description copied from interface:PolicyExecutor
Execute a policy based on a policy statement.- Specified by:
executePolicy
in interfacePolicyExecutor
- Parameters:
policyStatement
- statement to evaluatecollector
- registerErrors.Collector.fatal(Object, String)
in case the policy statement denies the request, do nothing for successful execution.Errors.Collector.warn(Object, String)
andErrors.Collector.hint(Object, String)
may be used for troubleshooting/debugging purposesrequest
- request providing access to subject, service subject, environment and object (s)
-