Interface IPolicyEnforcementPoint
-
- All Superinterfaces:
IMyDataComponent
public interface IPolicyEnforcementPoint extends IMyDataComponent
Policy Enforcement Points intercept system events and communicate with the PDP to get a corresponding decision.- Author:
- Fraunhofer IESE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidenforce(Event event)* Enforces PDP decision to the event if any PDP subscribes to ActionID of the event.voidenforceDecision(Event event, AuthorizationDecision decision)It enforces the authorization decision to the event.AuthorizationDecisiongetDecision(Event event)* It sends the event to subscribed PDP and returns AuthorizationDecision of PDP.booleaninitialize()-
Methods inherited from interface de.fraunhofer.iese.mydata.component.interfaces.IMyDataComponent
getHealth, getId, reset
-
-
-
-
Method Detail
-
enforce
void enforce(Event event) throws InhibitException, EvaluationUndecidableException, IOException
* Enforces PDP decision to the event if any PDP subscribes to ActionID of the event.- Parameters:
event- to be sent to PDP and AuthorizationDecision to be enforced- Throws:
InhibitException- if event is not allowed by PDPEvaluationUndecidableException- is thrown by PDP if it was not possible to evaluateIOException- if there is a interruption in communication with PDP
-
enforceDecision
void enforceDecision(Event event, AuthorizationDecision decision) throws InhibitException
It enforces the authorization decision to the event.- Parameters:
event- on what decision to be enforceddecision- which is to be enforced- Throws:
InhibitException- if event is not allowed by PDP
-
getDecision
AuthorizationDecision getDecision(Event event) throws EvaluationUndecidableException, IOException
* It sends the event to subscribed PDP and returns AuthorizationDecision of PDP.- Parameters:
event- to be sent to subscribed PDP- Returns:
- AuthorizationDecision which is returned by subscribed PDP
- Throws:
EvaluationUndecidableException- is thrown by PDP if it was not possible to evaluateIOException- if there is a interruption in communication with PDP
-
initialize
boolean initialize() throws IOException, NoSuchEntityException- Throws:
IOExceptionNoSuchEntityException
-
-