Class PdpJavaConnector
java.lang.Object
de.fraunhofer.iese.mydata.connector.java.PdpJavaConnector
- All Implemented Interfaces:
IMyDataComponent
,IPolicyDecisionPoint
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addToBlacklist
(Set<SolutionId> ids) boolean
clearAllCaches
(SolutionId solutionId) decisionRequest
(Event event) decisionRequests
(List<Event> events) boolean
boolean
boolean
getId()
boolean
boolean
boolean
removeFromBlacklist
(Set<SolutionId> ids) boolean
reset()
boolean
revokePolicy
(PolicyId policyId) void
setFailureMode
(boolean active) boolean
updatePolicy
(Policy policy, ZoneId zoneIdOfSolution) boolean
updatePolicyAndId
(Policy policyWithNewId, ZoneId zoneId, PolicyId oldPolicyId)
-
Constructor Details
-
PdpJavaConnector
-
PdpJavaConnector
-
PdpJavaConnector
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceIMyDataComponent
- Throws:
IOException
-
reset
- Specified by:
reset
in interfaceIMyDataComponent
- Throws:
IOException
NoSuchEntityException
-
getHealth
- Specified by:
getHealth
in interfaceIMyDataComponent
- Throws:
IOException
-
clearAllCaches
- Specified by:
clearAllCaches
in interfaceIPolicyDecisionPoint
- Throws:
IOException
-
decisionRequest
public AuthorizationDecision decisionRequest(Event event) throws IOException, EvaluationUndecidableException - Specified by:
decisionRequest
in interfaceIPolicyDecisionPoint
- Throws:
IOException
EvaluationUndecidableException
-
listDeployedPolicies
- Specified by:
listDeployedPolicies
in interfaceIPolicyDecisionPoint
- Throws:
IOException
-
addToBlacklist
- Specified by:
addToBlacklist
in interfaceIPolicyDecisionPoint
- Throws:
IOException
-
decisionRequests
- Specified by:
decisionRequests
in interfaceIPolicyDecisionPoint
- Throws:
IOException
-
deploy
public boolean deploy(Policy policy, ZoneId zoneIdOfSolution) throws IOException, ConflictingPolicyException - Specified by:
deploy
in interfaceIPolicyDecisionPoint
- Throws:
IOException
ConflictingPolicyException
-
evaluate
- Specified by:
evaluate
in interfaceIPolicyDecisionPoint
- Throws:
IOException
-
evaluate
- Specified by:
evaluate
in interfaceIPolicyDecisionPoint
- Throws:
IOException
-
removeFromBlacklist
- Specified by:
removeFromBlacklist
in interfaceIPolicyDecisionPoint
- Throws:
IOException
-
revokePolicy
- Specified by:
revokePolicy
in interfaceIPolicyDecisionPoint
- Throws:
IOException
ResourceUpdateException
-
setFailureMode
- Specified by:
setFailureMode
in interfaceIPolicyDecisionPoint
- Throws:
IOException
-
updatePolicy
public boolean updatePolicy(Policy policy, ZoneId zoneIdOfSolution) throws IOException, ResourceUpdateException - Specified by:
updatePolicy
in interfaceIPolicyDecisionPoint
- Throws:
IOException
ResourceUpdateException
-
updatePolicyAndId
public boolean updatePolicyAndId(Policy policyWithNewId, ZoneId zoneId, PolicyId oldPolicyId) throws IOException, ResourceUpdateException - Specified by:
updatePolicyAndId
in interfaceIPolicyDecisionPoint
- Throws:
IOException
ResourceUpdateException
-
isWhitelistModeEnabled
public boolean isWhitelistModeEnabled()- Specified by:
isWhitelistModeEnabled
in interfaceIPolicyDecisionPoint
-
isInFailureMode
public boolean isInFailureMode()- Specified by:
isInFailureMode
in interfaceIPolicyDecisionPoint
-