Package org.ow2.authzforce.core.pdp.impl
Class AttributeAssignmentExpressionEvaluator
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.impl.AttributeAssignmentExpressionEvaluator
-
public final class AttributeAssignmentExpressionEvaluator extends Object
XACML AttributeAssignmentExpression evaluator- Version:
- $Id: $
-
-
Constructor Summary
Constructors Constructor Description AttributeAssignmentExpressionEvaluator(oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeAssignmentExpression jaxbAttrAssignExp, org.ow2.authzforce.core.pdp.api.expression.ExpressionFactory expFactory, Optional<org.ow2.authzforce.core.pdp.api.expression.XPathCompilerProxy> xPathCompiler)
Instantiates evaluable AttributeAssignment expression evaluator from XACML-Schema-derived JAXBAttributeAssignmentExpression
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.ow2.authzforce.core.pdp.api.PepActionAttributeAssignment<?>>
evaluate(org.ow2.authzforce.core.pdp.api.EvaluationContext context, Optional<org.ow2.authzforce.core.pdp.api.EvaluationContext> mdpContext)
Evaluates to AttributeAssignments Section 5.39 and 5.40 of XACML 3.0 core spec: If an AttributeAssignmentExpression evaluates to an atomic attribute value, then there MUST be one resulting AttributeAssignment which MUST contain this single attribute value.String
toString()
-
-
-
Constructor Detail
-
AttributeAssignmentExpressionEvaluator
public AttributeAssignmentExpressionEvaluator(oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeAssignmentExpression jaxbAttrAssignExp, org.ow2.authzforce.core.pdp.api.expression.ExpressionFactory expFactory, Optional<org.ow2.authzforce.core.pdp.api.expression.XPathCompilerProxy> xPathCompiler) throws IllegalArgumentException
Instantiates evaluable AttributeAssignment expression evaluator from XACML-Schema-derived JAXBAttributeAssignmentExpression
- Parameters:
jaxbAttrAssignExp
- XACML-schema-derived JAXB AttributeAssignmentExpressionxPathCompiler
- XPath compiler corresponding to enclosing policy(set) default XPath version if it is defined and if XPath support is enabled.expFactory
- expression factory for parsing the AttributeAssignmentExpression's expression- Throws:
IllegalArgumentException
- invalid AttributeAssignmentExpression's Expression
-
-
Method Detail
-
evaluate
public Collection<org.ow2.authzforce.core.pdp.api.PepActionAttributeAssignment<?>> evaluate(org.ow2.authzforce.core.pdp.api.EvaluationContext context, Optional<org.ow2.authzforce.core.pdp.api.EvaluationContext> mdpContext) throws org.ow2.authzforce.core.pdp.api.IndeterminateEvaluationException
Evaluates to AttributeAssignments Section 5.39 and 5.40 of XACML 3.0 core spec: If an AttributeAssignmentExpression evaluates to an atomic attribute value, then there MUST be one resulting AttributeAssignment which MUST contain this single attribute value. If the AttributeAssignmentExpression evaluates to a bag, then there MUST be a resulting AttributeAssignment for each of the values in the bag. If the bag is empty, there shall be no AttributeAssignment from this AttributeAssignmentExpression- Parameters:
context
- Individual Decision evaluation contextmdpContext
- the context of the Multiple Decision request that thecontext
belongs to if the Multiple Decision Profile is used.- Returns:
- non-null AttributeAssignments; empty if no AttributeValue resulting from evaluation of the Expression
- Throws:
org.ow2.authzforce.core.pdp.api.IndeterminateEvaluationException
- if evaluation of the Expression in this context fails (Indeterminate)
-
-