public class BaseXacmlJaxbResultPostprocessor extends Object implements DecisionResultPostprocessor<IndividualXacmlJaxbRequest,oasis.names.tc.xacml._3_0.core.schema.wd_17.Response>
DecisionResultPostprocessor
implementations supporting core XACML-schema-defined XML output handled by JAXB frameworkModifier and Type | Class and Description |
---|---|
static class |
BaseXacmlJaxbResultPostprocessor.Factory
Convenient base class for
DecisionResultPostprocessor.Factory implementations supporting core XACML-schema-defined XML output handled by JAXB framework |
DecisionResultPostprocessor.Features
Constructor and Description |
---|
BaseXacmlJaxbResultPostprocessor(int clientRequestErrorVerbosityLevel)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static oasis.names.tc.xacml._3_0.core.schema.wd_17.Result |
convert(IndividualXacmlJaxbRequest request,
DecisionResult result)
Convert AuthzForce-specific
DecisionResult to XACML Result |
Class<IndividualXacmlJaxbRequest> |
getRequestType()
Gets the class of supported individual decision request objects
|
Class<oasis.names.tc.xacml._3_0.core.schema.wd_17.Response> |
getResponseType()
Gets the class of output decision response
|
oasis.names.tc.xacml._3_0.core.schema.wd_17.Response |
process(Collection<Map.Entry<IndividualXacmlJaxbRequest,? extends DecisionResult>> resultsByRequest)
Process multiple individual decision results (e.g.
|
oasis.names.tc.xacml._3_0.core.schema.wd_17.Response |
processClientError(IndeterminateEvaluationException error)
Process an indeterminate result, i.e.
|
oasis.names.tc.xacml._3_0.core.schema.wd_17.Response |
processInternalError(IndeterminateEvaluationException error)
Process an indeterminate result, i.e.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFeatures
public BaseXacmlJaxbResultPostprocessor(int clientRequestErrorVerbosityLevel) throws IllegalArgumentException
clientRequestErrorVerbosityLevel
- Level of verbosity of the error message trace returned in case of client request errors, e.g. invalid requests. Increasing this value usually helps the clients better pinpoint the
issue with their Requests. This result postprocessor returns all error messages in the Java stacktrace up to the same level as this parameter's value if the stacktrace is bigger,
else the full stacktrace.IllegalArgumentException
- if clientRequestErrorVerbosityLevel < 0
public static final oasis.names.tc.xacml._3_0.core.schema.wd_17.Result convert(IndividualXacmlJaxbRequest request, DecisionResult result)
DecisionResult
to XACML Result
request
- request corresponding to result; iff null, some content from it, esp. the list of Attributes
, is included in result
result
- native policy decision resultpublic final Class<IndividualXacmlJaxbRequest> getRequestType()
DecisionResultPostprocessor
getRequestType
in interface DecisionResultPostprocessor<IndividualXacmlJaxbRequest,oasis.names.tc.xacml._3_0.core.schema.wd_17.Response>
public final Class<oasis.names.tc.xacml._3_0.core.schema.wd_17.Response> getResponseType()
DecisionResultPostprocessor
getResponseType
in interface DecisionResultPostprocessor<IndividualXacmlJaxbRequest,oasis.names.tc.xacml._3_0.core.schema.wd_17.Response>
public oasis.names.tc.xacml._3_0.core.schema.wd_17.Response process(Collection<Map.Entry<IndividualXacmlJaxbRequest,? extends DecisionResult>> resultsByRequest)
DecisionResultPostprocessor
process
in interface DecisionResultPostprocessor<IndividualXacmlJaxbRequest,oasis.names.tc.xacml._3_0.core.schema.wd_17.Response>
resultsByRequest
- results mapped to corresponding individual decision requests for correlationpublic oasis.names.tc.xacml._3_0.core.schema.wd_17.Response processClientError(IndeterminateEvaluationException error)
DecisionResultPostprocessor
processClientError
in interface DecisionResultPostprocessor<IndividualXacmlJaxbRequest,oasis.names.tc.xacml._3_0.core.schema.wd_17.Response>
error
- client request errorpublic oasis.names.tc.xacml._3_0.core.schema.wd_17.Response processInternalError(IndeterminateEvaluationException error)
DecisionResultPostprocessor
For security reasons, error details should not be included in this case as they may disclose PDP internal issues (e.g. bad configuration) to clients.
processInternalError
in interface DecisionResultPostprocessor<IndividualXacmlJaxbRequest,oasis.names.tc.xacml._3_0.core.schema.wd_17.Response>
error
- internal errorCopyright © 2012–2020. All rights reserved.