/**
* 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: ManageNameIDRequestImpl.java,v 1.3 2008/06/25 05:47:59 qcheng Exp $
*
*/
public class ManageNameIDRequestImpl
extends RequestAbstractImpl implements ManageNameIDRequest {
private boolean terminate = false;
/**
* Constructor to create <code>ManageNameIDRequest</code> Object.
*/
public ManageNameIDRequestImpl() {
isMutable = true;
}
/**
* Constructor to create <code>ManageNameIDRequest</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>ManageNameIDRequest</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
+ "Input is null.");
}
throw new SAML2Exception(
}
// Make sure this is an EncryptedAssertion.
+ "not ManageNameIDRequest.");
}
throw new SAML2Exception(
}
nameID =
isSigned = true;
nameid =
newID =
terminate = true;
}
}
}
}
}
/**
* Returns the value of the <code>NewEncryptedID</code> object.
*
* @return the value of <code>NewEncryptedID</code> object.
* @see #setNewEncryptedID(NewEncryptedID)
*/
{
return newEncryptedID;
}
/**
* Sets the value of the <code>newEncryptedID</code> property.
*
* @param value the value of the <code>newEncryptedID</code> property.
* @exception SAML2Exception if <code>Object</code> is immutable.
* @see #getNewEncryptedID
*/
throws SAML2Exception
{
if (!isMutable) {
throw new SAML2Exception(
}
return;
}
/**
* 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
*/
throws SAML2Exception
{
if (!isMutable) {
throw new SAML2Exception(
}
encryptedID = value;
return;
}
/**
* Returns the value of the <code>NewID</code> property.
*
* @return the value of the <code>NewID</code> property.
* @see #setNewID(NewID)
*/
{
return newID;
}
/**
* Sets the value of the <code>NewID</code> property.
*
* @param value the value of the <code>NewID</code> property.
* @exception SAML2Exception if <code>Object</code> is immutable.
* @see #getNewID
*/
throws SAML2Exception
{
if (!isMutable) {
throw new SAML2Exception(
}
return;
}
/**
* 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
*/
throws SAML2Exception
{
if (!isMutable) {
throw new SAML2Exception(
}
return;
}
/**
* Returns true if this is a terminating request.
*
* @return true if this is a terminating request.
* @see #setTerminate(boolean)
*/
public boolean getTerminate()
{
return terminate;
}
/**
* Set this request as terminating request.
*
* @param value true to set this request as terminating request.
* @throws SAML2Exception if this object is immutable.
* @see #getTerminate
*/
throws SAML2Exception
{
if (!isMutable) {
throw new SAML2Exception(
}
return;
}
/** Returns a String representation of this Object.
*
* @exception SAML2Exception , if it could not create String object
* @return a String representation of this Object.
*/
throws SAML2Exception
{
return toXMLString(true, false);
}
/** Returns a String representation
*
* @param includeNSPrefix determines whether or not the namespace
* qualifier is prepended to the Element when converted
* @param declareNS determines whether or not the namespace is declared
* within the Element.
* @exception SAML2Exception ,if it could not create String object.
* @return a String , String representation of this Object.
**/
throws SAML2Exception
{
return signedXMLString;
}
throw new SAML2Exception("wrongInput");
}
(terminate == true)) {
throw new SAML2Exception("wrongInput");
}
if (declareNS) {
}
if (includeNSPrefix) {
}
}
if (encryptedID != null) {
}
}
if (newEncryptedID != null) {
}
if (terminate == true) {
}
}
/**
* Makes this object immutable.
*/
public void makeImmutable() {
if (isMutable) {
super.makeImmutable();
}
isMutable=false;
}
}
}