|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.PDP
public class 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 pdpConfig)
Constructs a new PDP object with the given configuration information. |
Method Summary | |
---|---|
ResponseCtx |
evaluate(AbstractRequestCtx request)
Attempts to evaluate the request against the policies known to this PDP. |
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). |
String |
evaluate(String 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 pdpConfig)
PDP
object with the given configuration information.
pdpConfig
- user configuration data defining how to find policies, resolve external
attributes, etc.Method Detail |
---|
public String evaluate(String 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(AbstractRequestCtx 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 XACML3EvaluationCtx
and
XACML2EvaluationCtx
).
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |