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 Detail

      • enforce

        void enforce​(Event event)
              throws InhibitException,
                     EvaluationUndecidableException,
                     java.io.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 PDP
        EvaluationUndecidableException - is thrown by PDP if it was not possible to evaluate
        java.io.IOException - 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 enforced
        decision - which is to be enforced
        Throws:
        InhibitException - if event is not allowed by PDP
      • getDecision

        AuthorizationDecision getDecision​(Event event)
                                   throws EvaluationUndecidableException,
                                          java.io.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 evaluate
        java.io.IOException - if there is a interruption in communication with PDP