Class JavaxElPolicyExecutor
- java.lang.Object
-
- io.helidon.security.abac.policy.el.JavaxElPolicyExecutor
-
- All Implemented Interfaces:
PolicyExecutor
public final class JavaxElPolicyExecutor extends Object implements 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
Nested Classes Modifier and Type Class Description static class
JavaxElPolicyExecutor.Builder
A fluent API builder forJavaxElPolicyExecutor
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JavaxElPolicyExecutor.Builder
builder()
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(Config config)
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 Detail
-
builder
public static JavaxElPolicyExecutor.Builder builder()
Creates a fluent API builder to build new instances of this class.- Returns:
- a new builder instance
-
create
public static JavaxElPolicyExecutor create(Config config)
Create an instance based on configuration.- Parameters:
config
- configuration located on the key provided byJavaxElPolicyExecutorService.configKey()
- Returns:
- a new configured instance
-
create
public static JavaxElPolicyExecutor 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)
-
-