com.sun.identity.xacml.context
クラス ContextFactory

java.lang.Object
  上位を拡張 com.sun.identity.xacml.context.ContextFactory

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.


メソッドの概要
 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.
 

メソッドの詳細

getInstance

public static ContextFactory getInstance()
Returns the instance of ContextSchemaFactory.

戻り値:
ContextSchemaFactory.

createRequest

public Request createRequest()
Returns a new instance of Request.

戻り値:
a new instance of Request

createRequest

public Request createRequest(Element elem)
                      throws XACMLException
Returns a new instance of Request. The return object is immutable.

パラメータ:
elem - a DOM Element representation of Request
戻り値:
a new instance of Request
例外:
XACMLException - if error occurs while processing the DOM Element

createRequest

public Request createRequest(String xml)
                      throws XACMLException
Returns a new instance of Request The return object is immutable.

パラメータ:
xml - a XML string representation of Request
戻り値:
a new instance of Resource
例外:
XACMLException - if error occurs while processing the XML string

createResource

public Resource createResource()
Returns a new instance of Resource.

戻り値:
a new instance of Resource

createResource

public Resource createResource(Element elem)
                        throws XACMLException
Returns a new instance of Resource. The return object is immutable.

パラメータ:
elem - a DOM Element representation of Resource
戻り値:
a new instance of Resource
例外:
XACMLException - if error occurs while processing the DOM Element

createResource

public Resource createResource(String xml)
                        throws XACMLException
Returns a new instance of Resource The return object is immutable.

パラメータ:
xml - a XML string representation of Resource
戻り値:
a new instance of Resource
例外:
XACMLException - if error occurs while processing the XML string

createSubject

public Subject createSubject()
Returns a new instance of Subject.

戻り値:
a new instance of Subject

createSubject

public Subject createSubject(Element elem)
                      throws XACMLException
Returns a new instance of Subject. The return object is immutable.

パラメータ:
elem - a DOM Element representation of Subject
戻り値:
a new instance of Subject
例外:
XACMLException - if error occurs while processing the DOM Element

createSubject

public Subject createSubject(String xml)
                      throws XACMLException
Returns a new instance of Subject. The return object is immutable.

パラメータ:
xml - a XML string representation of Subject
戻り値:
a new instance of Subject
例外:
XACMLException - if error occurs while processing the XML string

createAction

public Action createAction()
Returns a new instance of Action.

戻り値:
a new instance of Action

createAction

public Action createAction(Element elem)
                    throws XACMLException
Returns a new instance of Action. The return object is immutable.

パラメータ:
elem - a DOM Element representation of Action
戻り値:
a new instance of Action
例外:
XACMLException - if error occurs while processing the DOM Element

createAction

public Action createAction(String xml)
                    throws XACMLException
Returns a new instance of Action. The return object is immutable.

パラメータ:
xml - a XML string representation of Action
戻り値:
a new instance of Action
例外:
XACMLException - if error occurs while processing the XML string

createEnvironment

public Environment createEnvironment()
Returns a new instance of Environment.

戻り値:
a new instance of Environment

createEnvironment

public Environment createEnvironment(Element elem)
                              throws XACMLException
Returns a new instance of Environment. The return object is immutable.

パラメータ:
elem - a DOM Element representation of Environment
戻り値:
a new instance of Environment
例外:
XACMLException - if error occurs while processing the DOM Element

createEnvironment

public Environment createEnvironment(String xml)
                              throws XACMLException
Returns a new instance of Environment. The return object is immutable.

パラメータ:
xml - a XML string representation of Environment
戻り値:
a new instance of Environment
例外:
XACMLException - if error occurs while processing the XML string

createAttribute

public Attribute createAttribute()
Returns a new instance of Attribute. Caller may need to call setters of the class to populate the object.

戻り値:
a new instance of Attribute.

createAttribute

public Attribute createAttribute(Element elem)
                          throws XACMLException
Returns a new instance of Attribute. The return object is immutable.

パラメータ:
elem - an Element representation of Attribute.
戻り値:
a new instance of Attribute.
例外:
XACMLException - if error occurs while processing the Element.

createAttribute

public Attribute createAttribute(String xml)
                          throws XACMLException
Returns a new instance of Attribute. The return object is immutable.

パラメータ:
xml - an XML String representing Attribute.
戻り値:
a new instance of Attribute.
例外:
XACMLException - if error occurs while processing the XML string.

createXACMLAuthzDecisionQuery

public XACMLAuthzDecisionQuery createXACMLAuthzDecisionQuery()
Returns a new instance of XACMLAuthzDecisionQuery. Caller may need to call setters of the class to populate the object.

戻り値:
a new instance of XACMLAuthzDecisionQuery.

createXACMLAuthzDecisionQuery

public XACMLAuthzDecisionQuery createXACMLAuthzDecisionQuery(Element elem)
                                                      throws XACMLException,
                                                             SAML2Exception
Returns a new instance of XACMLAuthzDecisionQuery. The return object is immutable.

パラメータ:
elem - an Element representation of XACMLAuthzDecisionQuery.
戻り値:
a new instance of XACMLAuthzDecisionQuery.
例外:
XACMLException - if error occurs while processing the Element.
SAMLL2Exception - if not able to create the base saml RequestAbstract
SAML2Exception

createXACMLAuthzDecisionQuery

public XACMLAuthzDecisionQuery createXACMLAuthzDecisionQuery(String xml)
                                                      throws XACMLException,
                                                             SAML2Exception
Returns a new instance of XACMLAuthzDecisionQuery. The return object is immutable.

パラメータ:
xml - an XML String representing XACMLAuthzDecisionQuery.
戻り値:
a new instance of XACMLAuthzDecisionQuery.
例外:
XACMLException - if error occurs while processing the XML string.
SAMLL2Exception - if not able to create the base saml RequestAbstract
SAML2Exception

createXACMLAuthzDecisionStatement

public XACMLAuthzDecisionStatement createXACMLAuthzDecisionStatement()
Returns a new instance of XACMLAuthzDecisionStatement. Caller may need to call setters of the class to populate the object.

戻り値:
a new instance of XACMLAuthzDecisionStatement.

createXACMLAuthzDecisionStatement

public XACMLAuthzDecisionStatement createXACMLAuthzDecisionStatement(Element elem)
                                                              throws XACMLException
Returns a new instance of XACMLAuthzDecisionStatement. The return object is immutable.

パラメータ:
elem - an Element representation of XACMLAuthzDecisionStatement.
戻り値:
a new instance of XACMLAuthzDecisionStatement.
例外:
XACMLException - if error occurs while processing the Element.

createXACMLAuthzDecisionStatement

public XACMLAuthzDecisionStatement createXACMLAuthzDecisionStatement(String xml)
                                                              throws XACMLException
Returns a new instance of XACMLAuthzDecisionStatement. The return object is immutable.

パラメータ:
xml - an XML String representing XACMLAuthzDecisionStatement.
戻り値:
a new instance of XACMLAuthzDecisionStatement.
例外:
XACMLException - if error occurs while processing the XML string.

createResponse

public Response createResponse()
                        throws XACMLException
Returns a new instance of Response.

戻り値:
a new instance of Response
例外:
XACMLException

createResponse

public Response createResponse(Element elem)
                        throws XACMLException
Returns a new instance of Response. The return object is immutable.

パラメータ:
elem - a DOM Element representation of Response
戻り値:
a new instance of Response
例外:
XACMLException - if error occurs while processing the DOM Element

createResponse

public Response createResponse(String xml)
                        throws XACMLException
Returns a new instance of Response The return object is immutable.

パラメータ:
xml - a XML string representation of Response
戻り値:
a new instance of Response
例外:
XACMLException - if error occurs while processing the XML string

createResult

public Result createResult()
                    throws XACMLException
Returns a new instance of Result.

戻り値:
a new instance of Result
例外:
XACMLException

createResult

public Result createResult(Element elem)
                    throws XACMLException
Returns a new instance of Result. The return object is immutable.

パラメータ:
elem - a DOM Element representation of Result
戻り値:
a new instance of Result
例外:
XACMLException - if error occurs while processing the DOM Element

createResult

public Result createResult(String xml)
                    throws XACMLException
Returns a new instance of Result The return object is immutable.

パラメータ:
xml - a XML string representation of Result
戻り値:
a new instance of Result
例外:
XACMLException - if error occurs while processing the XML string

createDecision

public Decision createDecision()
                        throws XACMLException
Returns a new instance of Decision.

戻り値:
a new instance of Decision
例外:
XACMLException

createDecision

public Decision createDecision(Element elem)
                        throws XACMLException
Returns a new instance of Decision. The return object is immutable.

パラメータ:
elem - a DOM Element representation of Decision
戻り値:
a new instance of Decision
例外:
XACMLException - if error occurs while processing the DOM Element

createDecision

public Decision createDecision(String xml)
                        throws XACMLException
Returns a new instance of Decision The return object is immutable.

パラメータ:
xml - a XML string representation of Decision
戻り値:
a new instance of Decision
例外:
XACMLException - if error occurs while processing the XML string

createStatus

public Status createStatus()
                    throws XACMLException
Returns a new instance of Status.

戻り値:
a new instance of Status
例外:
XACMLException

createStatus

public Status createStatus(Element elem)
                    throws XACMLException
Returns a new instance of Status. The return object is immutable.

パラメータ:
elem - a DOM Element representation of Status
戻り値:
a new instance of Status
例外:
XACMLException - if error occurs while processing the DOM Element

createStatus

public Status createStatus(String xml)
                    throws XACMLException
Returns a new instance of Status The return object is immutable.

パラメータ:
xml - a XML string representation of Status
戻り値:
a new instance of Status
例外:
XACMLException - if error occurs while processing the XML string

createStatusCode

public StatusCode createStatusCode()
                            throws XACMLException
Returns a new instance of StatusCode.

戻り値:
a new instance of StatusCode
例外:
XACMLException

createStatusCode

public StatusCode createStatusCode(Element elem)
                            throws XACMLException
Returns a new instance of StatusCode. The return object is immutable.

パラメータ:
elem - a DOM Element representation of StatusCode
戻り値:
a new instance of StatusCode
例外:
XACMLException - if error occurs while processing the DOM Element

createStatusCode

public StatusCode createStatusCode(String xml)
                            throws XACMLException
Returns a new instance of StatusCode The return object is immutable.

パラメータ:
xml - a XML string representation of StatusCode
戻り値:
a new instance of StatusCode
例外:
XACMLException - if error occurs while processing the XML string

createStatusMessage

public StatusMessage createStatusMessage()
                                  throws XACMLException
Returns a new instance of StatusMessage.

戻り値:
a new instance of StatusMessage
例外:
XACMLException

createStatusMessage

public StatusMessage createStatusMessage(Element elem)
                                  throws XACMLException
Returns a new instance of StatusMessage. The return object is immutable.

パラメータ:
elem - a DOM Element representation of StatusMessage
戻り値:
a new instance of StatusMessage
例外:
XACMLException - if error occurs while processing the DOM Element

createStatusMessage

public StatusMessage createStatusMessage(String xml)
                                  throws XACMLException
Returns a new instance of StatusMessage The return object is immutable.

パラメータ:
xml - a XML string representation of StatusMessage
戻り値:
a new instance of StatusMessage
例外:
XACMLException - if error occurs while processing the XML string

createStatusDetail

public StatusDetail createStatusDetail()
                                throws XACMLException
Returns a new instance of StatusDetail.

戻り値:
a new instance of StatusDetail
例外:
XACMLException

createStatusDetail

public StatusDetail createStatusDetail(Element elem)
                                throws XACMLException
Returns a new instance of StatusDetail. The return object is immutable.

パラメータ:
elem - a DOM Element representation of StatusDetail
戻り値:
a new instance of StatusDetail
例外:
XACMLException - if error occurs while processing the DOM Element

createStatusDetail

public StatusDetail createStatusDetail(String xml)
                                throws XACMLException
Returns a new instance of StatusDetail The return object is immutable.

パラメータ:
xml - a XML string representation of StatusDetail
戻り値:
a new instance of StatusDetail
例外:
XACMLException - if error occurs while processing the XML string