public class PDP extends Object
Constructor and Description |
---|
PDP(PDPConfig config)
Constructs a new
PDP object with the given configuration
information. |
Modifier and Type | Method and Description |
---|---|
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.
|
public PDP(PDPConfig config)
PDP
object with the given configuration
information.config
- user configuration data defining how to find policies,
resolve external attributes, etc.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 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 BasicEvaluationCtx
).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 © 2023 JBoss by Red Hat. All rights reserved.