public interface PDP
The PDP decides decision requests against a policy. It may use caching to speed up the decision.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LABELS_KEY |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllCaches()
Removes all data from PDP-internal caches.
|
PolicyDecision |
requestDecision(DecisionRequest req)
Main method for requesting a policy decision.
|
TransformationDecision |
requestTranformations(ServiceNode lastServiceNode)
Requests the PDP for the result of applying a transformation function to a message.
|
static final java.lang.String LABELS_KEY
PolicyDecision requestDecision(DecisionRequest req)
The decision request states attributes of subject and resource. The result is a decision that is expected to be enforced by the PEP.
req - The decision request, wrapping relevant data for policy decisionvoid clearAllCaches()
TransformationDecision requestTranformations(ServiceNode lastServiceNode)
Transformation functions remove and/or add labels to messages. For non-flow-aware services, transformation functions are defined as part of the policy.
A transformation function must always applied to a message before the policy decision is
requested using requestDecision.
lastServiceNode - The last Processor the message exchange has processed