org.wso2.balana.xacml3
Class ObligationExpression
java.lang.Object
org.wso2.balana.AbstractObligation
org.wso2.balana.xacml3.ObligationExpression
public class ObligationExpression
- extends AbstractObligation
Represents ObligationExpressionType in the XACML 3.0 policy schema
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObligationExpression
public ObligationExpression(int fulfillOn,
List<AttributeAssignmentExpression> expressions,
URI obligationId)
- Constructor that creates a new
ObligationExpression
based on
the given elements.
- Parameters:
fulfillOn
- effect that will cause this obligation to be included in a responseexpressions
- List
of AttributeAssignmentExpression
obligationId
- Identifier that uniquely identify ObligationExpression element
getInstance
public static ObligationExpression getInstance(Node root,
PolicyMetaData metaData)
throws ParsingException
- creates a
ObligationExpression
based on its DOM node.
- Parameters:
root
- root the node to parse for the ObligationExpressionmetaData
- meta-date associated with the policy
- Returns:
- a new
ObligationExpression
constructed by parsing
- Throws:
ParsingException
- if the DOM node is invalid
evaluate
public ObligationResult evaluate(EvaluationCtx ctx)
- Description copied from class:
AbstractObligation
- Evaluates obligation and creates the results
- Specified by:
evaluate
in class AbstractObligation
- Parameters:
ctx
- EvaluationCtx
- Returns:
ObligationResult
encode
public void encode(StringBuilder builder)
- Encodes this
ObligationExpression
into its XML form and writes this out to the provided
StringBuilder
- Specified by:
encode
in class AbstractObligation
- Parameters:
builder
- string stream into which the XML-encoded data is written
Copyright © 2015 WSO2. All rights reserved.