Package ndg :: Package xacml :: Package core :: Module rule_combining_alg :: Class FirstApplicableRuleCombiningAlg
[hide private]

Class FirstApplicableRuleCombiningAlg

source code

               object --+    
                        |    
RuleCombiningAlgInterface --+
                            |
                           FirstApplicableRuleCombiningAlg

Implementation of first applicable XACML rule combining algorithm

Instance Methods [hide private]
ndg.xacml.core.context.result.Decision
evaluate(self, rules, context)
Combine the input rule results 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, rules, context)

source code 

Combine the input rule results to make an access control decision. Implementation taken direct from XACML 2.0 spec. pseudo code - Section C.5

Parameters:
  • rules (TypedList(<ndg.xacml.core.rule.Rule>)) - rules from the policy. 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: RuleCombiningAlgInterface.evaluate