SunTM's XACML Implementation for JavaTM

com.sun.xacml.combine
Class DenyOverridesRuleAlg

java.lang.Object
  extended bycom.sun.xacml.combine.CombiningAlgorithm
      extended bycom.sun.xacml.combine.RuleCombiningAlgorithm
          extended bycom.sun.xacml.combine.DenyOverridesRuleAlg
Direct Known Subclasses:
OrderedDenyOverridesRuleAlg

public class DenyOverridesRuleAlg
extends RuleCombiningAlgorithm

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

Since:
1.0

Field Summary
static String algId
          The standard URN used to identify this algorithm
 
Constructor Summary
  DenyOverridesRuleAlg()
          Standard constructor.
protected DenyOverridesRuleAlg(URI identifier)
          Protected constructor used by the ordered version of this algorithm.
 
Method Summary
 Result combine(EvaluationCtx context, List rules)
          Applies the combining rule to the set of rules based on the evaluation context.
 
Methods inherited from class com.sun.xacml.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

DenyOverridesRuleAlg

public DenyOverridesRuleAlg()
Standard constructor.


DenyOverridesRuleAlg

protected DenyOverridesRuleAlg(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 rules)
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
rules - the rules to combine
Returns:
the result of running the combining algorithm

Sun's XACML Implementation Version 1.2

Copyright 2003-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.