|
|||||||||
Home >> All >> com >> sun >> [ xacml overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
com.sun.xacml
Class Policy

java.lang.Objectcom.sun.xacml.AbstractPolicy
com.sun.xacml.Policy
- All Implemented Interfaces:
- PolicyTreeElement
- public class Policy
- extends AbstractPolicy
Represents one of the two top-level constructs in XACML, the PolicyType. This optionally contains rules, which in turn contain most of the logic of a policy.
- Since:
- 1.0
Field Summary |
Fields inherited from class com.sun.xacml.AbstractPolicy |
XPATH_1_0_VERSION |
Constructor Summary | |
private |
Policy(org.w3c.dom.Node root)
Creates a new Policy based on the given root node. |
|
Policy(java.net.URI id,
com.sun.xacml.combine.RuleCombiningAlgorithm combiningAlg,
java.lang.String description,
Target target,
java.util.List rules)
Creates a new Policy with the required elements plus
some rules and a String description. |
|
Policy(java.net.URI id,
com.sun.xacml.combine.RuleCombiningAlgorithm combiningAlg,
java.lang.String description,
Target target,
java.lang.String defaultVersion,
java.util.List rules)
Creates a new Policy with the required elements plus
some rules, a String description and policy defaults. |
|
Policy(java.net.URI id,
com.sun.xacml.combine.RuleCombiningAlgorithm combiningAlg,
java.lang.String description,
Target target,
java.lang.String defaultVersion,
java.util.List rules,
java.util.Set obligations)
Creates a new Policy with the required elements plus
some rules, a String description, policy defaults, and obligations. |
|
Policy(java.net.URI id,
com.sun.xacml.combine.RuleCombiningAlgorithm combiningAlg,
Target target)
Creates a new Policy with only the required elements. |
|
Policy(java.net.URI id,
com.sun.xacml.combine.RuleCombiningAlgorithm combiningAlg,
Target target,
java.util.List rules)
Creates a new Policy with only the required elements
plus some rules. |
|
Policy(java.net.URI id,
com.sun.xacml.combine.RuleCombiningAlgorithm combiningAlg,
Target target,
java.lang.String defaultVersion,
java.util.List rules)
Creates a new Policy with the required elements plus
some rules and policy defaults. |
Method Summary | |
void |
encode(java.io.OutputStream output)
Encodes this Policy into its XML representation and writes
this encoding to the given OutputStream with no
indentation. |
void |
encode(java.io.OutputStream output,
Indenter indenter)
Encodes this Policy into its XML representation and writes
this encoding to the given OutputStream with
indentation. |
static Policy |
getInstance(org.w3c.dom.Node root)
Creates an instance of a Policy 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 |
Policy
public Policy(java.net.URI id, com.sun.xacml.combine.RuleCombiningAlgorithm combiningAlg, Target target)
- Creates a new
Policy
with only the required elements.
Policy
public Policy(java.net.URI id, com.sun.xacml.combine.RuleCombiningAlgorithm combiningAlg, Target target, java.util.List rules)
- Creates a new
Policy
with only the required elements plus some rules.
Policy
public Policy(java.net.URI id, com.sun.xacml.combine.RuleCombiningAlgorithm combiningAlg, Target target, java.lang.String defaultVersion, java.util.List rules)
- Creates a new
Policy
with the required elements plus some rules and policy defaults.
Policy
public Policy(java.net.URI id, com.sun.xacml.combine.RuleCombiningAlgorithm combiningAlg, java.lang.String description, Target target, java.util.List rules)
- Creates a new
Policy
with the required elements plus some rules and a String description.
Policy
public Policy(java.net.URI id, com.sun.xacml.combine.RuleCombiningAlgorithm combiningAlg, java.lang.String description, Target target, java.lang.String defaultVersion, java.util.List rules)
- Creates a new
Policy
with the required elements plus some rules, a String description and policy defaults.
Policy
public Policy(java.net.URI id, com.sun.xacml.combine.RuleCombiningAlgorithm combiningAlg, java.lang.String description, Target target, java.lang.String defaultVersion, java.util.List rules, java.util.Set obligations)
- Creates a new
Policy
with the required elements plus some rules, a String description, policy defaults, and obligations.
Policy
private Policy(org.w3c.dom.Node root) throws ParsingException
- Creates a new Policy based on the given root node. This is
private since every class is supposed to use a getInstance() method
to construct from a Node, but since we want some common code in the
parent class, we need this functionality in a constructor.
Method Detail |
getInstance
public static Policy getInstance(org.w3c.dom.Node root) throws ParsingException
- Creates an instance of a
Policy
object based on a DOM node. The node must be the root of PolicyType XML object, otherwise an exception is thrown.
encode
public void encode(java.io.OutputStream output)
- Encodes this
Policy
into its XML representation and writes this encoding to the givenOutputStream
with no indentation.
encode
public void encode(java.io.OutputStream output, Indenter indenter)
- Encodes this
Policy
into its XML representation and writes this encoding to the givenOutputStream
with indentation.
|
|||||||||
Home >> All >> com >> sun >> [ xacml overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |