JBoss port of sunxacml 2.0.8.Final-redhat-1

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

java.lang.Object
  extended by org.jboss.security.xacml.sunxacml.combine.CombiningAlgorithm
      extended by org.jboss.security.xacml.sunxacml.combine.PolicyCombiningAlgorithm
          extended by org.jboss.security.xacml.sunxacml.combine.FirstApplicablePolicyAlg

public class FirstApplicablePolicyAlg
extends PolicyCombiningAlgorithm

This is the standard First Applicable policy combining algorithm. It looks through the set of policies, finds the first one that applies, and returns that evaluation result.

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
FirstApplicablePolicyAlg()
          Standard constructor.
 
Method Summary
 Result combine(EvaluationCtx context, List parameters, List policyElements)
          Applies the combining rule to the set of policies 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

FirstApplicablePolicyAlg

public FirstApplicablePolicyAlg()
Standard constructor.

Method Detail

combine

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

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

JBoss port of sunxacml 2.0.8.Final-redhat-1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.