public interface IPolicyManagementPoint extends IComponent
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAndDeployPolicy(String policy)
Deploys a policy at the local PDP of the enforcement scope.
|
boolean |
addPolicy(Policy p)
Adds a policy (ILP, ILPT, SLP, SLPT).
|
boolean |
addPolicyString(String policy)
Adds a policy (ILP, ILPT, SLP, SLPT).
|
boolean |
componentExists(ComponentId componentId)
Checks if the component is already in the database.
|
boolean |
deployPolicy(PolicyId policyId)
Deploys a policy at the local PDP of the enforcement scope.
|
List<EnforcementScopeId> |
getBlackListedSolutions()
Returns the list of solutions that is currently blacklisted
|
List<Policy> |
getDeployedPolicies(EnforcementScopeId scope)
Gets all policy.
|
boolean |
getDeploymentStatus(PolicyId policyId)
Gets the status.
|
EnforcementScope |
getEnforcementScope(EnforcementScopeId scope,
boolean includeInterface)
Describes the enforcement scope as a set of registered components and
corresponding interfaces.
|
Integer |
getPmpHashcode()
Gets the running hashcode of the pmp.
|
List<Policy> |
getPolicies(EnforcementScopeId scope)
Gets all policy.
|
Policy |
getPolicy(PolicyId policyId)
Gets the latest policy.
|
List<PolicyId> |
getPolicyIds(EnforcementScopeId scope)
Gets all policy ids.
|
boolean |
incrementRequestCounter(EnforcementScopeId scope,
long increment)
Increases the counter of processed events
|
List<PolicyId> |
listDeployedPolicies(EnforcementScopeId scope)
Provides a list of currently deployed policy ids.
|
ComponentBase |
lookup(ComponentId id)
Lookup by
ComponentId. |
Component |
lookupPdp()
Returns the list of PDPs in the database.
|
PepComponent |
lookupPep(ComponentId id)
Lookup by
ComponentId. |
List<PepComponent> |
lookupPep(EnforcementScopeId scope,
boolean includeInterface)
Returns the list of PEPs in the database.
|
List<Component> |
lookupPip(EnforcementScopeId scope,
boolean includeInterface)
Returns the list of PIPs in the database.
|
List<Component> |
lookupPip(EnforcementScopeId scope,
boolean includeInterface,
MethodInterfaceDescription query)
Returns the list of PIPs in the database.
|
List<Component> |
lookupPxp(EnforcementScopeId scope,
boolean includeInterface)
Returns the list of PXPs in the database.
|
List<Component> |
lookupPxp(EnforcementScopeId scope,
boolean includeInterface,
MethodInterfaceDescription query)
Returns the list of PXPs in the database.
|
boolean |
registerComponent(Component component)
Adds a component into the database.
|
boolean |
registerPEPComponent(PepComponent component)
Adds a pep into the database.
|
boolean |
removePolicy(PolicyId policy,
String reason)
Removes the policy.
|
boolean |
revokePolicy(PolicyId policyId)
Revokes a currently deployed policy.
|
void |
setDeploymentStatus(PolicyId policyId,
boolean deployed)
Sets the status.
|
boolean |
unregisterComponent(ComponentId componentId)
Deletes a component from the database.
|
getHealth, getId, initialize, resetboolean addAndDeployPolicy(String policy) throws IOException, IllegalArgumentException, ConflictingPolicyException, InvalidPolicyException
policy - the policy.IOException - if connection problem occursIllegalArgumentException - policy is not validConflictingPolicyException - multiple policies with same policyId
exist in PMP databaseInvalidPolicyExceptionboolean addPolicyString(String policy) throws IOException
policy - the policyIOException - Signals that an I/O exception has occurred.InvalidPolicyExceptionboolean addPolicy(Policy p) throws IOException
policy - the policyIOException - Signals that an I/O exception has occurred.InvalidPolicyExceptionboolean componentExists(ComponentId componentId) throws IOException
componentId - the id of the componentIOException - communication failureboolean deployPolicy(PolicyId policyId) throws IOException, NoSuchElementException, ConflictingPolicyException
policyId - the id of the policy to be deployed. Will be retrieved via
the PRPIOException - if connection problem occursNoSuchElementException - policy not found in PMP databaseConflictingPolicyException - multiple policies with same policyId
exist in PMP databaseList<Policy> getDeployedPolicies(EnforcementScopeId scope) throws IOException
scope - the scopeIOException - Signals that an I/O exception has occurred.boolean getDeploymentStatus(PolicyId policyId) throws IOException
policyId - the policy idIOException - Signals that an I/O exception has occurred.EnforcementScope getEnforcementScope(EnforcementScopeId scope, boolean includeInterface) throws IOException
scope - the scopeincludeInterface - a flag that indicates whether the interface
description of the component should be included in the resultEnforcementScope of the local enforcement scopeIOException - if connection problem occursList<Policy> getPolicies(EnforcementScopeId scope) throws IOException
scope - the scopeIOException - Signals that an I/O exception has occurred.Policy getPolicy(PolicyId policyId) throws IOException
policyId - the policy idIOException - Signals that an I/O exception has occurred.List<PolicyId> getPolicyIds(EnforcementScopeId scope) throws IOException
scope - the scopeIOException - Signals that an I/O exception has occurred.List<PolicyId> listDeployedPolicies(EnforcementScopeId scope) throws IOException
scope - the scopeIOException - communication failureComponentBase lookup(ComponentId id) throws IOException
ComponentId.id - the idIOException - communication failureComponent lookupPdp() throws IOException
IOException - communication failurePepComponent lookupPep(ComponentId id) throws IOException
ComponentId.id - the idIOException - communication failureList<PepComponent> lookupPep(EnforcementScopeId scope, boolean includeInterface) throws IOException
scope - the scopeincludeInterface - flag to include the interface (URLs and
MethodInterfaceDescriptionsIOException - communication failureList<Component> lookupPip(EnforcementScopeId scope, boolean includeInterface) throws IOException
scope - the scopeincludeInterface - flag to include the interface (URLs and
MethodInterfaceDescriptionsIOException - communication failureList<Component> lookupPip(EnforcementScopeId scope, boolean includeInterface, MethodInterfaceDescription query) throws IOException
scope - the scopeincludeInterface - flag to include the interface (URLs and
MethodInterfaceDescriptionsquery - the required / available MethodInterfaceDescriptions
to match againstIOException - communication failureList<Component> lookupPxp(EnforcementScopeId scope, boolean includeInterface) throws IOException
scope - the scopeincludeInterface - flag to include the interface (URLs and
MethodInterfaceDescriptionsIOException - communication failureList<Component> lookupPxp(EnforcementScopeId scope, boolean includeInterface, MethodInterfaceDescription query) throws IOException
scope - the scopeincludeInterface - flag to include the interface (URLs and
MethodInterfaceDescriptionsquery - the required / available MethodInterfaceDescriptions
to match againstIOException - communication failureboolean registerComponent(Component component) throws IOException
component - the componentIOException - communication failureboolean registerPEPComponent(PepComponent component) throws IOException
component - the componentIOException - communication failureboolean removePolicy(PolicyId policy, String reason) throws IOException
policy - the policyreason - the reasonIOException - Signals that an I/O exception has occurred.boolean revokePolicy(PolicyId policyId) throws IOException, PolicyRevokationException
policyId - the ID of the policy to be revokedIOException - if connection problem occursPolicyRevokationException - remove is not successfulvoid setDeploymentStatus(PolicyId policyId, boolean deployed) throws IOException
policyId - the policy iddeployed - the deployedIOException - Signals that an I/O exception has occurred.boolean unregisterComponent(ComponentId componentId) throws IOException
componentId - the ID of the component to be removedIOException - communication failureboolean incrementRequestCounter(EnforcementScopeId scope, long increment) throws IOException
scope - the scopeincrement - the number to addIOExceptionList<EnforcementScopeId> getBlackListedSolutions() throws IOException
IOExceptionInteger getPmpHashcode() throws IOException
IOException - Signals that an I/O exception has occurred.Copyright © 2018. All rights reserved.