Class IndividualXacmlJsonRequest
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.io.xacml.json.IndividualXacmlJsonRequest
-
- All Implemented Interfaces:
org.ow2.authzforce.core.pdp.api.DecisionRequest
public final class IndividualXacmlJsonRequest extends Object implements org.ow2.authzforce.core.pdp.api.DecisionRequest
(Immutable) Individual decision request using XACML-schema-derived JAXB-annotated objects (XACML Attributes elements), as defined by Multiple Decision Profile of XACML. This differs fromDecisionRequest
only by the fact that the XACML request may require in addition, esp. in a Multiple Decision, that a sequence of Attributes elements from the request be included in the XACML Result as well, in order for the requester to correlate with the Attributes elements in the request, i.e. the individual requests.
-
-
Constructor Summary
Constructors Constructor Description IndividualXacmlJsonRequest(org.ow2.authzforce.core.pdp.api.ImmutableDecisionRequest baseRequest, com.google.common.collect.ImmutableList<org.json.JSONObject> attributesToBeReturned)
Creates instance from an XACML-agnostic request
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<org.json.JSONObject>
getAttributesByCategoryToBeReturned()
Category objects to be included in corresponding result.Instant
getCreationTimestamp()
com.google.common.collect.ImmutableMap<String,net.sf.saxon.s9api.XdmNode>
getExtraContentsByCategory()
com.google.common.collect.ImmutableMap<org.ow2.authzforce.core.pdp.api.AttributeFqn,org.ow2.authzforce.core.pdp.api.value.AttributeBag<?>>
getNamedAttributes()
int
hashCode()
boolean
isApplicablePolicyIdListReturned()
-
-
-
Constructor Detail
-
IndividualXacmlJsonRequest
public IndividualXacmlJsonRequest(org.ow2.authzforce.core.pdp.api.ImmutableDecisionRequest baseRequest, com.google.common.collect.ImmutableList<org.json.JSONObject> attributesToBeReturned)
Creates instance from an XACML-agnostic request- Parameters:
baseRequest
- base request in XACML-agnostic modelattributesToBeReturned
- attributes to be included in corresponding XACML Result
-
-
Method Detail
-
getCreationTimestamp
public Instant getCreationTimestamp()
- Specified by:
getCreationTimestamp
in interfaceorg.ow2.authzforce.core.pdp.api.DecisionRequest
-
getNamedAttributes
public com.google.common.collect.ImmutableMap<org.ow2.authzforce.core.pdp.api.AttributeFqn,org.ow2.authzforce.core.pdp.api.value.AttributeBag<?>> getNamedAttributes()
- Specified by:
getNamedAttributes
in interfaceorg.ow2.authzforce.core.pdp.api.DecisionRequest
-
getExtraContentsByCategory
public com.google.common.collect.ImmutableMap<String,net.sf.saxon.s9api.XdmNode> getExtraContentsByCategory()
- Specified by:
getExtraContentsByCategory
in interfaceorg.ow2.authzforce.core.pdp.api.DecisionRequest
-
isApplicablePolicyIdListReturned
public boolean isApplicablePolicyIdListReturned()
- Specified by:
isApplicablePolicyIdListReturned
in interfaceorg.ow2.authzforce.core.pdp.api.DecisionRequest
-
getAttributesByCategoryToBeReturned
public List<org.json.JSONObject> getAttributesByCategoryToBeReturned()
Category objects to be included in corresponding result.- Returns:
- Category objects to be included in the decision result; non-null empty list if none
-
-