public class PDP extends Object
Constructor and Description |
---|
PDP(PDPConfig pdpConfig)
Constructs a new
PDP object with the given configuration information. |
Modifier and Type | Method and Description |
---|---|
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.
|
public PDP(PDPConfig pdpConfig)
PDP
object with the given configuration information.pdpConfig
- user configuration data defining how to find policies, resolve external
attributes, etc.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 evaluatepublic 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 evaluatepublic 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 evaluationpublic 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 RequestTypeCopyright © 2015 WSO2. All rights reserved.