|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.identity.xacml.context.ContextFactory
public class 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 | |
|---|---|
Action |
createAction()
Returns a new instance of Action. |
Action |
createAction(Element elem)
Returns a new instance of Action. |
Action |
createAction(String xml)
Returns a new instance of Action. |
Attribute |
createAttribute()
Returns a new instance of Attribute. |
Attribute |
createAttribute(Element elem)
Returns a new instance of Attribute. |
Attribute |
createAttribute(String xml)
Returns a new instance of Attribute. |
Decision |
createDecision()
Returns a new instance of Decision. |
Decision |
createDecision(Element elem)
Returns a new instance of Decision. |
Decision |
createDecision(String xml)
Returns a new instance of Decision
The return object is immutable. |
Environment |
createEnvironment()
Returns a new instance of Environment. |
Environment |
createEnvironment(Element elem)
Returns a new instance of Environment. |
Environment |
createEnvironment(String xml)
Returns a new instance of Environment. |
Request |
createRequest()
Returns a new instance of Request. |
Request |
createRequest(Element elem)
Returns a new instance of Request. |
Request |
createRequest(String xml)
Returns a new instance of Request
The return object is immutable. |
Resource |
createResource()
Returns a new instance of Resource. |
Resource |
createResource(Element elem)
Returns a new instance of Resource. |
Resource |
createResource(String xml)
Returns a new instance of Resource
The return object is immutable. |
Response |
createResponse()
Returns a new instance of Response. |
Response |
createResponse(Element elem)
Returns a new instance of Response. |
Response |
createResponse(String xml)
Returns a new instance of Response
The return object is immutable. |
Result |
createResult()
Returns a new instance of Result. |
Result |
createResult(Element elem)
Returns a new instance of Result. |
Result |
createResult(String xml)
Returns a new instance of Result
The return object is immutable. |
Status |
createStatus()
Returns a new instance of Status. |
Status |
createStatus(Element elem)
Returns a new instance of Status. |
Status |
createStatus(String xml)
Returns a new instance of Status
The return object is immutable. |
StatusCode |
createStatusCode()
Returns a new instance of StatusCode. |
StatusCode |
createStatusCode(Element elem)
Returns a new instance of StatusCode. |
StatusCode |
createStatusCode(String xml)
Returns a new instance of StatusCode
The return object is immutable. |
StatusDetail |
createStatusDetail()
Returns a new instance of StatusDetail. |
StatusDetail |
createStatusDetail(Element elem)
Returns a new instance of StatusDetail. |
StatusDetail |
createStatusDetail(String xml)
Returns a new instance of StatusDetail
The return object is immutable. |
StatusMessage |
createStatusMessage()
Returns a new instance of StatusMessage. |
StatusMessage |
createStatusMessage(Element elem)
Returns a new instance of StatusMessage. |
StatusMessage |
createStatusMessage(String xml)
Returns a new instance of StatusMessage
The return object is immutable. |
Subject |
createSubject()
Returns a new instance of Subject. |
Subject |
createSubject(Element elem)
Returns a new instance of Subject. |
Subject |
createSubject(String xml)
Returns a new instance of Subject. |
XACMLAuthzDecisionQuery |
createXACMLAuthzDecisionQuery()
Returns a new instance of XACMLAuthzDecisionQuery. |
XACMLAuthzDecisionQuery |
createXACMLAuthzDecisionQuery(Element elem)
Returns a new instance of XACMLAuthzDecisionQuery. |
XACMLAuthzDecisionQuery |
createXACMLAuthzDecisionQuery(String xml)
Returns a new instance of XACMLAuthzDecisionQuery. |
XACMLAuthzDecisionStatement |
createXACMLAuthzDecisionStatement()
Returns a new instance of XACMLAuthzDecisionStatement. |
XACMLAuthzDecisionStatement |
createXACMLAuthzDecisionStatement(Element elem)
Returns a new instance of XACMLAuthzDecisionStatement. |
XACMLAuthzDecisionStatement |
createXACMLAuthzDecisionStatement(String xml)
Returns a new instance of XACMLAuthzDecisionStatement. |
static ContextFactory |
getInstance()
Returns the instance of ContextSchemaFactory. |
| Method Detail |
|---|
public static ContextFactory getInstance()
ContextSchemaFactory.
ContextSchemaFactory.public Request createRequest()
Request.
Request
public Request createRequest(Element elem)
throws XACMLException
Request.
The return object is immutable.
elem - a DOM Element representation of Request
Request
XACMLException - if error occurs while processing the
DOM Element
public Request createRequest(String xml)
throws XACMLException
Request
The return object is immutable.
xml - a XML string representation of Request
Resource
XACMLException - if error occurs while processing the
XML stringpublic Resource createResource()
Resource.
Resource
public Resource createResource(Element elem)
throws XACMLException
Resource.
The return object is immutable.
elem - a DOM Element representation of Resource
Resource
XACMLException - if error occurs while processing the
DOM Element
public Resource createResource(String xml)
throws XACMLException
Resource
The return object is immutable.
xml - a XML string representation of Resource
Resource
XACMLException - if error occurs while processing the
XML stringpublic Subject createSubject()
Subject.
Subject
public Subject createSubject(Element elem)
throws XACMLException
Subject.
The return object is immutable.
elem - a DOM Element representation of Subject
Subject
XACMLException - if error occurs while processing the
DOM Element
public Subject createSubject(String xml)
throws XACMLException
Subject.
The return object is immutable.
xml - a XML string representation of Subject
Subject
XACMLException - if error occurs while processing the
XML stringpublic Action createAction()
Action.
Action
public Action createAction(Element elem)
throws XACMLException
Action.
The return object is immutable.
elem - a DOM Element representation of Action
Action
XACMLException - if error occurs while processing the
DOM Element
public Action createAction(String xml)
throws XACMLException
Action.
The return object is immutable.
xml - a XML string representation of Action
Action
XACMLException - if error occurs while processing the
XML stringpublic Environment createEnvironment()
Environment.
Environment
public Environment createEnvironment(Element elem)
throws XACMLException
Environment.
The return object is immutable.
elem - a DOM Element representation of Environment
Environment
XACMLException - if error occurs while processing the
DOM Element
public Environment createEnvironment(String xml)
throws XACMLException
Environment.
The return object is immutable.
xml - a XML string representation of Environment
Environment
XACMLException - if error occurs while processing the
XML stringpublic Attribute createAttribute()
Attribute.
Caller may need to call setters of the class to populate the object.
Attribute.
public Attribute createAttribute(Element elem)
throws XACMLException
Attribute. The return object
is immutable.
elem - an Element representation of
Attribute.
Attribute.
XACMLException - if error occurs while processing the
Element.
public Attribute createAttribute(String xml)
throws XACMLException
Attribute. The return object
is immutable.
xml - an XML String representing Attribute.
Attribute.
XACMLException - if error occurs while processing the XML string.public XACMLAuthzDecisionQuery createXACMLAuthzDecisionQuery()
XACMLAuthzDecisionQuery.
Caller may need to call setters of the class to populate the object.
XACMLAuthzDecisionQuery.
public XACMLAuthzDecisionQuery createXACMLAuthzDecisionQuery(Element elem)
throws XACMLException,
SAML2Exception
XACMLAuthzDecisionQuery.
The return object is immutable.
elem - an Element representation of
XACMLAuthzDecisionQuery.
XACMLAuthzDecisionQuery.
XACMLException - if error occurs while processing the
Element.
SAMLL2Exception - if not able to create the base saml
RequestAbstract
SAML2Exception
public XACMLAuthzDecisionQuery createXACMLAuthzDecisionQuery(String xml)
throws XACMLException,
SAML2Exception
XACMLAuthzDecisionQuery.
The return object is immutable.
xml - an XML String representing
XACMLAuthzDecisionQuery.
XACMLAuthzDecisionQuery.
XACMLException - if error occurs while processing the XML string.
SAMLL2Exception - if not able to create the base saml
RequestAbstract
SAML2Exceptionpublic XACMLAuthzDecisionStatement createXACMLAuthzDecisionStatement()
XACMLAuthzDecisionStatement.
Caller may need to call setters of the class to populate the object.
XACMLAuthzDecisionStatement.
public XACMLAuthzDecisionStatement createXACMLAuthzDecisionStatement(Element elem)
throws XACMLException
XACMLAuthzDecisionStatement.
The return object is immutable.
elem - an Element representation of
XACMLAuthzDecisionStatement.
XACMLAuthzDecisionStatement.
XACMLException - if error occurs while processing the
Element.
public XACMLAuthzDecisionStatement createXACMLAuthzDecisionStatement(String xml)
throws XACMLException
XACMLAuthzDecisionStatement.
The return object is immutable.
xml - an XML String representing
XACMLAuthzDecisionStatement.
XACMLAuthzDecisionStatement.
XACMLException - if error occurs while processing the XML string.
public Response createResponse()
throws XACMLException
Response.
Response
XACMLException
public Response createResponse(Element elem)
throws XACMLException
Response.
The return object is immutable.
elem - a DOM Element representation of Response
Response
XACMLException - if error occurs while processing the
DOM Element
public Response createResponse(String xml)
throws XACMLException
Response
The return object is immutable.
xml - a XML string representation of Response
Response
XACMLException - if error occurs while processing the
XML string
public Result createResult()
throws XACMLException
Result.
Result
XACMLException
public Result createResult(Element elem)
throws XACMLException
Result.
The return object is immutable.
elem - a DOM Element representation of Result
Result
XACMLException - if error occurs while processing the
DOM Element
public Result createResult(String xml)
throws XACMLException
Result
The return object is immutable.
xml - a XML string representation of Result
Result
XACMLException - if error occurs while processing the
XML string
public Decision createDecision()
throws XACMLException
Decision.
Decision
XACMLException
public Decision createDecision(Element elem)
throws XACMLException
Decision.
The return object is immutable.
elem - a DOM Element representation of Decision
Decision
XACMLException - if error occurs while processing the
DOM Element
public Decision createDecision(String xml)
throws XACMLException
Decision
The return object is immutable.
xml - a XML string representation of Decision
Decision
XACMLException - if error occurs while processing the
XML string
public Status createStatus()
throws XACMLException
Status.
Status
XACMLException
public Status createStatus(Element elem)
throws XACMLException
Status.
The return object is immutable.
elem - a DOM Element representation of Status
Status
XACMLException - if error occurs while processing the
DOM Element
public Status createStatus(String xml)
throws XACMLException
Status
The return object is immutable.
xml - a XML string representation of Status
Status
XACMLException - if error occurs while processing the
XML string
public StatusCode createStatusCode()
throws XACMLException
StatusCode.
StatusCode
XACMLException
public StatusCode createStatusCode(Element elem)
throws XACMLException
StatusCode.
The return object is immutable.
elem - a DOM Element representation of StatusCode
StatusCode
XACMLException - if error occurs while processing the
DOM Element
public StatusCode createStatusCode(String xml)
throws XACMLException
StatusCode
The return object is immutable.
xml - a XML string representation of StatusCode
StatusCode
XACMLException - if error occurs while processing the
XML string
public StatusMessage createStatusMessage()
throws XACMLException
StatusMessage.
StatusMessage
XACMLException
public StatusMessage createStatusMessage(Element elem)
throws XACMLException
StatusMessage.
The return object is immutable.
elem - a DOM Element representation of StatusMessage
StatusMessage
XACMLException - if error occurs while processing the
DOM Element
public StatusMessage createStatusMessage(String xml)
throws XACMLException
StatusMessage
The return object is immutable.
xml - a XML string representation of StatusMessage
StatusMessage
XACMLException - if error occurs while processing the
XML string
public StatusDetail createStatusDetail()
throws XACMLException
StatusDetail.
StatusDetail
XACMLException
public StatusDetail createStatusDetail(Element elem)
throws XACMLException
StatusDetail.
The return object is immutable.
elem - a DOM Element representation of StatusDetail
StatusDetail
XACMLException - if error occurs while processing the
DOM Element
public StatusDetail createStatusDetail(String xml)
throws XACMLException
StatusDetail
The return object is immutable.
xml - a XML string representation of StatusDetail
StatusDetail
XACMLException - if error occurs while processing the
XML string
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||