public interface PolicyExecutor
| Modifier and Type | Method and Description |
|---|---|
void |
executePolicy(String policyStatement,
Errors.Collector collector,
ProviderRequest request)
Execute a policy based on a policy statement.
|
default boolean |
supports(String policyStatement,
ProviderRequest request)
Can be used to tell the
PolicyValidator that this statement is supported by this
policy executor. |
default boolean supports(String policyStatement, ProviderRequest request)
PolicyValidator that this statement is supported by this
policy executor. If there are more than one executors configured, first provider that supports a statement will execute it.policyStatement - statement as configured through EndpointConfigrequest - request of current security exchange, containing environment, subject, and objectvoid executePolicy(String policyStatement, Errors.Collector collector, ProviderRequest request)
policyStatement - statement to evaluatecollector - register Errors.Collector#fatal(Object, String) in case the policy statement denies the
request,
do nothing for successful execution. Errors.Collector#warn(Object, String) and
Errors.Collector#hint(Object, String) may be used for troubleshooting/debugging purposesrequest - request providing access to subject, service subject, environment and object (s)Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.