org.jboss.security.xacml.sunxacml.combine
Class PermitOverridesRuleAlg

java.lang.Object
  extended by org.jboss.security.xacml.sunxacml.combine.CombiningAlgorithm
      extended by org.jboss.security.xacml.sunxacml.combine.RuleCombiningAlgorithm
          extended by org.jboss.security.xacml.sunxacml.combine.PermitOverridesRuleAlg
Direct Known Subclasses:
OrderedPermitOverridesRuleAlg

public class PermitOverridesRuleAlg
extends RuleCombiningAlgorithm

This is the standard Permit Overrides rule combining algorithm. It allows a single evaluation of Permit to take precedence over any number of deny, not applicable or indeterminate results. Note that since this implementation does an ordered evaluation, this class also supports the Ordered Permit Overrides algorithm.

Since:
1.0
Author:
Seth Proctor

Field Summary
static String algId
          The standard URN used to identify this algorithm
 
Fields inherited from class org.jboss.security.xacml.sunxacml.combine.CombiningAlgorithm
logger
 
Constructor Summary
  PermitOverridesRuleAlg()
          Standard constructor.
protected PermitOverridesRuleAlg(URI identifier)
          Protected constructor used by the ordered version of this algorithm.
 
Method Summary
 Result combine(EvaluationCtx context, List parameters, List ruleElements)
          Applies the combining rule to the set of rules based on the evaluation context.
 
Methods inherited from class org.jboss.security.xacml.sunxacml.combine.CombiningAlgorithm
getIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

algId

public static final String algId
The standard URN used to identify this algorithm

See Also:
Constant Field Values
Constructor Detail

PermitOverridesRuleAlg

public PermitOverridesRuleAlg()
Standard constructor.


PermitOverridesRuleAlg

protected PermitOverridesRuleAlg(URI identifier)
Protected constructor used by the ordered version of this algorithm.

Parameters:
identifier - the algorithm's identifier
Method Detail

combine

public Result combine(EvaluationCtx context,
                      List parameters,
                      List ruleElements)
Applies the combining rule to the set of rules based on the evaluation context.

Specified by:
combine in class RuleCombiningAlgorithm
Parameters:
context - the context from the request
parameters - a (possibly empty) non-null List of CombinerParameters
ruleElements - the rules to combine
Returns:
the result of running the combining algorithm


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.