eu.semiramis.policyManager.pdp.an
Class AnPDP

java.lang.Object
  extended by eu.semiramis.policyManager.pdp.impl.AbstractPDP
      extended by 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 eu.semiramis.policyManager.pdp.impl.AbstractPDP
getName
 
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
 

Constructor Detail

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
Method Detail

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