Package de.fraunhofer.iese.mydata.pep
Class PolicyEnforcementPoint
- java.lang.Object
-
- de.fraunhofer.iese.mydata.pep.DefaultPolicyEnforcementPoint
-
- de.fraunhofer.iese.mydata.pep.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
-
-
Field Summary
-
Fields inherited from class de.fraunhofer.iese.mydata.pep.DefaultPolicyEnforcementPoint
myDataEnvironment
-
-
Constructor Summary
Constructors Constructor Description 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)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.fraunhofer.iese.mydata.component.ComponentId
getId()
Returns Pep componet IDboolean
initialize()
initialization using registry builder-
Methods inherited from class de.fraunhofer.iese.mydata.pep.DefaultPolicyEnforcementPoint
enforce, enforceDecision, getDecision, getHealth, reset
-
-
-
-
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 todecisionEnforcer
- 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 interfacede.fraunhofer.iese.mydata.component.interfaces.IMyDataComponent
- Overrides:
getId
in classDefaultPolicyEnforcementPoint
- 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 interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyEnforcementPoint
- Overrides:
initialize
in classDefaultPolicyEnforcementPoint
- Throws:
IOException
- If connection to PDP could not be established.de.fraunhofer.iese.mydata.exception.NoSuchEntityException
-
-