|
SunTM's XACML Implementation for JavaTM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xacml.Obligation
Represents the ObligationType XML type in XACML. This also stores all the AttriubteAssignmentType XML types.
Constructor Summary | |
Obligation(URI id,
int fulfillOn,
List assignments)
Constructor that takes all the data associated with an obligation. |
Method Summary | |
void |
encode(OutputStream output)
Encodes this Obligation into its XML form and writes this
out to the provided OutputStream |
void |
encode(OutputStream output,
Indenter indenter)
Encodes this Obligation into its XML form and writes this
out to the provided OutputStream |
List |
getAssignments()
Returns the attribute assignment data in this obligation. |
int |
getFulfillOn()
Returns effect that will cause this obligation to be included in a response |
URI |
getId()
Returns the id of this obligation |
static Obligation |
getInstance(Node root)
Creates an instance of Obligation based on the DOM root
node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Obligation(URI id, int fulfillOn, List assignments)
Attribute
objects,
but only the fields used by the AttributeAssignmentType are used.
id
- the obligation's idfulfillOn
- the effect denoting when to fulfill this obligationassignments
- a List
of Attribute
sMethod Detail |
public static Obligation getInstance(Node root) throws ParsingException
Obligation
based on the DOM root
node.
root
- the DOM root of the ObligationType XML type
ParsingException
- if the structure isn't validpublic URI getId()
public int getFulfillOn()
public List getAssignments()
List
contains objects of type Attribute
with only the correct attribute fields being used.
public void encode(OutputStream output)
Obligation
into its XML form and writes this
out to the provided OutputStream with no indentation.
- Parameters:
output
- a stream into which the XML-encoded data is written
public void encode(OutputStream output, Indenter indenter)
Obligation
into its XML form and writes this
out to the provided OutputStream with indentation.
- Parameters:
output
- a stream into which the XML-encoded data is writtenindenter
- an object that creates indentation strings
|
Sun's XACML Implementation Version 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.