|
SunTM's XACML Implementation for JavaTM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.xacml.AbstractPolicy com.sun.xacml.PolicySet
Represents one of the two top-level constructs in XACML, the PolicySetType. This can contain other policies and policy sets, and can also contain URIs that point to policies and policy sets.
Field Summary |
Fields inherited from class com.sun.xacml.AbstractPolicy |
XPATH_1_0_VERSION |
Constructor Summary | |
PolicySet(URI id,
PolicyCombiningAlgorithm combiningAlg,
String description,
Target target,
List policies)
Creates a new PolicySet with the required elements plus
some policies and a String description. |
|
PolicySet(URI id,
PolicyCombiningAlgorithm combiningAlg,
String description,
Target target,
List policies,
String defaultVersion)
Creates a new PolicySet with the required elements plus
some policies, a String description, and policy defaults. |
|
PolicySet(URI id,
PolicyCombiningAlgorithm combiningAlg,
String description,
Target target,
List policies,
String defaultVersion,
Set obligations)
Creates a new PolicySet with the required elements plus
some policies, a String description, policy defaults, and obligations. |
|
PolicySet(URI id,
PolicyCombiningAlgorithm combiningAlg,
Target target)
Creates a new PolicySet with only the required elements. |
|
PolicySet(URI id,
PolicyCombiningAlgorithm combiningAlg,
Target target,
List policies)
Creates a new PolicySet with only the required elements,
plus some policies. |
|
PolicySet(URI id,
PolicyCombiningAlgorithm combiningAlg,
Target target,
List policies,
String defaultVersion)
Creates a new PolicySet with the required elements plus
some policies and policy defaults. |
Method Summary | |
void |
encode(OutputStream output)
Encodes this PolicySet into its XML representation and
writes this encoding to the given OutputStream with no
indentation. |
void |
encode(OutputStream output,
Indenter indenter)
Encodes this PolicySet into its XML representation and
writes this encoding to the given OutputStream with
indentation. |
static PolicySet |
getInstance(Node root)
Creates an instance of a PolicySet object based on a
DOM node. |
static PolicySet |
getInstance(Node root,
PolicyFinder finder)
Creates an instance of a PolicySet object based on a
DOM node. |
Methods inherited from class com.sun.xacml.AbstractPolicy |
encodeCommonElements, evaluate, getChildren, getCombiningAlg, getDefaultVersion, getDescription, getId, getObligations, getTarget, match, setChildren |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PolicySet(URI id, PolicyCombiningAlgorithm combiningAlg, Target target)
PolicySet
with only the required elements.
id
- the policy set identifiercombiningAlg
- the CombiningAlgorithm
used on the
policies in this settarget
- the Target
for this setpublic PolicySet(URI id, PolicyCombiningAlgorithm combiningAlg, Target target, List policies)
PolicySet
with only the required elements,
plus some policies.
id
- the policy set identifiercombiningAlg
- the CombiningAlgorithm
used on the
policies in this settarget
- the Target
for this setpolicies
- a list of AbstractPolicy
objects
IllegalArgumentException
- if the List
of policies
contains an object that is not an
AbstractPolicy
public PolicySet(URI id, PolicyCombiningAlgorithm combiningAlg, Target target, List policies, String defaultVersion)
PolicySet
with the required elements plus
some policies and policy defaults.
id
- the policy set identifiercombiningAlg
- the CombiningAlgorithm
used on the
policies in this settarget
- the Target
for this setpolicies
- a list of AbstractPolicy
objectsdefaultVersion
- the XPath version to use
IllegalArgumentException
- if the List
of policies
contains an object that is not an
AbstractPolicy
public PolicySet(URI id, PolicyCombiningAlgorithm combiningAlg, String description, Target target, List policies)
PolicySet
with the required elements plus
some policies and a String description.
id
- the policy set identifiercombiningAlg
- the CombiningAlgorithm
used on the
policies in this setdescription
- a String
describing the policytarget
- the Target
for this setpolicies
- a list of AbstractPolicy
objects
IllegalArgumentException
- if the List
of policies
contains an object that is not an
AbstractPolicy
public PolicySet(URI id, PolicyCombiningAlgorithm combiningAlg, String description, Target target, List policies, String defaultVersion)
PolicySet
with the required elements plus
some policies, a String description, and policy defaults.
id
- the policy set identifiercombiningAlg
- the CombiningAlgorithm
used on the
policies in this setdescription
- a String
describing the policytarget
- the Target
for this setpolicies
- a list of AbstractPolicy
objectsdefaultVersion
- the XPath version to use
IllegalArgumentException
- if the List
of policies
contains an object that is not an
AbstractPolicy
public PolicySet(URI id, PolicyCombiningAlgorithm combiningAlg, String description, Target target, List policies, String defaultVersion, Set obligations)
PolicySet
with the required elements plus
some policies, a String description, policy defaults, and obligations.
id
- the policy set identifiercombiningAlg
- the CombiningAlgorithm
used on the
policies in this setdescription
- a String
describing the policytarget
- the Target
for this setpolicies
- a list of AbstractPolicy
objectsdefaultVersion
- the XPath version to useobligations
- a set of Obligation
objects
IllegalArgumentException
- if the List
of policies
contains an object that is not an
AbstractPolicy
Method Detail |
public static PolicySet getInstance(Node root) throws ParsingException
PolicySet
object based on a
DOM node. The node must be the root of PolicySetType XML object,
otherwise an exception is thrown. This PolicySet
will
not support references because it has no PolicyFinder
.
root
- the DOM root of a PolicySetType XML type
ParsingException
- if the PolicySetType is invalidpublic static PolicySet getInstance(Node root, PolicyFinder finder) throws ParsingException
PolicySet
object based on a
DOM node. The node must be the root of PolicySetType XML object,
otherwise an exception is thrown. The finder is used to handle
policy references.
root
- the DOM root of a PolicySetType XML typefinder
- the PolicyFinder
used to handle references
ParsingException
- if the PolicySetType is invalidpublic void encode(OutputStream output)
PolicySet
into its XML representation and
writes this encoding to the given OutputStream
with no
indentation.
output
- a stream into which the XML-encoded data is writtenpublic void encode(OutputStream output, Indenter indenter)
PolicySet
into its XML representation and
writes this encoding to the given 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.