/*
* 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: EncryptableNameIdentifier.java,v 1.4 2008/06/25 05:46:46 qcheng Exp $
*
* Portions Copyrighted 2014-2016 ForgeRock AS.
*/
/**
* This class contains methods for encrypting the <code>NameIdentifier</code>
* object.
*
* @supported.all.api
* @deprecated since 12.0.0
*/
public class EncryptableNameIdentifier {
/**
* Default Constructor.
*/
protected EncryptableNameIdentifier() {}
/**
* Constructor creates <code>EncryptableNameIdentifier</code> object.
*
* @param ni the <code>NameIdentifier</code> object to be encrypted.
* @throws FSException if there is an error.
*/
}
}
}
_issueInstant = newDate();
}
/**
* Consturctor creates <code>EncryptableNameIdentifier</code> object.
*
* @param name
* @param nameQualifier
* @param format
* @param issueInstant the Issue Instant
* @param nonce
* @throws FSException if there is an error.
*/
}
}
/**
* Constructs a <code>EncryptedNameIdentifer</code> element from
* the Document Element.
*
* @param nameIdentifier a <code>org.w3c.dom.Element</code>
* representing DOM tree for <code>EncryptableNameIdentifier</code>
* object
* @throws FSException if it could not process the
* <code>org.w3c.dom.Element</code> properly, implying that there
* is an error in the sender or in the element definition.
*/
throws FSException {
" name missing");
}
}
" root element");
}
}
}
}
}
try {
"Could not parse issue instant", pe);
}
}
}
" input specified");
}
} else {
}
}
/**
* Returns value of the <code>Format</code> attribute.
*
* @return value of the <code>Format</code> attribute.
*/
return _format;
}
/**
* Sets the <code>Format</code> attribute.
*
* @param format the value of the <code>Format</code> attribute.
* @return true if the operation succeeds.
*/
// TODO do I need to restrict the format to those defined
// by SAML specification ?
return false;
}
return true;
}
/**
* Returns the <code>NameQualifier</code> attribute.
*
* @return the <code>nameQualifier</code>.
*/
return _nameQualifier;
}
/**
* Sets <code>nameQualifier</code> attribute.
*
* @param nameQualifier the <code>nameQualifier</code> attribute.
* @return true if operation succeeds.
*/
return false;
}
return true;
}
/**
* Sets the name attribute.
*
* @param name name of the <code>nameQualifier</code>.
* @return true if operation succeeds.
*/
return false;
}
return true;
}
/**
* Returns the name from <code>NameQualifier</code>.
*
* @return the name from <code>NameQualifier</code>.
*/
return _name;
}
/**
* Retunrs the nounce.
*
* @return the nounce.
*/
return _nonce;
}
/**
* Returns the Issue Instant.
*
* @return the Issue Instant.
*/
return _issueInstant;
}
/**
* Returns a String representation of the element.
*
* @return A string containing the valid XML for this element
* By default name space name is prepended to the element name
* example <code><saml:EncryptableNameIdentifier></code>.
*/
// call toString() with includeNS true by default and declareNS false
return xml;
}
/**
* Returns String representation of the
* <code><EncryptableNameIdentifier></code> element.
*
* @param includeNS 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.
* @return A string containing the valid XML for this element
*/
if (declareNS) {
}
if (includeNS) {
}
if(_issueInstant != null) {
}
}
append("\"");
}
append("\"");
}
}
append(">");
}
}