eu.semiramis.policyManager.pdp.an
Class AnPDP
java.lang.Object
eu.semiramis.policyManager.pdp.impl.AbstractPDP
eu.semiramis.policyManager.pdp.an.AnPDP
- All Implemented Interfaces:
- PDP
public class AnPDP
- extends AbstractPDP
- implements PDP
This concrete implementation of the PDP uses an Enterprise Java XACML engine
to evaluate access control requests against the current XACML policies
- Author:
- Paolo Roccetti
Constructor Summary |
AnPDP(java.lang.String pdpName,
java.lang.String ContextHandlerId,
java.lang.String policyDir)
Creates a new AnPDP instance. |
Method Summary |
void |
destroy()
Tells the PDP that no more evaluations will be asked and the resources associated with the PDP can be released. |
org.opensaml.xacml.ctx.ResponseType |
evaluate(org.opensaml.xacml.ctx.RequestType request)
This method evaluates a XACML request against the set of policies defined
for the PDP. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface eu.semiramis.policyManager.pdp.PDP |
getName |
AnPDP
public AnPDP(java.lang.String pdpName,
java.lang.String ContextHandlerId,
java.lang.String policyDir)
throws ConfigurationException
- Creates a new AnPDP instance.
- Parameters:
policyDir
- the directory containing XACML policies to enforce
- Throws:
ConfigurationException
evaluate
public org.opensaml.xacml.ctx.ResponseType evaluate(org.opensaml.xacml.ctx.RequestType request)
throws EvaluationException
- Description copied from interface:
PDP
- This method evaluates a XACML request against the set of policies defined
for the PDP.
- Specified by:
evaluate
in interface PDP
- Parameters:
request
- the XACML request to evaluate
- Returns:
- the XACML response
- Throws:
EvaluationException
- when the evaluation of the request fails for some reasons
destroy
public void destroy()
- Description copied from interface:
PDP
- Tells the PDP that no more evaluations will be asked and the resources associated with the PDP can be released.
- Specified by:
destroy
in interface PDP