/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008 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: NameIDMappingResponseImpl.java,v 1.2 2008/06/25 05:48:00 qcheng Exp $
*
*/
implements NameIDMappingResponse {
/**
* Constructor to create <code>ManageNameIDResponse</code> Object.
*/
public NameIDMappingResponseImpl() {
isMutable = true;
}
/**
* Constructor to create <code>ManageNameIDResponse</code> Object.
*
* @param element Document Element of <code>ManageNameIDRequest<code>
* object.
* @throws SAML2Exception if <code>ManageNameIDRequest<code> cannot be
* created.
*/
if (isSigned) {
}
}
/**
* Constructor to create <code>ManageNameIDResponse</code> Object.
*
* @param xmlString XML representation of the
* <code>ManageNameIDRequest<code> object.
* @throws SAML2Exception if <code>ManageNameIDRequest<code> cannot be
* created.
*/
throw new SAML2Exception("errorObtainingElement");
}
if (isSigned) {
}
}
// make sure that the input xml block is not null
"NameIDMappingResponseImpl.parseElement: Input is null.");
}
throw new SAML2Exception(
}
// Make sure this is an EncryptedAssertion.
"NameIDMappingResponseImpl.parseElement: " +
"not ManageNameIDResponse.");
}
throw new SAML2Exception(
}
isSigned = true;
}
}
}
}
}
/**
* Returns the <code>ManageNameIDResponse</code> in an XML document String
* format based on the <code>ManageNameIDResponse</code> schema described
* above.
*
* @return An XML String representing the <code>ManageNameIDResponse</code>.
* @throws SAML2Exception if it could not create String object.
*/
return toXMLString(true, false);
}
/**
* Returns the <code>ManageNameIDResponse</code> in an XML document String
* format based on the <code>ManageNameIDResponse</code> schema described
* above.
*
* @param includeNSPrefix Determines whether the namespace qualifier is
* prepended to the Element when converted
* @param declareNS Determines whether or not the namespace is declared
* within the Element.
* @return A XML String representing the <code>ManageNameIDResponse</code>.
* @throws SAML2Exception if it could not create String object.
*/
throws SAML2Exception {
return signedXMLString;
}
validateData();
if (declareNS) {
}
if (includeNSPrefix) {
}
}
.append(" IssueInstant=\"")
.append("\"");
}
}
}
if (signatureString != null) {
}
if (extensions != null) {
}
}
if (encryptedID != null) {
}
}
/**
* Returns the value of the <code>encryptedID</code> property.
*
* @return the value of the <code>encryptedID</code> property.
* @see #setEncryptedID(EncryptedID)
*/
{
return encryptedID;
}
/**
* Sets the value of the <code>encryptedID</code> property.
*
* @param value the value of the <code>encryptedID</code> property.
* @exception SAML2Exception if <code>Object</code> is immutable.
* @see #getEncryptedID
*/
{
if (!isMutable) {
throw new SAML2Exception(
}
encryptedID = value;
}
/**
* Returns the value of the <code>nameID</code> property.
*
* @return the value of the <code>nameID</code> property.
* @see #setNameID(NameID)
*/
{
return nameID;
}
/**
* Sets the value of the <code>nameID</code> property.
*
* @param value the value of the <code>nameID</code> property.
* @exception SAML2Exception if <code>Object</code> is immutable.
* @see #getNameID
*/
{
if (!isMutable) {
throw new SAML2Exception(
}
}
throw new SAML2Exception("nameIDMRespWrongID");
}
}
}