Package ndg :: Package xacml :: Package core :: Module policy_combining_alg :: Class FirstApplicablePolicyCombiningAlg
[hide private]

Class FirstApplicablePolicyCombiningAlg

source code

                 object --+    
                          |    
PolicyCombiningAlgInterface --+
                              |
                             FirstApplicablePolicyCombiningAlg

Implementation of first applicable XACML policy combining algorithm

Instance Methods [hide private]
ndg.xacml.core.context.result.Decision
evaluate(self, policies, context)
Combine the results from evaluating policies or policy sets to make an access control decision.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

evaluate(self, policies, context)

source code 

Combine the results from evaluating policies or policy sets to make an access control decision. Implementation taken directly from XACML 2.0 spec. pseudo code - Section C.5 First Applicable

Parameters:
  • policies (TypedList(<ndg.xacml.core.policybase.PolicyBase>)) - policies and/or policy sets. Decisions from these will be put together into a single decision by this algorithm.
  • context (ndg.xacml.core.request.Request) - request context to apply to the rules
Returns: ndg.xacml.core.context.result.Decision
resulting overall access control decision
Overrides: PolicyCombiningAlgInterface.evaluate