Package com.sun.identity.xacml.context
Class ContextFactory
- java.lang.Object
-
- com.sun.identity.xacml.context.ContextFactory
-
@SupportedAll public class ContextFactory 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 Action
createAction()
Returns a new instance ofAction
.Action
createAction(String xml)
Returns a new instance ofAction
.Action
createAction(Element elem)
Returns a new instance ofAction
.Attribute
createAttribute()
Returns a new instance ofAttribute
.Attribute
createAttribute(String xml)
Returns a new instance ofAttribute
.Attribute
createAttribute(Element elem)
Returns a new instance ofAttribute
.Decision
createDecision()
Returns a new instance ofDecision
.Decision
createDecision(String xml)
Returns a new instance ofDecision
The return object is immutable.Decision
createDecision(Element elem)
Returns a new instance ofDecision
.Environment
createEnvironment()
Returns a new instance ofEnvironment
.Environment
createEnvironment(String xml)
Returns a new instance ofEnvironment
.Environment
createEnvironment(Element elem)
Returns a new instance ofEnvironment
.Request
createRequest()
Returns a new instance ofRequest
.Request
createRequest(String xml)
Returns a new instance ofRequest
The return object is immutable.Request
createRequest(Element elem)
Returns a new instance ofRequest
.Resource
createResource()
Returns a new instance ofResource
.Resource
createResource(String xml)
Returns a new instance ofResource
The return object is immutable.Resource
createResource(Element elem)
Returns a new instance ofResource
.Response
createResponse()
Returns a new instance ofResponse
.Response
createResponse(String xml)
Returns a new instance ofResponse
The return object is immutable.Response
createResponse(Element elem)
Returns a new instance ofResponse
.Result
createResult()
Returns a new instance ofResult
.Result
createResult(String xml)
Returns a new instance ofResult
The return object is immutable.Result
createResult(Element elem)
Returns a new instance ofResult
.Status
createStatus()
Returns a new instance ofStatus
.Status
createStatus(String xml)
Returns a new instance ofStatus
The return object is immutable.Status
createStatus(Element elem)
Returns a new instance ofStatus
.StatusCode
createStatusCode()
Returns a new instance ofStatusCode
.StatusCode
createStatusCode(String xml)
Returns a new instance ofStatusCode
The return object is immutable.StatusCode
createStatusCode(Element elem)
Returns a new instance ofStatusCode
.StatusDetail
createStatusDetail()
Returns a new instance ofStatusDetail
.StatusDetail
createStatusDetail(String xml)
Returns a new instance ofStatusDetail
The return object is immutable.StatusDetail
createStatusDetail(Element elem)
Returns a new instance ofStatusDetail
.StatusMessage
createStatusMessage()
Returns a new instance ofStatusMessage
.StatusMessage
createStatusMessage(String xml)
Returns a new instance ofStatusMessage
The return object is immutable.StatusMessage
createStatusMessage(Element elem)
Returns a new instance ofStatusMessage
.Subject
createSubject()
Returns a new instance ofSubject
.Subject
createSubject(String xml)
Returns a new instance ofSubject
.Subject
createSubject(Element elem)
Returns a new instance ofSubject
.XACMLAuthzDecisionQuery
createXACMLAuthzDecisionQuery()
Returns a new instance ofXACMLAuthzDecisionQuery
.XACMLAuthzDecisionQuery
createXACMLAuthzDecisionQuery(String xml)
Returns a new instance ofXACMLAuthzDecisionQuery
.XACMLAuthzDecisionQuery
createXACMLAuthzDecisionQuery(Element elem)
Returns a new instance ofXACMLAuthzDecisionQuery
.XACMLAuthzDecisionStatement
createXACMLAuthzDecisionStatement()
Returns a new instance ofXACMLAuthzDecisionStatement
.XACMLAuthzDecisionStatement
createXACMLAuthzDecisionStatement(String xml)
Returns a new instance ofXACMLAuthzDecisionStatement
.XACMLAuthzDecisionStatement
createXACMLAuthzDecisionStatement(Element elem)
Returns a new instance ofXACMLAuthzDecisionStatement
.static ContextFactory
getInstance()
Returns the instance ofContextSchemaFactory
.
-
-
-
Method Detail
-
getInstance
public static ContextFactory getInstance()
Returns the instance ofContextSchemaFactory
.- Returns:
ContextSchemaFactory
.
-
createRequest
public Request createRequest()
Returns a new instance ofRequest
.- Returns:
- a new instance of
Request
-
createRequest
public Request createRequest(Element elem) throws XACMLException
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
public Request createRequest(String xml) throws XACMLException
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
public Resource createResource()
Returns a new instance ofResource
.- Returns:
- a new instance of
Resource
-
createResource
public Resource createResource(Element elem) throws XACMLException
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
public Resource createResource(String xml) throws XACMLException
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
public Subject createSubject()
Returns a new instance ofSubject
.- Returns:
- a new instance of
Subject
-
createSubject
public Subject createSubject(Element elem) throws XACMLException
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
public Subject createSubject(String xml) throws XACMLException
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
public Action createAction()
Returns a new instance ofAction
.- Returns:
- a new instance of
Action
-
createAction
public Action createAction(Element elem) throws XACMLException
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
public Action createAction(String xml) throws XACMLException
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
public Environment createEnvironment()
Returns a new instance ofEnvironment
.- Returns:
- a new instance of
Environment
-
createEnvironment
public Environment createEnvironment(Element elem) throws XACMLException
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
public Environment createEnvironment(String xml) throws XACMLException
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
public Attribute 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
public Attribute createAttribute(Element elem) throws XACMLException
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
public Attribute createAttribute(String xml) throws XACMLException
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
public XACMLAuthzDecisionQuery 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, 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
.SAML2Exception
- if not able to create the base samlRequestAbstract
-
createXACMLAuthzDecisionQuery
public XACMLAuthzDecisionQuery createXACMLAuthzDecisionQuery(String xml) throws XACMLException, 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.SAML2Exception
- if not able to create the base samlRequestAbstract
-
createXACMLAuthzDecisionStatement
public XACMLAuthzDecisionStatement 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
public Response createResponse() throws XACMLException
Returns a new instance ofResponse
.- Returns:
- a new instance of
Response
- Throws:
XACMLException
-
createResponse
public Response createResponse(Element elem) throws XACMLException
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
public Response createResponse(String xml) throws XACMLException
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
public Result createResult() throws XACMLException
Returns a new instance ofResult
.- Returns:
- a new instance of
Result
- Throws:
XACMLException
-
createResult
public Result createResult(Element elem) throws XACMLException
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
public Result createResult(String xml) throws XACMLException
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
public Decision createDecision() throws XACMLException
Returns a new instance ofDecision
.- Returns:
- a new instance of
Decision
- Throws:
XACMLException
-
createDecision
public Decision createDecision(Element elem) throws XACMLException
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
public Decision createDecision(String xml) throws XACMLException
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
public Status createStatus() throws XACMLException
Returns a new instance ofStatus
.- Returns:
- a new instance of
Status
- Throws:
XACMLException
-
createStatus
public Status createStatus(Element elem) throws XACMLException
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
public Status createStatus(String xml) throws XACMLException
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
public StatusCode createStatusCode() throws XACMLException
Returns a new instance ofStatusCode
.- Returns:
- a new instance of
StatusCode
- Throws:
XACMLException
-
createStatusCode
public StatusCode createStatusCode(Element elem) throws XACMLException
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
public StatusCode createStatusCode(String xml) throws XACMLException
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
public StatusMessage createStatusMessage() throws XACMLException
Returns a new instance ofStatusMessage
.- Returns:
- a new instance of
StatusMessage
- Throws:
XACMLException
-
createStatusMessage
public StatusMessage createStatusMessage(Element elem) throws XACMLException
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
public StatusMessage createStatusMessage(String xml) throws XACMLException
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
public StatusDetail createStatusDetail() throws XACMLException
Returns a new instance ofStatusDetail
.- Returns:
- a new instance of
StatusDetail
- Throws:
XACMLException
-
createStatusDetail
public StatusDetail createStatusDetail(Element elem) throws XACMLException
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
public StatusDetail createStatusDetail(String xml) throws XACMLException
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
-
-