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:
IMyDataComponent
,IPolicyEnforcementPoint
Should be instantiated to create Pep enable application
-
Field Summary
Fields inherited from class de.fraunhofer.iese.mydata.pep.DefaultPolicyEnforcementPoint
myDataEnvironment
-
Constructor Summary
ConstructorDescriptionPolicyEnforcementPoint
(IMyDataEnvironment myDataEnvironment, DecisionEnforcer decisionEnforcer, ComponentId componentId, List<PepInterfaceDescription> pepInterfaceDescriptions, List<MethodInterfaceDescription> methodInterfaceDescriptions, boolean initialize) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Returns Pep componet IDboolean
initialization using registry builderMethods inherited from class de.fraunhofer.iese.mydata.pep.DefaultPolicyEnforcementPoint
enforce, enforceDecision, getDecision, getHealth, reset
-
Constructor Details
-
PolicyEnforcementPoint
public PolicyEnforcementPoint(IMyDataEnvironment myDataEnvironment, DecisionEnforcer decisionEnforcer, ComponentId componentId, List<PepInterfaceDescription> pepInterfaceDescriptions, List<MethodInterfaceDescription> methodInterfaceDescriptions, boolean initialize) throws InvalidEntityException, IOException, 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:
InvalidEntityException
IOException
NoSuchEntityException
-
-
Method Details
-
getId
Returns Pep componet ID- Specified by:
getId
in interfaceIMyDataComponent
- Overrides:
getId
in classDefaultPolicyEnforcementPoint
- Returns:
- The id of the component.
-
initialize
initialization using registry builder- Specified by:
initialize
in interfaceIPolicyEnforcementPoint
- Overrides:
initialize
in classDefaultPolicyEnforcementPoint
- Throws:
IOException
- If connection to PDP could not be established.NoSuchEntityException
-