issrg.xacml
Class PDP

java.lang.Object
  extended by issrg.xacml.PDP

public class PDP
extends java.lang.Object


Constructor Summary
PDP(PDPConfig config)
          Constructs a new PDP object with the given configuration information.
 
Method Summary
 ResponseCtx evaluate(RequestCtx request)
          Attempts to evaluate the request against the policies known to this PDP.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDP

public PDP(PDPConfig config)
    throws java.lang.Exception
Constructs a new PDP object with the given configuration information.

Parameters:
config - user configuration data defining how to find Permis configuration.
Throws:
java.lang.Exception
Method Detail

evaluate

public ResponseCtx evaluate(RequestCtx request)
                     throws java.lang.Exception
Attempts to evaluate the request against the policies known to this PDP. This is really the core method of the entire XACML specification, and for most people will provide what you want. If you need any special handling, you should look at the version of this method that takes an EvaluationCtx.

Note that if the request is somehow invalid (it was missing a required attribute, it was using an unsupported scope, etc), then the result will be a decision of INDETERMINATE.

Parameters:
request - the request to evaluate
Returns:
a response paired to the request
Throws:
java.lang.Exception