com.sun.identity.saml2.protocol
Class ProtocolFactory

java.lang.Object
  extended bycom.sun.identity.saml2.protocol.ProtocolFactory

public class ProtocolFactory
extends java.lang.Object

This is the factory class to obtain object instances for concrete elements in the protocol schema. This factory class provides 3 methods for each element. createElementName(), createElementName(String value), createElementName(org.w3c.dom.Element value).


Method Summary
 Artifact createArtifact(byte[] typecode, int endpointIndex, java.lang.String sourceID, java.lang.String messageHandle)
          Returns a new instance of Artifact.
 Artifact createArtifact(org.w3c.dom.Element elem)
          Returns a new instance of Artifact.
 Artifact createArtifact(java.lang.String encodedArtifactValue)
          Returns a new instance of Artifact.
 ArtifactResolve createArtifactResolve()
          Returns a new instance of ArtifactResolve.
 ArtifactResolve createArtifactResolve(org.w3c.dom.Element elem)
          Returns a new instance of ArtifactResolve.
 ArtifactResolve createArtifactResolve(java.lang.String xml)
          Returns a new instance of ArtifactResolve.
 ArtifactResponse createArtifactResponse()
          Returns a new instance of ArtifactResponse.
 ArtifactResponse createArtifactResponse(org.w3c.dom.Element elem)
          Returns a new instance of ArtifactResponse.
 ArtifactResponse createArtifactResponse(java.lang.String xml)
          Returns a new instance of ArtifactResponse.
 AuthnRequest createAuthnRequest()
          Returns the AuthnRequest Object.
 AuthnRequest createAuthnRequest(org.w3c.dom.Element value)
          Returns the AuthnRequest Object.
 AuthnRequest createAuthnRequest(java.lang.String value)
          Returns the AuthnRequest Object.
 Extensions createExtensions()
          Returns the Extensions Object.
 Extensions createExtensions(org.w3c.dom.Element value)
          Returns the Extensions Object.
 Extensions createExtensions(java.lang.String value)
          Returns the Extensions Object.
 GetComplete createGetComplete()
          Returns the GetComplete Object.
 GetComplete createGetComplete(org.w3c.dom.Element value)
          Returns the GetComplete Object.
 GetComplete createGetComplete(java.lang.String value)
          Returns the GetComplete Object.
 IDPEntry createIDPEntry()
          Returns the IDPEntry Object.
 IDPEntry createIDPEntry(org.w3c.dom.Element value)
          Returns the IDPEntry Object.
 IDPEntry createIDPEntry(java.lang.String value)
          Returns the IDPEntry Object.
 IDPList createIDPList()
          Returns the IDPList Object.
 IDPList createIDPList(org.w3c.dom.Element value)
          Returns the IDPList Object.
 IDPList createIDPList(java.lang.String value)
          Returns the IDPList Object.
 LogoutRequest createLogoutRequest()
          Returns the LogoutRequest Object.
 LogoutRequest createLogoutRequest(org.w3c.dom.Element value)
          Returns the LogoutRequest Object.
 LogoutRequest createLogoutRequest(java.lang.String value)
          Returns the LogoutRequest Object.
 LogoutResponse createLogoutResponse()
          Returns the LogoutResponse Object.
 LogoutResponse createLogoutResponse(org.w3c.dom.Element value)
          Returns the LogoutResponse Object.
 LogoutResponse createLogoutResponse(java.lang.String value)
          Returns the LogoutResponse Object.
 ManageNameIDRequest createManageNameIDRequest()
          Returns a mutable manage name identifier request object.
 ManageNameIDRequest createManageNameIDRequest(org.w3c.dom.Element value)
          Returns an immutable manage name identifier request object.
 ManageNameIDRequest createManageNameIDRequest(java.lang.String value)
          Returns an immutable manage name identifier request object.
 ManageNameIDResponse createManageNameIDResponse()
          Returns a mutable manage name identifier response object.
 ManageNameIDResponse createManageNameIDResponse(org.w3c.dom.Element value)
          Returns an immutable manage name identifier response object.
 ManageNameIDResponse createManageNameIDResponse(java.lang.String value)
          Returns an immutable manage name identifier response object.
 NameIDPolicy createNameIDPolicy()
          Returns the NameIDPolicy Object.
 NameIDPolicy createNameIDPolicy(org.w3c.dom.Element value)
          Returns the NameIDPolicy Object.
 NameIDPolicy createNameIDPolicy(java.lang.String value)
          Returns the NameIDPolicy Object.
 NewEncryptedID createNewEncryptedID(org.w3c.dom.Element value)
          Returns an immutable new encrypted identifier object.
 NewEncryptedID createNewEncryptedID(java.lang.String value)
          Returns an immutable new encrypted identifier object.
 NewID createNewID(org.w3c.dom.Element value)
          Returns an new identifier object.
 NewID createNewID(java.lang.String value)
          Returns an new identifier object.
 RequestedAuthnContext createRequestedAuthnContext()
          Returns a mutable requested authentication context object.
 RequestedAuthnContext createRequestedAuthnContext(org.w3c.dom.Element value)
          Returns an immutable requested authentication context object.
 RequestedAuthnContext createRequestedAuthnContext(java.lang.String value)
          Returns an immutable requested authentication context object.
 RequesterID createRequesterID()
          Returns the RequesterID Object.
 RequesterID createRequesterID(org.w3c.dom.Element value)
          Returns the RequesterID Object.
 RequesterID createRequesterID(java.lang.String value)
          Returns the RequesterID Object.
 Response createResponse()
          Returns a new instance of Response.
 Response createResponse(org.w3c.dom.Element elem)
          Returns a new instance of Response.
 Response createResponse(java.lang.String xml)
          Returns a new instance of Response.
 Scoping createScoping()
          Returns the Scoping Object.
 Scoping createScoping(org.w3c.dom.Element value)
          Returns the Scoping Object.
 Scoping createScoping(java.lang.String value)
          Returns the Scoping Object.
 SessionIndex createSessionIndex(java.lang.String value)
          Returns the SessionIndex Object.
 Status createStatus()
          Returns the Status Object.
 Status createStatus(org.w3c.dom.Element value)
          Returns the Status Object.
 Status createStatus(java.lang.String value)
          Returns the Status Object.
 StatusCode createStatusCode()
          Returns the StatusCode Object.
 StatusCode createStatusCode(org.w3c.dom.Element value)
          Returns the StatusCode Object.
 StatusCode createStatusCode(java.lang.String value)
          Returns the StatusCode Object.
 StatusDetail createStatusDetail()
          Returns the StatusDetail Object.
 StatusDetail createStatusDetail(org.w3c.dom.Element value)
          Returns the StatusDetail Object.
 StatusDetail createStatusDetail(java.lang.String value)
          Returns the StatusDetail Object.
 StatusMessage createStatusMessage(java.lang.String value)
          Returns the StatusMessage Object.
static ProtocolFactory getInstance()
          Returns an instance of the ProtocolFactory Object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ProtocolFactory getInstance()
Returns an instance of the ProtocolFactory Object.

Returns:
an instance of the ProtocolFactory object.

createAuthnRequest

public AuthnRequest createAuthnRequest()
                                throws SAML2Exception
Returns the AuthnRequest Object.

Returns:
the AuthnRequest object.
Throws:
SAML2Exception - if AuthnRequest cannot be created.

createAuthnRequest

public AuthnRequest createAuthnRequest(org.w3c.dom.Element value)
                                throws SAML2Exception
Returns the AuthnRequest Object.

Parameters:
value - the Document Element of AuthnRequest object.
Returns:
the AuthnRequest object.
Throws:
SAML2Exception - if AuthnRequest cannot be created.

createAuthnRequest

public AuthnRequest createAuthnRequest(java.lang.String value)
                                throws SAML2Exception
Returns the AuthnRequest Object.

Parameters:
value - AuthnRequest XML String.
Returns:
the AuthnRequest object.
Throws:
SAML2Exception - if AuthnRequest cannot be created.

createExtensions

public Extensions createExtensions()
                            throws SAML2Exception
Returns the Extensions Object.

Returns:
the Extensions object.
Throws:
SAML2Exception - if Extensions cannot be created.

createExtensions

public Extensions createExtensions(org.w3c.dom.Element value)
                            throws SAML2Exception
Returns the Extensions Object.

Parameters:
value - the Document Element of Extensions object.
Returns:
instance of Extensions object.
Throws:
SAML2Exception - if Extensions cannot be created.

createExtensions

public Extensions createExtensions(java.lang.String value)
                            throws SAML2Exception
Returns the Extensions Object.

Parameters:
value - XML String Representation of Extensions object.
Returns:
instance of Extensions object.
Throws:
SAML2Exception - if Extensions cannot be created.

createGetComplete

public GetComplete createGetComplete()
                              throws SAML2Exception
Returns the GetComplete Object.

Returns:
instance of GetComplete object.
Throws:
SAML2Exception - if GetComplete cannot be created.

createGetComplete

public GetComplete createGetComplete(org.w3c.dom.Element value)
                              throws SAML2Exception
Returns the GetComplete Object.

Parameters:
value - Document Element of GetComplete object.
Returns:
instance of GetComplete Object.
Throws:
SAML2Exception - if GetComplete cannot be created.

createGetComplete

public GetComplete createGetComplete(java.lang.String value)
                              throws SAML2Exception
Returns the GetComplete Object.

Parameters:
value - XML String representation of GetComplete object.
Returns:
instance of GetComplete Object.
Throws:
SAML2Exception - if GetComplete cannot be created.

createIDPEntry

public IDPEntry createIDPEntry()
                        throws SAML2Exception
Returns the IDPEntry Object.

Returns:
instance of IDPEntry object.
Throws:
SAML2Exception - if IDPEntry cannot be created.

createIDPEntry

public IDPEntry createIDPEntry(org.w3c.dom.Element value)
                        throws SAML2Exception
Returns the IDPEntry Object.

Parameters:
value - Document Element of IDPEntry object.
Returns:
instance of IDPEntry object.
Throws:
SAML2Exception - if IDPEntry cannot be created.

createIDPEntry

public IDPEntry createIDPEntry(java.lang.String value)
                        throws SAML2Exception
Returns the IDPEntry Object.

Parameters:
value - XML Representation of the IDPEntry object.
Returns:
instance of IDPEntry Object.
Throws:
SAML2Exception - if IDPEntry cannot be created.

createIDPList

public IDPList createIDPList()
                      throws SAML2Exception
Returns the IDPList Object.

Returns:
instance of IDPList Object.
Throws:
SAML2Exception - if IDPList cannot be created.

createIDPList

public IDPList createIDPList(org.w3c.dom.Element value)
                      throws SAML2Exception
Returns the IDPList Object.

Parameters:
value - Document Element of IDPList Object.
Returns:
instance of IDPList Object.
Throws:
SAML2Exception - if IDPList cannot be created.

createIDPList

public IDPList createIDPList(java.lang.String value)
                      throws SAML2Exception
Returns the IDPList Object.

Parameters:
value - XML String Representation of IDPList Object.
Returns:
instance of IDPList Object.
Throws:
SAML2Exception - if IDPList cannot be created.

createNameIDPolicy

public NameIDPolicy createNameIDPolicy()
                                throws SAML2Exception
Returns the NameIDPolicy Object.

Returns:
instance of NameIDPolicy Object.
Throws:
SAML2Exception - if NameIDPolicy cannot be created.

createNameIDPolicy

public NameIDPolicy createNameIDPolicy(org.w3c.dom.Element value)
                                throws SAML2Exception
Returns the NameIDPolicy Object.

Parameters:
value - Document Element of NameIDPolicy Object.
Returns:
instance of NameIDPolicy Object.
Throws:
SAML2Exception - if NameIDPolicy cannot be created.

createNameIDPolicy

public NameIDPolicy createNameIDPolicy(java.lang.String value)
                                throws SAML2Exception
Returns the NameIDPolicy Object.

Parameters:
value - XML String Representation of NameIDPolicy object.
Returns:
instance of NameIDPolicy object.
Throws:
SAML2Exception - if NameIDPolicy cannot be created.

createRequesterID

public RequesterID createRequesterID()
                              throws SAML2Exception
Returns the RequesterID Object.

Returns:
instance of RequesterID Object.
Throws:
SAML2Exception - if RequesterID cannot be created.

createRequesterID

public RequesterID createRequesterID(org.w3c.dom.Element value)
                              throws SAML2Exception
Returns the RequesterID Object.

Parameters:
value - Document Element of RequesterID Object.
Returns:
instance of RequesterID Object.
Throws:
SAML2Exception - if RequesterID cannot be created.

createRequesterID

public RequesterID createRequesterID(java.lang.String value)
                              throws SAML2Exception
Returns the RequesterID Object.

Parameters:
value - XML String Representation of RequesterID object.
Returns:
instance of RequesterID Object.
Throws:
SAML2Exception - if RequesterID cannot be created.

createScoping

public Scoping createScoping()
                      throws SAML2Exception
Returns the Scoping Object.

Returns:
instance of Scoping Object.
Throws:
SAML2Exception - if Scoping cannot be created.

createScoping

public Scoping createScoping(org.w3c.dom.Element value)
                      throws SAML2Exception
Returns the Scoping Object.

Parameters:
value - Document Element of Scoping Object.
Returns:
instance of Scoping Object.
Throws:
SAML2Exception - if Scoping cannot be created.

createScoping

public Scoping createScoping(java.lang.String value)
                      throws SAML2Exception
Returns the Scoping Object.

Parameters:
value - XML String Representation of Scoping Object.
Returns:
instance of Scoping Object.
Throws:
SAML2Exception - if Scoping cannot be created.

createRequestedAuthnContext

public RequestedAuthnContext createRequestedAuthnContext()
                                                  throws SAML2Exception
Returns a mutable requested authentication context object.

Returns:
the RequestedAuthnContext object.
Throws:
SAML2Exception - if it failed to instantiate the object.

createRequestedAuthnContext

public RequestedAuthnContext createRequestedAuthnContext(org.w3c.dom.Element value)
                                                  throws SAML2Exception
Returns an immutable requested authentication context object.

Parameters:
value - DOM element representing requested authentication context object.
Returns:
an immutable requested authentication context object.
Throws:
SAML2Exception - if it failed to instantiate the object.

createRequestedAuthnContext

public RequestedAuthnContext createRequestedAuthnContext(java.lang.String value)
                                                  throws SAML2Exception
Returns an immutable requested authentication context object.

Parameters:
value - XML string representing requested authentication context object.
Returns:
an immutable requested authentication context object.
Throws:
SAML2Exception - if it failed to instantiate the object.

createManageNameIDRequest

public ManageNameIDRequest createManageNameIDRequest()
Returns a mutable manage name identifier request object.

Returns:
the ManageNameIDRequest object.

createManageNameIDRequest

public ManageNameIDRequest createManageNameIDRequest(org.w3c.dom.Element value)
                                              throws SAML2Exception
Returns an immutable manage name identifier request object.

Parameters:
value - DOM element representing ManageNameIDRequest object.
Returns:
an immutable requested authentication context object.
Throws:
SAML2Exception - if it failed to instantiate the object.

createManageNameIDRequest

public ManageNameIDRequest createManageNameIDRequest(java.lang.String value)
                                              throws SAML2Exception
Returns an immutable manage name identifier request object.

Parameters:
value - XML string representing ManageNameIDRequest object.
Returns:
an immutable requested authentication context object.
Throws:
SAML2Exception - if it failed to instantiate the object.

createManageNameIDResponse

public ManageNameIDResponse createManageNameIDResponse()
Returns a mutable manage name identifier response object.

Returns:
the ManageNameIDResponse object.

createManageNameIDResponse

public ManageNameIDResponse createManageNameIDResponse(org.w3c.dom.Element value)
                                                throws SAML2Exception
Returns an immutable manage name identifier response object.

Parameters:
value - DOM element representing ManageNameIDResponse object.
Returns:
an immutable requested authentication context object.
Throws:
SAML2Exception - if it failed to instantiate the object.

createManageNameIDResponse

public ManageNameIDResponse createManageNameIDResponse(java.lang.String value)
                                                throws SAML2Exception
Returns an immutable manage name identifier response object.

Parameters:
value - XML String representing ManageNameIDResponse object.
Returns:
an immutable requested authentication context object.
Throws:
SAML2Exception - if it failed to instantiate the object.

createNewID

public NewID createNewID(org.w3c.dom.Element value)
                  throws SAML2Exception
Returns an new identifier object.

Parameters:
value - DOM element representing NewID object.
Returns:
an immutable requested authentication context object.
Throws:
SAML2Exception - if it failed to instantiate the object.

createNewID

public NewID createNewID(java.lang.String value)
                  throws SAML2Exception
Returns an new identifier object.

Parameters:
value - of the NewID.
Returns:
an immutable requested authentication context object.
Throws:
SAML2Exception - if it failed to instantiate the object.

createNewEncryptedID

public NewEncryptedID createNewEncryptedID(org.w3c.dom.Element value)
                                    throws SAML2Exception
Returns an immutable new encrypted identifier object.

Parameters:
value - DOM element representing NewEncryptedID object.
Returns:
an immutable requested authentication context object.
Throws:
SAML2Exception - if it failed to instantiate the object.

createNewEncryptedID

public NewEncryptedID createNewEncryptedID(java.lang.String value)
                                    throws SAML2Exception
Returns an immutable new encrypted identifier object.

Parameters:
value - XML String representing NewEncryptedID object.
Returns:
an immutable requested authentication context object.
Throws:
SAML2Exception - if it failed to instantiate the object.

createLogoutRequest

public LogoutRequest createLogoutRequest()
Returns the LogoutRequest Object.

Returns:
the LogoutRequest object.

createLogoutRequest

public LogoutRequest createLogoutRequest(org.w3c.dom.Element value)
                                  throws SAML2Exception
Returns the LogoutRequest Object. This object will be immutable.

Parameters:
value - the org.w3c.dom.Element object representing the LogoutRequest object.
Returns:
the LogoutRequest object.
Throws:
SAML2Exception - if it fails to instantiate the object.

createLogoutRequest

public LogoutRequest createLogoutRequest(java.lang.String value)
                                  throws SAML2Exception
Returns the LogoutRequest Object. This object will be immutable.

Parameters:
value - the String representing the LogoutRequest object.
Returns:
the LogoutRequest object.
Throws:
SAML2Exception - if it fails to instantiate the object.

createLogoutResponse

public LogoutResponse createLogoutResponse()
Returns the LogoutResponse Object.

Returns:
the LogoutResponse object.

createLogoutResponse

public LogoutResponse createLogoutResponse(org.w3c.dom.Element value)
                                    throws SAML2Exception
Returns the LogoutResponse Object. This object will be immutable.

Parameters:
value - the org.w3c.dom.Element representing the LogoutResponse object.
Returns:
the LogoutResponse object.
Throws:
SAML2Exception - if it fails to instantiate the object.

createLogoutResponse

public LogoutResponse createLogoutResponse(java.lang.String value)
                                    throws SAML2Exception
Returns the LogoutResponse Object. This object will be immutable.

Parameters:
value - the String representing the LogoutResponse object.
Returns:
the LogoutResponse object.
Throws:
SAML2Exception - if it fails to instantiate the object.

createStatus

public Status createStatus()
                    throws SAML2Exception
Returns the Status Object.

Returns:
the Status object.
Throws:
SAML2Exception - if it fails to instantiate the object.

createStatus

public Status createStatus(org.w3c.dom.Element value)
                    throws SAML2Exception
Returns the Status Object. This object will be immutable.

Parameters:
value - the org.w3c.dom.Element representing the Status object.
Returns:
the Status object.
Throws:
SAML2Exception - if it fails to instantiate the object.

createStatus

public Status createStatus(java.lang.String value)
                    throws SAML2Exception
Returns the Status Object. This object will be immutable.

Parameters:
value - the String representing the Status object.
Returns:
the Status object.
Throws:
SAML2Exception - if it fails to instantiate the object.

createStatusCode

public StatusCode createStatusCode()
                            throws SAML2Exception
Returns the StatusCode Object.

Returns:
the StatusCode object.
Throws:
SAML2Exception - if it fails to instantiate the object.

createStatusCode

public StatusCode createStatusCode(org.w3c.dom.Element value)
                            throws SAML2Exception
Returns the StatusCode Object. This object will be immutable.

Parameters:
value - the org.w3c.dom.Element representing the StatusCode object.
Returns:
the StatusCode object.
Throws:
SAML2Exception - if it fails to instantiate the object.

createStatusCode

public StatusCode createStatusCode(java.lang.String value)
                            throws SAML2Exception
Returns the StatusCode Object. This object will be immutable.

Parameters:
value - the String representing the StatusCode object.
Returns:
the StatusCode object.
Throws:
SAML2Exception - if it fails to instantiate the object.

createStatusDetail

public StatusDetail createStatusDetail()
                                throws SAML2Exception
Returns the StatusDetail Object.

Returns:
the StatusDetail object.
Throws:
SAML2Exception - if it fails to instantiate the object.

createStatusDetail

public StatusDetail createStatusDetail(org.w3c.dom.Element value)
                                throws SAML2Exception
Returns the StatusDetail Object. This object will be immutable.

Parameters:
value - the org.w3c.dom.Element representing the StatusDetail object.
Returns:
the StatusDetail object.
Throws:
SAML2Exception - if it fails to instantiate the object.

createStatusDetail

public StatusDetail createStatusDetail(java.lang.String value)
                                throws SAML2Exception
Returns the StatusDetail Object. This object will be immutable.

Parameters:
value - the String representing the StatusDetail object.
Returns:
the StatusDetail object.
Throws:
SAML2Exception - if it fails to instantiate the object.

createStatusMessage

public StatusMessage createStatusMessage(java.lang.String value)
Returns the StatusMessage Object.

Parameters:
value - A String StatusMessage value
Returns:
the StatusMessage object.

createSessionIndex

public SessionIndex createSessionIndex(java.lang.String value)
Returns the SessionIndex Object.

Parameters:
value - A String SessionIndex value
Returns:
the SessionIndex object.

createArtifact

public Artifact createArtifact(byte[] typecode,
                               int endpointIndex,
                               java.lang.String sourceID,
                               java.lang.String messageHandle)
                        throws SAML2Exception
Returns a new instance of Artifact.

Parameters:
typecode - two byte sequence representing TypeCode.
endpointIndex - integer value representing EndpointIndex.
sourceID - String format of 20-byte sequence. Usually obtained from taking the SHA-1 hash of the identification URL (called provider ID).
messageHandle - String format of 20-byte sequence identifying a message. This value is constructed from a cryptographically strong random or pseudorandom number sequence.
Returns:
a new instance of Artifact.
Throws:
SAML2Exception - if it fails to instantiate the object.

createArtifact

public Artifact createArtifact(org.w3c.dom.Element elem)
                        throws SAML2Exception
Returns a new instance of Artifact. The return object is immutable.

Parameters:
elem - an Element representation of Artifact.
Returns:
a new instance of Artifact.
Throws:
SAML2Exception - if error occurs while processing the Element.

createArtifact

public Artifact createArtifact(java.lang.String encodedArtifactValue)
                        throws SAML2Exception
Returns a new instance of Artifact. The return object is immutable.

Parameters:
encodedArtifactValue - Artifact Base64 encoded String.
Returns:
a new instance of Artifact.
Throws:
SAML2Exception - if error occurs while processing the XML string.

createArtifactResolve

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

Returns:
a new instance of ArtifactResolve.

createArtifactResolve

public ArtifactResolve createArtifactResolve(org.w3c.dom.Element elem)
                                      throws SAML2Exception
Returns a new instance of ArtifactResolve. The return object is immutable.

Parameters:
elem - an Element representation of ArtifactResolve.
Returns:
a new instance of ArtifactResolve.
Throws:
SAML2Exception - if error occurs while processing the Element.

createArtifactResolve

public ArtifactResolve createArtifactResolve(java.lang.String xml)
                                      throws SAML2Exception
Returns a new instance of ArtifactResolve. The return object is immutable.

Parameters:
xml - a XML String representation of ArtifactResolve.
Returns:
a new instance of ArtifactResolve.
Throws:
SAML2Exception - if error occurs while processing the XML string.

createArtifactResponse

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

Returns:
a new instance of ArtifactResponse.

createArtifactResponse

public ArtifactResponse createArtifactResponse(org.w3c.dom.Element elem)
                                        throws SAML2Exception
Returns a new instance of ArtifactResponse. The return object is immutable.

Parameters:
elem - an Element representing ArtifactResponse.
Returns:
a new instance of ArtifactResponse.
Throws:
SAML2Exception - if error occurs while processing the Element.

createArtifactResponse

public ArtifactResponse createArtifactResponse(java.lang.String xml)
                                        throws SAML2Exception
Returns a new instance of ArtifactResponse. The return object is immutable.

Parameters:
xml - a XML String representation of ArtifactResponse.
Returns:
a new instance of ArtifactResponse.
Throws:
SAML2Exception - if error occurs while processing the XML string.

createResponse

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

Returns:
a new instance of Response.

createResponse

public Response createResponse(org.w3c.dom.Element elem)
                        throws SAML2Exception
Returns a new instance of Response. The return object is immutable.

Parameters:
elem - an Element representation of Response.
Returns:
a new instance of Response.
Throws:
SAML2Exception - if error occurs while processing the Element.

createResponse

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

Parameters:
xml - a XML String representation of Response.
Returns:
a new instance of Response.
Throws:
SAML2Exception - if error occurs while processing the XML string.


Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.