Package com.sun.identity.xacml.policy
Class PolicyFactory
- java.lang.Object
-
- com.sun.identity.xacml.policy.PolicyFactory
-
@SupportedAll public class PolicyFactory extends Object
This is the factory class to obtain instances of the objects defined in xacml context schema. There are three ways to obtain an instance of a object type: with no parameters, with a DOM tree element, or with an XML String.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Obligation
createObligation()
Returns a new instance ofObligation
.Obligation
createObligation(String xml)
Returns a new instance ofObligation
The return object is immutable.Obligation
createObligation(Element elem)
Returns a new instance ofObligation
.Obligations
createObligations()
Returns a new instance ofObligations
.Obligations
createObligations(String xml)
Returns a new instance ofObligations
The return object is immutable.Obligations
createObligations(Element elem)
Returns a new instance ofObligations
.static PolicyFactory
getInstance()
Returns the instance ofContextSchemaFactory
.
-
-
-
Method Detail
-
getInstance
public static PolicyFactory getInstance()
Returns the instance ofContextSchemaFactory
.- Returns:
ContextSchemaFactory
.
-
createObligation
public Obligation createObligation()
Returns a new instance ofObligation
.- Returns:
- a new instance of
Obligation
-
createObligation
public Obligation createObligation(Element elem) throws XACMLException
Returns a new instance ofObligation
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofObligation
- Returns:
- a new instance of
Obligation
- Throws:
XACMLException
- if error occurs while processing the DOM Element
-
createObligation
public Obligation createObligation(String xml) throws XACMLException
Returns a new instance ofObligation
The return object is immutable.- Parameters:
xml
- a XML string representation ofObligation
- Returns:
- a new instance of
Resource
- Throws:
XACMLException
- if error occurs while processing the XML string
-
createObligations
public Obligations createObligations()
Returns a new instance ofObligations
.- Returns:
- a new instance of
Obligations
-
createObligations
public Obligations createObligations(Element elem) throws XACMLException
Returns a new instance ofObligations
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofObligations
- Returns:
- a new instance of
Obligations
- Throws:
XACMLException
- if error occurs while processing the DOM Element
-
createObligations
public Obligations createObligations(String xml) throws XACMLException
Returns a new instance ofObligations
The return object is immutable.- Parameters:
xml
- a XML string representation ofObligations
- Returns:
- a new instance of
Obligations
- Throws:
XACMLException
- if error occurs while processing the XML string
-
-