Package org.ow2.authzforce.core.pdp.api
Interface DecisionRequest
-
- All Known Implementing Classes:
ImmutableDecisionRequest
,IndividualXacmlJaxbRequest
public interface DecisionRequest
Individual (in the sense of Multiple Decision Profile of XACML) authorization decision request used as input to PDP engine in AuthzForce-native model, for evaluating the policy decision. In particular, this does NOT include the IncludeInResult parameter because the policy evaluation does not depend on it. The attributes with IncludeInResult=true are returned in the Result, no matter what the decision is.One interesting use case for this class is decision caching that would consist to map a
DecisionRequest
to aDecisionResult
.All derived classes are required to implement
Object.equals(Object)
andObject.hashCode()
to allow optimal decision caching (where instances of this class are used as keys) in PDP DecisionCache extensions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,net.sf.saxon.s9api.XdmNode>
getExtraContentsByCategory()
Get Attributes/Contents (parsed into XDM data model for XPath evaluation) by attribute categoryMap<AttributeFqn,AttributeBag<?>>
getNamedAttributes()
Get named attributes by nameboolean
isApplicablePolicyIdListReturned()
Get ReturnPolicyIdList flag
-
-
-
Method Detail
-
getNamedAttributes
Map<AttributeFqn,AttributeBag<?>> getNamedAttributes()
Get named attributes by name- Returns:
- map of attribute name-value pairs, maybe empty - but NEVER NULL - if none (but
getExtraContentsByCategory()
result may not be empty)
-
getExtraContentsByCategory
Map<String,net.sf.saxon.s9api.XdmNode> getExtraContentsByCategory()
Get Attributes/Contents (parsed into XDM data model for XPath evaluation) by attribute category- Returns:
- XML Content nodes by category, maybe empty - but NEVER NULL - if none (but
getNamedAttributes()
result may not be empty)
-
isApplicablePolicyIdListReturned
boolean isApplicablePolicyIdListReturned()
Get ReturnPolicyIdList flag- Returns:
- true iff original XACML Request's ReturnPolicyIdList == true
-
-