/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: ProtocolFactory.java,v 1.5 2008/06/25 05:47:57 qcheng Exp $
*
*/
/**
* 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.
* <code>createElementName()</code>,
* <code>createElementName(String value)</code>,
* <code>createElementName(org.w3c.dom.Element value)</code>.
*
* @supported.all.api
*/
public class ProtocolFactory {
/* Constructor for ProtocolFactory */
private ProtocolFactory() {
}
/**
* Returns an instance of the <code>ProtocolFactory</code> Object.
*
* @return an instance of the <code>ProtocolFactory</code> object.
*/
return protoInstance;
}
/**
* Returns the <code>AssertionIDRequest</code> Object.
*
* @return the <code>AssertionIDRequest</code> object.
* @throws SAML2Exception if <code>AssertionIDRequest</code> cannot be
* created.
*/
return new AssertionIDRequestImpl();
} else {
return (AssertionIDRequest) obj;
}
}
/**
* Returns the <code>AssertionIDRequest</code> Object.
*
* @param value the Document Element of <code>AssertionIDRequest</code>
* object.
* @return the <code>AssertionIDRequest</code> object.
* @throws SAML2Exception if <code>AssertionIDRequest</code> cannot be
* created.
*/
throws SAML2Exception {
return new AssertionIDRequestImpl(value);
} else {
return (AssertionIDRequest) obj;
}
}
/**
* Returns the <code>AssertionIDRequest</code> Object.
*
* @param value <code>AssertionIDRequest</code> XML String.
* @return the <code>AssertionIDRequest</code> object.
* @throws SAML2Exception if <code>AssertionIDRequest</code> cannot be
* created.
*/
throws SAML2Exception {
return new AssertionIDRequestImpl(value);
} else {
return (AssertionIDRequest) obj;
}
}
/**
* Returns the <code>AttributeQuery</code> Object.
*
* @return the <code>AttributeQuery</code> object.
* @throws SAML2Exception if <code>AttributeQuery</code> cannot be created.
*/
return new AttributeQueryImpl();
} else {
return (AttributeQuery) obj;
}
}
/**
* Returns the <code>AttributeQuery</code> Object.
*
* @param value the Document Element of <code>AttributeQuery</code> object.
* @return the <code>AttributeQuery</code> object.
* @throws SAML2Exception if <code>AttributeQuery</code> cannot be created.
*/
throws SAML2Exception {
return new AttributeQueryImpl(value);
} else {
return (AttributeQuery) obj;
}
}
/**
* Returns the <code>AttributeQuery</code> Object.
*
* @param value <code>AttributeQuery</code> XML String.
* @return the <code>AttributeQuery</code> object.
* @throws SAML2Exception if <code>AttributeQuery</code> cannot be created.
*/
throws SAML2Exception {
return new AttributeQueryImpl(value);
} else {
return (AttributeQuery) obj;
}
}
/**
* Returns the <code>AuthnQuery</code> Object.
*
* @return the <code>AuthnQuery</code> object.
* @throws SAML2Exception if <code>AuthnQuery</code> cannot be created.
*/
return new AuthnQueryImpl();
} else {
return (AuthnQuery) obj;
}
}
/**
* Returns the <code>AuthnQuery</code> Object.
*
* @param value the Document Element of <code>AuthnQuery</code> object.
* @return the <code>AuthnQuery</code> object.
* @throws SAML2Exception if <code>AuthnQuery</code> cannot be created.
*/
throws SAML2Exception {
return new AuthnQueryImpl(value);
} else {
return (AuthnQuery) obj;
}
}
/**
* Returns the <code>AuthnQuery</code> Object.
*
* @param value <code>AuthnQuery</code> XML String.
* @return the <code>AuthnQuery</code> object.
* @throws SAML2Exception if <code>AuthnQuery</code> cannot be created.
*/
throws SAML2Exception {
return new AuthnQueryImpl(value);
} else {
return (AuthnQuery) obj;
}
}
/**
* Returns the <code>AuthnRequest</code> Object.
*
* @return the <code>AuthnRequest</code> object.
* @throws SAML2Exception if <code>AuthnRequest</code> cannot be created.
*/
return new AuthnRequestImpl();
} else {
return (AuthnRequest) obj;
}
}
/**
* Returns the <code>AuthnRequest</code> Object.
*
* @param value the Document Element of <code>AuthnRequest</code> object.
* @return the <code>AuthnRequest</code> object.
* @throws SAML2Exception if <code>AuthnRequest</code> cannot be created.
*/
return new AuthnRequestImpl(value);
} else {
return (AuthnRequest) obj;
}
}
/**
* Returns the <code>AuthnRequest</code> Object.
*
* @param value <code>AuthnRequest</code> XML String.
* @return the <code>AuthnRequest</code> object.
* @throws SAML2Exception if <code>AuthnRequest</code> cannot be created.
*/
return new AuthnRequestImpl(value);
} else {
return (AuthnRequest) obj;
}
}
/**
* Returns the <code>Extensions</code> Object.
*
* @return the <code>Extensions</code> object.
* @throws SAML2Exception if <code>Extensions</code> cannot be created.
*/
return new ExtensionsImpl();
} else {
return (Extensions) obj;
}
}
/**
* Returns the <code>Extensions</code> Object.
*
* @param value the Document Element of <code>Extensions</code> object.
* @return instance of <code>Extensions</code> object.
* @throws SAML2Exception if <code>Extensions</code> cannot be created.
*/
return new ExtensionsImpl(value);
} else {
return (Extensions) obj;
}
}
/**
* Returns the <code>Extensions</code> Object.
*
* @param value XML String Representation of <code>Extensions</code>
* object.
* @return instance of <code>Extensions<code> object.
* @throws SAML2Exception if <code>Extensions</code> cannot be created.
*/
return new ExtensionsImpl(value);
} else {
return (Extensions) obj;
}
}
/**
* Returns the <code>GetComplete</code> Object.
*
* @return instance of <code>GetComplete</code> object.
* @throws SAML2Exception if <code>GetComplete</code> cannot be created.
*/
return new GetCompleteImpl();
} else {
return (GetComplete) obj;
}
}
/**
* Returns the <code>GetComplete</code> Object.
*
* @param value Document Element of <code>GetComplete</code> object.
* @return instance of <code>GetComplete</code> Object.
* @throws SAML2Exception if <code>GetComplete</code> cannot be created.
*/
return new GetCompleteImpl(value);
} else {
return (GetComplete) obj;
}
}
/**
* Returns the <code>GetComplete</code> Object.
*
* @param value XML String representation of <code>GetComplete</code>
* object.
* @return instance of <code>GetComplete</code> Object.
* @throws SAML2Exception if <code>GetComplete</code> cannot be created.
*/
return new GetCompleteImpl(value);
} else {
return (GetComplete) obj;
}
}
/**
* Returns the <code>IDPEntry</code> Object.
*
* @return instance of <code>IDPEntry<code> object.
* @throws SAML2Exception if <code>IDPEntry<code> cannot be created.
*/
return new IDPEntryImpl();
} else {
}
}
/**
* Returns the <code>IDPEntry</code> Object.
*
* @param value Document Element of <code>IDPEntry<code> object.
* @return instance of <code>IDPEntry<code> object.
* @throws SAML2Exception if <code>IDPEntry<code> cannot be created.
*/
return new IDPEntryImpl(value);
} else {
}
}
/**
* Returns the <code>IDPEntry</code> Object.
*
* @param value XML Representation of the <code>IDPEntry<code> object.
* @return instance of <code>IDPEntry<code> Object.
* @throws SAML2Exception if <code>IDPEntry<code> cannot be created.
*/
return new IDPEntryImpl(value);
} else {
}
}
/**
* Returns the <code>IDPList</code> Object.
*
* @return instance of <code>IDPList<code> Object.
* @throws SAML2Exception if <code>IDPList<code> cannot be created.
*/
return new IDPListImpl();
} else {
}
}
/**
* Returns the <code>IDPList</code> Object.
*
* @param value Document Element of <code>IDPList</code> Object.
* @return instance of <code>IDPList<code> Object.
* @throws SAML2Exception if <code>IDPList<code> cannot be created.
*/
return new IDPListImpl(value);
} else {
}
}
/**
* Returns the <code>IDPList</code> Object.
*
* @param value XML String Representation of <code>IDPList</code> Object.
* @return instance of <code>IDPList</code> Object.
* @throws SAML2Exception if <code>IDPList<code> cannot be created.
*/
return new IDPListImpl(value);
} else {
}
}
/**
* Returns the <code>NameIDPolicy</code> Object.
*
* @return instance of <code>NameIDPolicy</code> Object.
* @throws SAML2Exception if <code>NameIDPolicy<code> cannot be created.
*/
return new NameIDPolicyImpl();
} else {
return (NameIDPolicy) obj;
}
}
/**
* Returns the <code>NameIDPolicy</code> Object.
*
* @param value Document Element of <code>NameIDPolicy</code> Object.
* @return instance of <code>NameIDPolicy</code> Object.
* @throws SAML2Exception if <code>NameIDPolicy<code> cannot be created.
*/
return new NameIDPolicyImpl(value);
} else {
return (NameIDPolicy) obj;
}
}
/**
* Returns the <code>NameIDPolicy</code> Object.
*
* @param value XML String Representation of <code>NameIDPolicy</code>
* object.
* @return instance of <code>NameIDPolicy</code> object.
* @throws SAML2Exception if <code>NameIDPolicy<code> cannot be created.
*/
return new NameIDPolicyImpl(value);
} else {
return (NameIDPolicy) obj;
}
}
/**
* Returns the <code>RequesterID</code> Object.
*
* @return instance of <code>RequesterID</code> Object.
* @throws SAML2Exception if <code>RequesterID<code> cannot be created.
*/
return new RequesterIDImpl();
} else {
return (RequesterID) obj;
}
}
/**
* Returns the <code>RequesterID</code> Object.
*
* @param value Document Element of <code>RequesterID</code> Object.
* @return instance of <code>RequesterID</code> Object.
* @throws SAML2Exception if <code>RequesterID<code> cannot be created.
*/
return new RequesterIDImpl(value);
} else {
return (RequesterID) obj;
}
}
/**
* Returns the <code>RequesterID</code> Object.
*
* @param value XML String Representation of <code>RequesterID</code>
* object.
* @return instance of <code>RequesterID</code> Object.
* @throws SAML2Exception if <code>RequesterID<code> cannot be created.
*/
return new RequesterIDImpl(value);
} else {
return (RequesterID) obj;
}
}
/**
* Returns the <code>Scoping</code> Object.
*
* @return instance of <code>Scoping</code> Object.
* @throws SAML2Exception if <code>Scoping<code> cannot be created.
*/
return new ScopingImpl();
} else {
}
}
/**
* Returns the <code>Scoping</code> Object.
*
* @param value Document Element of <code>Scoping</code> Object.
* @return instance of <code>Scoping</code> Object.
* @throws SAML2Exception if <code>Scoping<code> cannot be created.
*/
return new ScopingImpl(value);
} else {
}
}
/**
* Returns the <code>Scoping</code> Object.
*
* @param value XML String Representation of <code>Scoping</code> Object.
* @return instance of <code>Scoping</code> Object.
* @throws SAML2Exception if <code>Scoping<code> cannot be created.
*/
return new ScopingImpl(value);
} else {
}
}
/**
* Returns a mutable requested authentication context object.
*
* @throws SAML2Exception if it failed to instantiate the object.
* @return the <code>RequestedAuthnContext</code> object.
*/
throws SAML2Exception {
return new RequestedAuthnContextImpl();
} else {
return (RequestedAuthnContext) obj;
}
}
/**
* Returns an immutable requested authentication context object.
*
* @param value DOM element representing requested authentication
* context object.
* @throws SAML2Exception if it failed to instantiate the object.
* @return an immutable requested authentication context object.
*/
throws SAML2Exception {
return new RequestedAuthnContextImpl(value);
} else {
return (RequestedAuthnContext) obj;
}
}
/**
* Returns an immutable requested authentication context object.
*
* @param value XML string representing requested authentication
* context object.
* @throws SAML2Exception if it failed to instantiate the object.
* @return an immutable requested authentication context object.
*/
throws SAML2Exception {
return new RequestedAuthnContextImpl(value);
} else {
return (RequestedAuthnContext) obj;
}
}
/**
* Returns a mutable manage name identifier request object.
*
* @return the <code>ManageNameIDRequest</code> object.
*/
return new ManageNameIDRequestImpl();
} else {
return (ManageNameIDRequest) obj;
}
}
/**
* Returns an immutable manage name identifier request object.
*
* @param value DOM element representing <code>ManageNameIDRequest</code>
* object.
* @throws SAML2Exception if it failed to instantiate the object.
* @return an immutable requested authentication context object.
*/
throws SAML2Exception {
return new ManageNameIDRequestImpl(value);
} else {
return (ManageNameIDRequest) obj;
}
}
/**
* Returns an immutable manage name identifier request object.
*
* @param value XML string representing <code>ManageNameIDRequest</code>
* object.
* @throws SAML2Exception if it failed to instantiate the object.
* @return an immutable requested authentication context object.
*/
throws SAML2Exception {
return new ManageNameIDRequestImpl(value);
} else {
return (ManageNameIDRequest) obj;
}
}
/**
* Returns a mutable manage name identifier response object.
*
* @return the <code>ManageNameIDResponse</code> object.
*/
return new ManageNameIDResponseImpl();
} else {
return (ManageNameIDResponse) obj;
}
}
/**
* Returns an immutable manage name identifier response object.
*
* @param value DOM element representing <code>ManageNameIDResponse</code>
* object.
* @throws SAML2Exception if it failed to instantiate the object.
* @return an immutable requested authentication context object.
*/
throws SAML2Exception {
return new ManageNameIDResponseImpl(value);
} else {
return (ManageNameIDResponse) obj;
}
}
/**
* Returns an immutable manage name identifier response object.
*
* @param value XML String representing <code>ManageNameIDResponse</code>
* object.
* @throws SAML2Exception if it failed to instantiate the object.
* @return an immutable requested authentication context object.
*/
throws SAML2Exception {
return new ManageNameIDResponseImpl(value);
} else {
return (ManageNameIDResponse) obj;
}
}
/**
* Returns an new identifier object.
*
* @param value DOM element representing <code>NewID</code>
* object.
* @throws SAML2Exception if it failed to instantiate the object.
* @return an immutable requested authentication context object.
*/
throws SAML2Exception {
} else {
}
}
/**
* Returns an new identifier object.
*
* @param value of the <code>NewID<code>.
* @throws SAML2Exception if it failed to instantiate the object.
* @return an immutable requested authentication context object.
*/
throws SAML2Exception {
} else {
}
}
/**
* Returns an immutable new encrypted identifier object.
*
* @param value DOM element representing <code>NewEncryptedID</code>
* object.
* @throws SAML2Exception if it failed to instantiate the object.
* @return an immutable requested authentication context object.
*/
throws SAML2Exception {
return new NewEncryptedIDImpl(value);
} else {
return (NewEncryptedID) obj;
}
}
/**
* Returns an immutable new encrypted identifier object.
*
* @param value XML String representing <code>NewEncryptedID</code>
* object.
* @return an immutable requested authentication context object.
* @throws SAML2Exception if it failed to instantiate the object.
*/
throws SAML2Exception {
return new NewEncryptedIDImpl(value);
} else {
return (NewEncryptedID) obj;
}
}
/**
* Returns the <code>LogoutRequest</code> Object.
*
* @return the <code>LogoutRequest</code> object.
*/
return new LogoutRequestImpl();
} else {
return (LogoutRequest) obj;
}
}
/**
* Returns the <code>LogoutRequest</code> Object. This object will be
* immutable.
*
* @param value the <code>org.w3c.dom.Element</code> object representing the
* <code>LogoutRequest</code> object.
* @return the <code>LogoutRequest</code> object.
* @throws SAML2Exception if it fails to instantiate the object.
*/
throws SAML2Exception {
return new LogoutRequestImpl(value);
} else {
return (LogoutRequest) obj;
}
}
/**
* Returns the <code>LogoutRequest</code> Object. This object will be
* immutable.
*
* @param value the <code>String</code> representing the
* <code>LogoutRequest</code> object.
* @return the <code>LogoutRequest</code> object.
* @throws SAML2Exception if it fails to instantiate the object.
*/
throws SAML2Exception {
return new LogoutRequestImpl(value);
} else {
return (LogoutRequest) obj;
}
}
/**
* Returns the <code>LogoutResponse</code> Object.
*
* @return the <code>LogoutResponse</code> object.
*/
return new LogoutResponseImpl();
} else {
return (LogoutResponse) obj;
}
}
/**
* Returns the <code>LogoutResponse</code> Object. This object will be
* immutable.
*
* @param value the <code>org.w3c.dom.Element</code> representing the
* <code>LogoutResponse</code> object.
* @return the <code>LogoutResponse</code> object.
* @throws SAML2Exception if it fails to instantiate the object.
*/
throws SAML2Exception {
return new LogoutResponseImpl(value);
} else {
return (LogoutResponse) obj;
}
}
/**
* Returns the <code>LogoutResponse</code> Object. This object will be
* immutable.
*
* @param value the <code>String</code> representing the
* <code>LogoutResponse</code> object.
* @return the <code>LogoutResponse</code> object.
* @throws SAML2Exception if it fails to instantiate the object.
*/
throws SAML2Exception {
return new LogoutResponseImpl(value);
} else {
return (LogoutResponse) obj;
}
}
/**
* Returns the <code>Status</code> Object.
*
* @return the <code>Status</code> object.
* @throws SAML2Exception if it fails to instantiate the object.
*/
return new StatusImpl();
} else {
}
}
/**
* Returns the <code>Status</code> Object. This object will be
* immutable.
*
* @param value the <code>org.w3c.dom.Element</code> representing the
* <code>Status</code> object.
* @return the <code>Status</code> object.
* @throws SAML2Exception if it fails to instantiate the object.
*/
throws SAML2Exception {
return new StatusImpl(value);
} else {
}
}
/**
* Returns the <code>Status</code> Object. This object will be
* immutable.
*
* @param value the <code>String</code> representing the
* <code>Status</code> object.
* @return the <code>Status</code> object.
* @throws SAML2Exception if it fails to instantiate the object.
*/
return new StatusImpl(value);
} else {
}
}
/**
* Returns the <code>StatusCode</code> Object.
*
* @return the <code>StatusCode</code> object.
* @throws SAML2Exception if it fails to instantiate the object.
*/
return new StatusCodeImpl();
} else {
return (StatusCode) obj;
}
}
/**
* Returns the <code>StatusCode</code> Object. This object will be
* immutable.
*
* @param value the <code>org.w3c.dom.Element</code> representing the
* <code>StatusCode</code> object.
* @return the <code>StatusCode</code> object.
* @throws SAML2Exception if it fails to instantiate the object.
*/
throws SAML2Exception {
return new StatusCodeImpl(value);
} else {
return (StatusCode) obj;
}
}
/**
* Returns the <code>StatusCode</code> Object. This object will be
* immutable.
*
* @param value the <code>String</code> representing the
* <code>StatusCode</code> object.
* @return the <code>StatusCode</code> object.
* @throws SAML2Exception if it fails to instantiate the object.
*/
return new StatusCodeImpl(value);
} else {
return (StatusCode) obj;
}
}
/**
* Returns the <code>StatusDetail</code> Object.
*
* @return the <code>StatusDetail</code> object.
* @throws SAML2Exception if it fails to instantiate the object.
*/
return new StatusDetailImpl();
} else {
return (StatusDetail) obj;
}
}
/**
* Returns the <code>StatusDetail</code> Object. This object will be
* immutable.
*
* @param value the <code>org.w3c.dom.Element</code> representing the
* <code>StatusDetail</code> object.
* @return the <code>StatusDetail</code> object.
* @throws SAML2Exception if it fails to instantiate the object.
*/
throws SAML2Exception {
return new StatusDetailImpl(value);
} else {
return (StatusDetail) obj;
}
}
/**
* Returns the <code>StatusDetail</code> Object. This object will be
* immutable.
*
* @param value the <code>String</code> representing the
* <code>StatusDetail</code> object.
* @return the <code>StatusDetail</code> object.
* @throws SAML2Exception if it fails to instantiate the object.
*/
throws SAML2Exception {
return new StatusDetailImpl(value);
} else {
return (StatusDetail) obj;
}
}
/**
* Returns the <code>StatusMessage</code> Object.
*
* @param value A String <code>StatusMessage</code> value
* @return the <code>StatusMessage</code> object.
*/
return new StatusMessageImpl(value);
} else {
return (StatusMessage) obj;
}
}
/**
* Returns the <code>SessionIndex</code> Object.
*
* @param value A String <code>SessionIndex</code> value
* @return the <code>SessionIndex</code> object.
*/
return new SessionIndexImpl(value);
} else {
return (SessionIndex) obj;
}
}
/**
* Returns a new instance of <code>Artifact</code>.
*
* @param typecode two byte sequence representing <code>TypeCode</code>.
* @param endpointIndex integer value representing
* <code>EndpointIndex</code>.
* @param sourceID String format of 20-byte sequence. Usually obtained
* from taking the SHA-1 hash of the identification URL (called
* provider ID).
* @param messageHandle String format of 20-byte sequence identifying
* a message. This value is constructed from a cryptographically
* strong random or pseudorandom number sequence.
* @return a new instance of <code>Artifact</code>.
* @throws SAML2Exception if it fails to instantiate the object.
*/
int endpointIndex,
throws SAML2Exception {
} else {
}
}
/**
* Returns a new instance of <code>Artifact</code>.
* The return object is immutable.
*
* @param elem an <code>Element</code> representation of
* <code>Artifact</code>.
* @return a new instance of <code>Artifact</code>.
* @throws SAML2Exception if error occurs while processing the
* <code>Element</code>.
*/
throws SAML2Exception {
elem);
return new ArtifactImpl(elem);
} else {
}
}
/**
* Returns a new instance of <code>Artifact</code>.
* The return object is immutable.
*
* @param encodedArtifactValue <code>Artifact Base64</code> encoded String.
* @return a new instance of <code>Artifact</code>.
* @throws SAML2Exception if error occurs while processing the XML string.
*/
throws SAML2Exception {
return new ArtifactImpl(encodedArtifactValue);
} else {
}
}
/**
* Returns a new instance of <code>ArtifactResolve</code>.
* Caller may need to call setters of the class to populate the object.
*
* @return a new instance of <code>ArtifactResolve</code>.
*/
return new ArtifactResolveImpl();
} else {
return (ArtifactResolve) obj;
}
}
/**
* Returns a new instance of <code>ArtifactResolve</code>.
* The return object is immutable.
*
* @param elem an <code>Element</code> representation of
* <code>ArtifactResolve</code>.
* @return a new instance of <code>ArtifactResolve</code>.
* @throws SAML2Exception if error occurs
* while processing the <code>Element</code>.
*/
throws SAML2Exception {
return new ArtifactResolveImpl(elem);
} else {
return (ArtifactResolve) obj;
}
}
/**
* Returns a new instance of <code>ArtifactResolve</code>.
* The return object is immutable.
*
* @param xml a XML String representation of <code>ArtifactResolve</code>.
* @return a new instance of <code>ArtifactResolve</code>.
* @throws SAML2Exception if error occurs while processing the XML string.
*/
throws SAML2Exception {
return new ArtifactResolveImpl(xml);
} else {
return (ArtifactResolve) obj;
}
}
/**
* Returns a new instance of <code>ArtifactResponse</code>.
* Caller may need to call setters of the class to populate the object.
*
* @return a new instance of <code>ArtifactResponse</code>.
*/
return new ArtifactResponseImpl();
} else {
return (ArtifactResponse) obj;
}
}
/**
* Returns a new instance of <code>ArtifactResponse</code>.
* The return object is immutable.
*
* @param elem an <code>Element</code> representing
* <code>ArtifactResponse</code>.
* @return a new instance of <code>ArtifactResponse</code>.
* @throws SAML2Exception if error occurs
* while processing the <code>Element</code>.
*/
throws SAML2Exception {
return new ArtifactResponseImpl(elem);
} else {
return (ArtifactResponse) obj;
}
}
/**
* Returns a new instance of <code>ArtifactResponse</code>.
* The return object is immutable.
*
* @param xml a XML String representation of <code>ArtifactResponse</code>.
* @return a new instance of <code>ArtifactResponse</code>.
* @throws com.sun.identity.saml2.common.SAML2Exception if error occurs
* while processing the XML string.
*/
throws SAML2Exception {
return new ArtifactResponseImpl(xml);
} else {
return (ArtifactResponse) obj;
}
}
/**
* Returns a new instance of <code>Response</code>.
* Caller may need to call setters of the class to populate the object.
*
* @return a new instance of <code>Response</code>.
*/
return new ResponseImpl();
} else {
}
}
/**
* Returns a new instance of <code>Response</code>.
* The return object is immutable.
*
* @param elem an <code>Element</code> representation of
* <code>Response</code>.
* @return a new instance of <code>Response</code>.
* @throws SAML2Exception if error occurs
* while processing the <code>Element</code>.
*/
throws SAML2Exception {
return new ResponseImpl(elem);
} else {
}
}
/**
* Returns a new instance of <code>Response</code>.
* The return object is immutable.
*
* @param xml a XML String representation of <code>Response</code>.
* @return a new instance of <code>Response</code>.
* @throws SAML2Exception if error occurs while processing the XML string.
*/
throws SAML2Exception {
return new ResponseImpl(xml);
} else {
}
}
/**
* Returns the <code>NameIDMappingRequest</code> Object.
*
* @return the <code>NameIDMappingRequest</code> object.
*/
return new NameIDMappingRequestImpl();
} else {
return (NameIDMappingRequest) obj;
}
}
/**
* Returns the <code>NameIDMappingRequest</code> Object.
*
* @param elem the Document Element of <code>NameIDMappingRequest</code>
* object.
* @return the <code>NameIDMappingRequest</code> object.
* @throws SAML2Exception if <code>NameIDMappingRequest</code> cannot be
* created.
*/
throws SAML2Exception {
return new NameIDMappingRequestImpl(elem);
} else {
return (NameIDMappingRequest) obj;
}
}
/**
* Returns the <code>NameIDMappingRequest</code> Object.
*
* @param value <code>NameIDMappingRequest</code> XML String.
* @return the <code>NameIDMappingRequest</code> object.
* @throws SAML2Exception if <code>NameIDMappingRequest</code> cannot be
* created.
*/
throws SAML2Exception {
return new NameIDMappingRequestImpl(value);
} else {
return (NameIDMappingRequest) obj;
}
}
/**
* Returns the <code>NameIDMappingResponse</code> Object.
*
* @return the <code>NameIDMappingResponse</code> object.
*/
return new NameIDMappingResponseImpl();
} else {
return (NameIDMappingResponse) obj;
}
}
/**
* Returns the <code>NameIDMappingResponse</code> Object.
*
* @param elem the Document Element of <code>NameIDMappingResponse</code>
* object.
* @return the <code>NameIDMappingResponse</code> object.
* @throws SAML2Exception if <code>NameIDMappingResponse</code> cannot be
* created.
*/
throws SAML2Exception {
return new NameIDMappingResponseImpl(elem);
} else {
return (NameIDMappingResponse) obj;
}
}
/**
* Returns the <code>NameIDMappingResponse</code> Object.
*
* @param value <code>NameIDMappingResponse</code> XML String.
* @return the <code>NameIDMappingResponse</code> object.
* @throws SAML2Exception if <code>NameIDMappingResponse</code> cannot be
* created.
*/
throws SAML2Exception {
return new NameIDMappingResponseImpl(value);
} else {
return (NameIDMappingResponse) obj;
}
}
}