Package com.sun.identity.xacml.policy
Class PolicyFactory
java.lang.Object
com.sun.identity.xacml.policy.PolicyFactory
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
Modifier and TypeMethodDescriptionReturns a new instance ofObligation
.createObligation
(String xml) Returns a new instance ofObligation
The return object is immutable.createObligation
(Element elem) Returns a new instance ofObligation
.Returns a new instance ofObligations
.createObligations
(String xml) Returns a new instance ofObligations
The return object is immutable.createObligations
(Element elem) Returns a new instance ofObligations
.static PolicyFactory
Returns the instance ofContextSchemaFactory
.
-
Method Details
-
getInstance
Returns the instance ofContextSchemaFactory
.- Returns:
ContextSchemaFactory
.
-
createObligation
Returns a new instance ofObligation
.- Returns:
- a new instance of
Obligation
-
createObligation
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
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
Returns a new instance ofObligations
.- Returns:
- a new instance of
Obligations
-
createObligations
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
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
-