Class PdpJavaConnector
- java.lang.Object
-
- de.fraunhofer.iese.mydata.connector.java.PdpJavaConnector
-
- All Implemented Interfaces:
de.fraunhofer.iese.mydata.component.interfaces.IMyDataComponent
,de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
public class PdpJavaConnector extends Object implements de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
-
-
Constructor Summary
Constructors Constructor Description PdpJavaConnector(de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint pdp)
PdpJavaConnector(URI uri)
PdpJavaConnector(URI uri, de.fraunhofer.iese.mydata.component.connector.Authentication auth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addToBlacklist(Set<de.fraunhofer.iese.mydata.solution.SolutionId> ids)
boolean
clearAllCaches(de.fraunhofer.iese.mydata.solution.SolutionId solutionId)
de.fraunhofer.iese.mydata.policy.decision.AuthorizationDecision
decisionRequest(de.fraunhofer.iese.mydata.policy.event.Event event)
List<de.fraunhofer.iese.mydata.policy.decision.AuthorizationDecision>
decisionRequests(List<de.fraunhofer.iese.mydata.policy.event.Event> events)
boolean
deploy(de.fraunhofer.iese.mydata.policy.Policy policy, java.time.ZoneId zoneIdOfSolution)
boolean
evaluate(de.fraunhofer.iese.mydata.policy.event.Event event)
boolean
evaluate(Set<de.fraunhofer.iese.mydata.policy.event.Event> events)
de.fraunhofer.iese.mydata.component.health.HealthStatus
getHealth()
de.fraunhofer.iese.mydata.component.ComponentId
getId()
boolean
isInFailureMode()
boolean
isWhitelistModeEnabled()
Set<String>
listDeployedPolicies()
boolean
removeFromBlacklist(Set<de.fraunhofer.iese.mydata.solution.SolutionId> ids)
boolean
reset()
boolean
revokePolicy(de.fraunhofer.iese.mydata.policy.PolicyId policyId)
void
setFailureMode(boolean active)
boolean
updatePolicy(de.fraunhofer.iese.mydata.policy.Policy policy, java.time.ZoneId zoneIdOfSolution)
boolean
updatePolicyAndId(de.fraunhofer.iese.mydata.policy.Policy policyWithNewId, java.time.ZoneId zoneId, de.fraunhofer.iese.mydata.policy.PolicyId oldPolicyId)
-
-
-
Constructor Detail
-
PdpJavaConnector
public PdpJavaConnector(de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint pdp)
-
PdpJavaConnector
public PdpJavaConnector(URI uri)
-
PdpJavaConnector
public PdpJavaConnector(URI uri, de.fraunhofer.iese.mydata.component.connector.Authentication auth)
-
-
Method Detail
-
getId
public de.fraunhofer.iese.mydata.component.ComponentId getId() throws IOException
- Specified by:
getId
in interfacede.fraunhofer.iese.mydata.component.interfaces.IMyDataComponent
- Throws:
IOException
-
reset
public boolean reset() throws IOException, de.fraunhofer.iese.mydata.exception.NoSuchEntityException
- Specified by:
reset
in interfacede.fraunhofer.iese.mydata.component.interfaces.IMyDataComponent
- Throws:
IOException
de.fraunhofer.iese.mydata.exception.NoSuchEntityException
-
getHealth
public de.fraunhofer.iese.mydata.component.health.HealthStatus getHealth() throws IOException
- Specified by:
getHealth
in interfacede.fraunhofer.iese.mydata.component.interfaces.IMyDataComponent
- Throws:
IOException
-
clearAllCaches
public boolean clearAllCaches(@Nullable de.fraunhofer.iese.mydata.solution.SolutionId solutionId) throws IOException
- Specified by:
clearAllCaches
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
- Throws:
IOException
-
decisionRequest
public de.fraunhofer.iese.mydata.policy.decision.AuthorizationDecision decisionRequest(de.fraunhofer.iese.mydata.policy.event.Event event) throws IOException, de.fraunhofer.iese.mydata.policy.exception.EvaluationUndecidableException
- Specified by:
decisionRequest
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
- Throws:
IOException
de.fraunhofer.iese.mydata.policy.exception.EvaluationUndecidableException
-
listDeployedPolicies
public Set<String> listDeployedPolicies() throws IOException
- Specified by:
listDeployedPolicies
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
- Throws:
IOException
-
addToBlacklist
public boolean addToBlacklist(Set<de.fraunhofer.iese.mydata.solution.SolutionId> ids) throws IOException
- Specified by:
addToBlacklist
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
- Throws:
IOException
-
decisionRequests
public List<de.fraunhofer.iese.mydata.policy.decision.AuthorizationDecision> decisionRequests(List<de.fraunhofer.iese.mydata.policy.event.Event> events) throws IOException
- Specified by:
decisionRequests
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
- Throws:
IOException
-
deploy
public boolean deploy(de.fraunhofer.iese.mydata.policy.Policy policy, java.time.ZoneId zoneIdOfSolution) throws IOException, de.fraunhofer.iese.mydata.policy.exception.ConflictingPolicyException
- Specified by:
deploy
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
- Throws:
IOException
de.fraunhofer.iese.mydata.policy.exception.ConflictingPolicyException
-
evaluate
public boolean evaluate(de.fraunhofer.iese.mydata.policy.event.Event event) throws IOException
- Specified by:
evaluate
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
- Throws:
IOException
-
evaluate
public boolean evaluate(Set<de.fraunhofer.iese.mydata.policy.event.Event> events) throws IOException
- Specified by:
evaluate
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
- Throws:
IOException
-
removeFromBlacklist
public boolean removeFromBlacklist(Set<de.fraunhofer.iese.mydata.solution.SolutionId> ids) throws IOException
- Specified by:
removeFromBlacklist
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
- Throws:
IOException
-
revokePolicy
public boolean revokePolicy(de.fraunhofer.iese.mydata.policy.PolicyId policyId) throws IOException, de.fraunhofer.iese.mydata.exception.ResourceUpdateException
- Specified by:
revokePolicy
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
- Throws:
IOException
de.fraunhofer.iese.mydata.exception.ResourceUpdateException
-
setFailureMode
public void setFailureMode(boolean active) throws IOException
- Specified by:
setFailureMode
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
- Throws:
IOException
-
updatePolicy
public boolean updatePolicy(de.fraunhofer.iese.mydata.policy.Policy policy, java.time.ZoneId zoneIdOfSolution) throws IOException, de.fraunhofer.iese.mydata.exception.ResourceUpdateException
- Specified by:
updatePolicy
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
- Throws:
IOException
de.fraunhofer.iese.mydata.exception.ResourceUpdateException
-
updatePolicyAndId
public boolean updatePolicyAndId(de.fraunhofer.iese.mydata.policy.Policy policyWithNewId, java.time.ZoneId zoneId, de.fraunhofer.iese.mydata.policy.PolicyId oldPolicyId) throws IOException, de.fraunhofer.iese.mydata.exception.ResourceUpdateException
- Specified by:
updatePolicyAndId
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
- Throws:
IOException
de.fraunhofer.iese.mydata.exception.ResourceUpdateException
-
isWhitelistModeEnabled
public boolean isWhitelistModeEnabled()
- Specified by:
isWhitelistModeEnabled
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
-
isInFailureMode
public boolean isInFailureMode()
- Specified by:
isInFailureMode
in interfacede.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
-
-