Class TargetEvaluators


  • public final class TargetEvaluators
    extends Object
    XACML Target evaluators.
    Version:
    $Id: $
    • Field Detail

      • MATCH_ALL_TARGET_EVALUATOR

        public static final BooleanEvaluator MATCH_ALL_TARGET_EVALUATOR
        Empty Target evaluator that always evaluates to True (match all requests)
    • Method Detail

      • getInstance

        public static BooleanEvaluator getInstance​(oasis.names.tc.xacml._3_0.core.schema.wd_17.Target target,
                                                   org.ow2.authzforce.core.pdp.api.expression.ExpressionFactory expressionFactory,
                                                   Optional<org.ow2.authzforce.core.pdp.api.expression.XPathCompilerProxy> xPathCompiler)
                                            throws IllegalArgumentException
        Instantiates Target (evaluator) from XACML-Schema-derived Target.
        Parameters:
        target - XACML-schema-derived JAXB Target element
        xPathCompiler - XPath compiler corresponding to enclosing policy(set) default XPath version if it is defined and XPath support enabled.
        expressionFactory - Expression factory for parsing XACML Expressions
        Returns:
        instance of Target evaluator
        Throws:
        IllegalArgumentException - if target is not null/empty AND: either (expFactory is null OR one of the Match elements in one of the AnyOf/AllOf elements in target is invalid