Class 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 from DecisionRequest 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 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 model
        attributesToBeReturned - attributes to be included in corresponding XACML Result
    • Method Detail

      • getCreationTimestamp

        public Instant getCreationTimestamp()
        Specified by:
        getCreationTimestamp in interface org.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 interface org.ow2.authzforce.core.pdp.api.DecisionRequest
      • getExtraContentsByCategory

        public com.google.common.collect.ImmutableMap<String,​net.sf.saxon.s9api.XdmNode> getExtraContentsByCategory()
        Specified by:
        getExtraContentsByCategory in interface org.ow2.authzforce.core.pdp.api.DecisionRequest
      • isApplicablePolicyIdListReturned

        public boolean isApplicablePolicyIdListReturned()
        Specified by:
        isApplicablePolicyIdListReturned in interface org.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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object