|
SunTM's XACML Implementation for JavaTM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xacml.PDP
This is the core class for the XACML engine, providing the starting point for request evaluation. To build an XACML policy engine, you start by instantiating this object.
Constructor Summary | |
PDP(PDPConfig config)
Constructs a new PDP object with the given configuration
information. |
Method Summary | |
ResponseCtx |
evaluate(EvaluationCtx context)
Uses the given EvaluationCtx against the available
policies to determine a response. |
OutputStream |
evaluate(InputStream input)
Deprecated. As of 1.2 this method should not be used. Instead, you should do your own stream handling, and then use one of the other evaluate methods. The problem
with this method is that it often doesn't handle stream
termination correctly (eg, with sockets). |
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 |
public PDP(PDPConfig config)
PDP
object with the given configuration
information.
config
- user configuration data defining how to find policies,
resolve external attributes, etc.Method Detail |
public ResponseCtx evaluate(RequestCtx request)
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.
request
- the request to evaluate
public ResponseCtx evaluate(EvaluationCtx context)
EvaluationCtx
against the available
policies to determine a response. If you are starting with a standard
XACML Request, then you should use the version of this method that
takes a RequestCtx
. This method should be used only if
you have a real need to directly construct an evaluation context (or
if you need to use an EvaluationCtx
implementation other
than BasicEvaluationCtx
).
context
- representation of the request and the context used
for evaluation
public OutputStream evaluate(InputStream input)
evaluate
methods. The problem
with this method is that it often doesn't handle stream
termination correctly (eg, with sockets).
input
- a stream that contains an XML RequestType
|
Sun's XACML Implementation Version 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.