| 
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.ctx.RequestCtx
Represents a request made to the PDP. This is the class that contains all the data used to start a policy evaluation.
| Constructor Summary | |
RequestCtx(Set subjects,
           Set resource,
           Set action,
           Set environment)
Constructor that creates a RequestCtx from components. | 
|
RequestCtx(Set subjects,
           Set resource,
           Set action,
           Set environment,
           Node documentRoot)
Constructor that creates a RequestCtx from components. | 
|
RequestCtx(Set subjects,
           Set resource,
           Set action,
           Set environment,
           Node documentRoot,
           String resourceContent)
Constructor that creates a RequestCtx from components. | 
|
RequestCtx(Set subjects,
           Set resource,
           Set action,
           Set environment,
           String resourceContent)
Constructor that creates a RequestCtx from components. | 
|
| Method Summary | |
 void | 
encode(OutputStream output)
Encodes this context into its XML representation and writes this encoding to the given OutputStream. | 
 void | 
encode(OutputStream output,
       Indenter indenter)
Encodes this context into its XML representation and writes this encoding to the given OutputStream with
 indentation. | 
 Set | 
getAction()
Returns a Set containing Attribute objects. | 
 Node | 
getDocumentRoot()
Returns the root DOM node of the document used to create this object, or null if this object was created by hand (ie, not through the getInstance method) or if the root node was not
 provided to the constructor. | 
 Set | 
getEnvironmentAttributes()
Returns a Set containing Attribute objects. | 
static RequestCtx | 
getInstance(InputStream input)
Creates a new RequestCtx by parsing XML from an
 input stream. | 
static RequestCtx | 
getInstance(Node root)
Create a new RequestCtx by parsing a node. | 
 Set | 
getResource()
Returns a Set containing Attribute objects. | 
 Set | 
getSubjects()
Returns a Set containing Subject objects. | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public RequestCtx(Set subjects,
                  Set resource,
                  Set action,
                  Set environment)
RequestCtx from components.
subjects - a Set of Subjectsresource - a Set of Attributesaction - a Set of Attributesenvironment - a Set of environment attributes
public RequestCtx(Set subjects,
                  Set resource,
                  Set action,
                  Set environment,
                  Node documentRoot)
RequestCtx from components.
subjects - a Set of Subjectsresource - a Set of Attributesaction - a Set of Attributesenvironment - a Set of environment attributesdocumentRoot - the root node of the DOM tree for this request
public RequestCtx(Set subjects,
                  Set resource,
                  Set action,
                  Set environment,
                  String resourceContent)
RequestCtx from components.
subjects - a Set of Subjectsresource - a Set of Attributesaction - a Set of Attributesenvironment - a Set of environment attributesresourceContent - a text-encoded version of the content, suitable
                        for including in the RequestType, including the
                        root RequestContent node
public RequestCtx(Set subjects,
                  Set resource,
                  Set action,
                  Set environment,
                  Node documentRoot,
                  String resourceContent)
           throws IllegalArgumentException
RequestCtx from components.
subjects - a Set of Subjectsresource - a Set of Attributesaction - a Set of Attributesenvironment - a Set of environment attributesdocumentRoot - the root node of the DOM tree for this requestresourceContent - a text-encoded version of the content, suitable
                        for including in the RequestType, including the
                        root RequestContent node
IllegalArgumentException - if the inputs are not well formed| Method Detail | 
public static RequestCtx getInstance(Node root)
                              throws ParsingException
RequestCtx by parsing a node.  This
 node should be created by schema-verified parsing of an
 XML document.
root - the node to parse for the RequestCtx
RequestCtx constructed by parsing
URISyntaxException - if there is a badly formed URI
ParsingException - if the DOM node is invalid
public static RequestCtx getInstance(InputStream input)
                              throws ParsingException
RequestCtx by parsing XML from an
 input stream. Note that this a convenience method, and it will
 not do schema validation by default. You should be parsing the data
 yourself, and then providing the root node to the other
 getInstance method. If you use this convenience
 method, you probably want to turn on validation by setting the
 context schema file (see the programmer guide for more information
 on this).
input - a stream providing the XML data
RequestCtx
ParserException - if there is an error parsing the input
ParsingExceptionpublic Set getSubjects()
Set containing Subject objects.
public Set getResource()
Set containing Attribute objects.
public Set getAction()
Set containing Attribute objects.
public Set getEnvironmentAttributes()
Set containing Attribute objects.
public Node getDocumentRoot()
getInstance method) or if the root node was not
 provided to the constructor.
public void encode(OutputStream output)
OutputStream.  No
 indentation is used.
output - a stream into which the XML-encoded data is written
public void encode(OutputStream output,
                   Indenter indenter)
OutputStream with
 indentation.
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.