java.lang.Object
com.sun.xacml.Obligation
- public class Obligation
- extends java.lang.Object
Represents the ObligationType XML type in XACML. This also stores all the
AttriubteAssignmentType XML types.
- Since:
- 1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
private java.net.URI id
fulfillOn
private int fulfillOn
assignments
private java.util.List assignments
Obligation
public Obligation(java.net.URI id,
int fulfillOn,
java.util.List assignments)
- Constructor that takes all the data associated with an obligation.
The attribute assignment list contains
Attribute
objects,
but only the fields used by the AttributeAssignmentType are used.
getInstance
public static Obligation getInstance(org.w3c.dom.Node root)
throws ParsingException
- Creates an instance of
Obligation
based on the DOM root
node.
getId
public java.net.URI getId()
- Returns the id of this obligation
getFulfillOn
public int getFulfillOn()
- Returns effect that will cause this obligation to be included in a
response
getAssignments
public java.util.List getAssignments()
- Returns the attribute assignment data in this obligation. The
List
contains objects of type Attribute
with only the correct attribute fields being used.
encode
public void encode(java.io.OutputStream output)
- Encodes this
Obligation
into its XML form and writes this
out to the provided OutputStream with no indentation.
encode
public void encode(java.io.OutputStream output,
Indenter indenter)
- Encodes this
Obligation
into its XML form and writes this
out to the provided OutputStream with indentation.