Class PolicyEnforcementPoint

  • All Implemented Interfaces:
    de.fraunhofer.iese.mydata.component.interfaces.IMyDataComponent, de.fraunhofer.iese.mydata.component.interfaces.IPolicyEnforcementPoint

    public class PolicyEnforcementPoint
    extends DefaultPolicyEnforcementPoint
    Should be instantiated to create Pep enable application
    • Constructor Detail

      • PolicyEnforcementPoint

        public PolicyEnforcementPoint​(IMyDataEnvironment myDataEnvironment,
                                      DecisionEnforcer decisionEnforcer,
                                      de.fraunhofer.iese.mydata.component.ComponentId componentId,
                                      List<de.fraunhofer.iese.mydata.component.information.method.PepInterfaceDescription> pepInterfaceDescriptions,
                                      List<de.fraunhofer.iese.mydata.component.information.method.MethodInterfaceDescription> methodInterfaceDescriptions,
                                      boolean initialize)
                               throws de.fraunhofer.iese.mydata.exception.InvalidEntityException,
                                      IOException,
                                      de.fraunhofer.iese.mydata.exception.NoSuchEntityException
        Constructor. Initializes the Connection to PMP and registers the Pep.
        Parameters:
        myDataEnvironment - the IMyDataEnvironment the PEP belongs to
        decisionEnforcer - Enforcer to use.
        componentId - Id of the Pep.
        pepInterfaceDescriptions - Modifiers this Pep exports.
        methodInterfaceDescriptions - Modifiers Interface Description.
        initialize - initialize?
        Throws:
        de.fraunhofer.iese.mydata.exception.InvalidEntityException
        IOException
        de.fraunhofer.iese.mydata.exception.NoSuchEntityException
    • Method Detail

      • getId

        public de.fraunhofer.iese.mydata.component.ComponentId getId()
        Returns Pep componet ID
        Specified by:
        getId in interface de.fraunhofer.iese.mydata.component.interfaces.IMyDataComponent
        Overrides:
        getId in class DefaultPolicyEnforcementPoint
        Returns:
        The id of the component.
      • initialize

        public boolean initialize()
                           throws IOException,
                                  de.fraunhofer.iese.mydata.exception.NoSuchEntityException
        initialization using registry builder
        Specified by:
        initialize in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyEnforcementPoint
        Overrides:
        initialize in class DefaultPolicyEnforcementPoint
        Throws:
        IOException - If connection to PDP could not be established.
        de.fraunhofer.iese.mydata.exception.NoSuchEntityException