Package com.sun.identity.xacml.context
Class ContextFactory
java.lang.Object
com.sun.identity.xacml.context.ContextFactory
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 ofAction
.createAction
(String xml) Returns a new instance ofAction
.createAction
(Element elem) Returns a new instance ofAction
.Returns a new instance ofAttribute
.createAttribute
(String xml) Returns a new instance ofAttribute
.createAttribute
(Element elem) Returns a new instance ofAttribute
.Returns a new instance ofDecision
.createDecision
(String xml) Returns a new instance ofDecision
The return object is immutable.createDecision
(Element elem) Returns a new instance ofDecision
.Returns a new instance ofEnvironment
.createEnvironment
(String xml) Returns a new instance ofEnvironment
.createEnvironment
(Element elem) Returns a new instance ofEnvironment
.Returns a new instance ofRequest
.createRequest
(String xml) Returns a new instance ofRequest
The return object is immutable.createRequest
(Element elem) Returns a new instance ofRequest
.Returns a new instance ofResource
.createResource
(String xml) Returns a new instance ofResource
The return object is immutable.createResource
(Element elem) Returns a new instance ofResource
.Returns a new instance ofResponse
.createResponse
(String xml) Returns a new instance ofResponse
The return object is immutable.createResponse
(Element elem) Returns a new instance ofResponse
.Returns a new instance ofResult
.createResult
(String xml) Returns a new instance ofResult
The return object is immutable.createResult
(Element elem) Returns a new instance ofResult
.Returns a new instance ofStatus
.createStatus
(String xml) Returns a new instance ofStatus
The return object is immutable.createStatus
(Element elem) Returns a new instance ofStatus
.Returns a new instance ofStatusCode
.createStatusCode
(String xml) Returns a new instance ofStatusCode
The return object is immutable.createStatusCode
(Element elem) Returns a new instance ofStatusCode
.Returns a new instance ofStatusDetail
.createStatusDetail
(String xml) Returns a new instance ofStatusDetail
The return object is immutable.createStatusDetail
(Element elem) Returns a new instance ofStatusDetail
.Returns a new instance ofStatusMessage
.Returns a new instance ofStatusMessage
The return object is immutable.createStatusMessage
(Element elem) Returns a new instance ofStatusMessage
.Returns a new instance ofSubject
.createSubject
(String xml) Returns a new instance ofSubject
.createSubject
(Element elem) Returns a new instance ofSubject
.Returns a new instance ofXACMLAuthzDecisionQuery
.Returns a new instance ofXACMLAuthzDecisionQuery
.Returns a new instance ofXACMLAuthzDecisionQuery
.Returns a new instance ofXACMLAuthzDecisionStatement
.Returns a new instance ofXACMLAuthzDecisionStatement
.Returns a new instance ofXACMLAuthzDecisionStatement
.static ContextFactory
Returns the instance ofContextSchemaFactory
.
-
Method Details
-
getInstance
Returns the instance ofContextSchemaFactory
.- Returns:
ContextSchemaFactory
.
-
createRequest
Returns a new instance ofRequest
.- Returns:
- a new instance of
Request
-
createRequest
Returns a new instance ofRequest
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofRequest
- Returns:
- a new instance of
Request
- Throws:
XACMLException
- if error occurs while processing the DOM Element
-
createRequest
Returns a new instance ofRequest
The return object is immutable.- Parameters:
xml
- a XML string representation ofRequest
- Returns:
- a new instance of
Resource
- Throws:
XACMLException
- if error occurs while processing the XML string
-
createResource
Returns a new instance ofResource
.- Returns:
- a new instance of
Resource
-
createResource
Returns a new instance ofResource
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofResource
- Returns:
- a new instance of
Resource
- Throws:
XACMLException
- if error occurs while processing the DOM Element
-
createResource
Returns a new instance ofResource
The return object is immutable.- Parameters:
xml
- a XML string representation ofResource
- Returns:
- a new instance of
Resource
- Throws:
XACMLException
- if error occurs while processing the XML string
-
createSubject
Returns a new instance ofSubject
.- Returns:
- a new instance of
Subject
-
createSubject
Returns a new instance ofSubject
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofSubject
- Returns:
- a new instance of
Subject
- Throws:
XACMLException
- if error occurs while processing the DOM Element
-
createSubject
Returns a new instance ofSubject
. The return object is immutable.- Parameters:
xml
- a XML string representation ofSubject
- Returns:
- a new instance of
Subject
- Throws:
XACMLException
- if error occurs while processing the XML string
-
createAction
Returns a new instance ofAction
.- Returns:
- a new instance of
Action
-
createAction
Returns a new instance ofAction
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofAction
- Returns:
- a new instance of
Action
- Throws:
XACMLException
- if error occurs while processing the DOM Element
-
createAction
Returns a new instance ofAction
. The return object is immutable.- Parameters:
xml
- a XML string representation ofAction
- Returns:
- a new instance of
Action
- Throws:
XACMLException
- if error occurs while processing the XML string
-
createEnvironment
Returns a new instance ofEnvironment
.- Returns:
- a new instance of
Environment
-
createEnvironment
Returns a new instance ofEnvironment
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofEnvironment
- Returns:
- a new instance of
Environment
- Throws:
XACMLException
- if error occurs while processing the DOM Element
-
createEnvironment
Returns a new instance ofEnvironment
. The return object is immutable.- Parameters:
xml
- a XML string representation ofEnvironment
- Returns:
- a new instance of
Environment
- Throws:
XACMLException
- if error occurs while processing the XML string
-
createAttribute
Returns a new instance ofAttribute
. Caller may need to call setters of the class to populate the object.- Returns:
- a new instance of
Attribute
.
-
createAttribute
Returns a new instance ofAttribute
. The return object is immutable.- Parameters:
elem
- anElement
representation ofAttribute
.- Returns:
- a new instance of
Attribute
. - Throws:
XACMLException
- if error occurs while processing theElement
.
-
createAttribute
Returns a new instance ofAttribute
. The return object is immutable.- Parameters:
xml
- an XML String representingAttribute
.- Returns:
- a new instance of
Attribute
. - Throws:
XACMLException
- if error occurs while processing the XML string.
-
createXACMLAuthzDecisionQuery
Returns a new instance ofXACMLAuthzDecisionQuery
. Caller may need to call setters of the class to populate the object.- Returns:
- a new instance of
XACMLAuthzDecisionQuery
.
-
createXACMLAuthzDecisionQuery
public XACMLAuthzDecisionQuery createXACMLAuthzDecisionQuery(Element elem) throws XACMLException, com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofXACMLAuthzDecisionQuery
. The return object is immutable.- Parameters:
elem
- anElement
representation ofXACMLAuthzDecisionQuery
.- Returns:
- a new instance of
XACMLAuthzDecisionQuery
. - Throws:
XACMLException
- if error occurs while processing theElement
.com.sun.identity.saml2.common.SAML2Exception
- if not able to create the base samlRequestAbstract
-
createXACMLAuthzDecisionQuery
public XACMLAuthzDecisionQuery createXACMLAuthzDecisionQuery(String xml) throws XACMLException, com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofXACMLAuthzDecisionQuery
. The return object is immutable.- Parameters:
xml
- an XML String representingXACMLAuthzDecisionQuery
.- Returns:
- a new instance of
XACMLAuthzDecisionQuery
. - Throws:
XACMLException
- if error occurs while processing the XML string.com.sun.identity.saml2.common.SAML2Exception
- if not able to create the base samlRequestAbstract
-
createXACMLAuthzDecisionStatement
Returns a new instance ofXACMLAuthzDecisionStatement
. Caller may need to call setters of the class to populate the object.- Returns:
- a new instance of
XACMLAuthzDecisionStatement
.
-
createXACMLAuthzDecisionStatement
public XACMLAuthzDecisionStatement createXACMLAuthzDecisionStatement(Element elem) throws XACMLException Returns a new instance ofXACMLAuthzDecisionStatement
. The return object is immutable.- Parameters:
elem
- anElement
representation ofXACMLAuthzDecisionStatement
.- Returns:
- a new instance of
XACMLAuthzDecisionStatement
. - Throws:
XACMLException
- if error occurs while processing theElement
.
-
createXACMLAuthzDecisionStatement
public XACMLAuthzDecisionStatement createXACMLAuthzDecisionStatement(String xml) throws XACMLException Returns a new instance ofXACMLAuthzDecisionStatement
. The return object is immutable.- Parameters:
xml
- an XML String representingXACMLAuthzDecisionStatement
.- Returns:
- a new instance of
XACMLAuthzDecisionStatement
. - Throws:
XACMLException
- if error occurs while processing the XML string.
-
createResponse
Returns a new instance ofResponse
.- Returns:
- a new instance of
Response
- Throws:
XACMLException
-
createResponse
Returns a new instance ofResponse
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofResponse
- Returns:
- a new instance of
Response
- Throws:
XACMLException
- if error occurs while processing the DOM Element
-
createResponse
Returns a new instance ofResponse
The return object is immutable.- Parameters:
xml
- a XML string representation ofResponse
- Returns:
- a new instance of
Response
- Throws:
XACMLException
- if error occurs while processing the XML string
-
createResult
Returns a new instance ofResult
.- Returns:
- a new instance of
Result
- Throws:
XACMLException
-
createResult
Returns a new instance ofResult
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofResult
- Returns:
- a new instance of
Result
- Throws:
XACMLException
- if error occurs while processing the DOM Element
-
createResult
Returns a new instance ofResult
The return object is immutable.- Parameters:
xml
- a XML string representation ofResult
- Returns:
- a new instance of
Result
- Throws:
XACMLException
- if error occurs while processing the XML string
-
createDecision
Returns a new instance ofDecision
.- Returns:
- a new instance of
Decision
- Throws:
XACMLException
-
createDecision
Returns a new instance ofDecision
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofDecision
- Returns:
- a new instance of
Decision
- Throws:
XACMLException
- if error occurs while processing the DOM Element
-
createDecision
Returns a new instance ofDecision
The return object is immutable.- Parameters:
xml
- a XML string representation ofDecision
- Returns:
- a new instance of
Decision
- Throws:
XACMLException
- if error occurs while processing the XML string
-
createStatus
Returns a new instance ofStatus
.- Returns:
- a new instance of
Status
- Throws:
XACMLException
-
createStatus
Returns a new instance ofStatus
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofStatus
- Returns:
- a new instance of
Status
- Throws:
XACMLException
- if error occurs while processing the DOM Element
-
createStatus
Returns a new instance ofStatus
The return object is immutable.- Parameters:
xml
- a XML string representation ofStatus
- Returns:
- a new instance of
Status
- Throws:
XACMLException
- if error occurs while processing the XML string
-
createStatusCode
Returns a new instance ofStatusCode
.- Returns:
- a new instance of
StatusCode
- Throws:
XACMLException
-
createStatusCode
Returns a new instance ofStatusCode
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofStatusCode
- Returns:
- a new instance of
StatusCode
- Throws:
XACMLException
- if error occurs while processing the DOM Element
-
createStatusCode
Returns a new instance ofStatusCode
The return object is immutable.- Parameters:
xml
- a XML string representation ofStatusCode
- Returns:
- a new instance of
StatusCode
- Throws:
XACMLException
- if error occurs while processing the XML string
-
createStatusMessage
Returns a new instance ofStatusMessage
.- Returns:
- a new instance of
StatusMessage
- Throws:
XACMLException
-
createStatusMessage
Returns a new instance ofStatusMessage
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofStatusMessage
- Returns:
- a new instance of
StatusMessage
- Throws:
XACMLException
- if error occurs while processing the DOM Element
-
createStatusMessage
Returns a new instance ofStatusMessage
The return object is immutable.- Parameters:
xml
- a XML string representation ofStatusMessage
- Returns:
- a new instance of
StatusMessage
- Throws:
XACMLException
- if error occurs while processing the XML string
-
createStatusDetail
Returns a new instance ofStatusDetail
.- Returns:
- a new instance of
StatusDetail
- Throws:
XACMLException
-
createStatusDetail
Returns a new instance ofStatusDetail
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofStatusDetail
- Returns:
- a new instance of
StatusDetail
- Throws:
XACMLException
- if error occurs while processing the DOM Element
-
createStatusDetail
Returns a new instance ofStatusDetail
The return object is immutable.- Parameters:
xml
- a XML string representation ofStatusDetail
- Returns:
- a new instance of
StatusDetail
- Throws:
XACMLException
- if error occurs while processing the XML string
-