Package org.ow2.authzforce.core.pdp.impl
Class TargetEvaluators
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.impl.TargetEvaluators
-
public final class TargetEvaluators extends Object
XACML Target evaluators.- Version:
- $Id: $
-
-
Field Summary
Fields Modifier and Type Field Description static BooleanEvaluator
MATCH_ALL_TARGET_EVALUATOR
Empty Target evaluator that always evaluates to True (match all requests)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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)
Instantiates Target (evaluator) from XACML-Schema-derivedTarget
.
-
-
-
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-derivedTarget
.- Parameters:
target
- XACML-schema-derived JAXB Target elementxPathCompiler
- 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 intarget
is invalid
-
-