/**
* 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: EncryptTask.java,v 1.3 2008/06/25 05:51:52 qcheng Exp $
*
*/
/**
* This class performs password encryption
*/
{
"properties.");
// Set the debug directory !!
// Set the encryption key
if (encryptionKey == null) {
}
// Set the Encryption modules
// Set the encrypted value key
dataFileName + "'");
// This task does not have anything that could set the return value to
// false. The task will only fail with fatal exceptions if they occur
// & halt the system.
return true;
}
try {
"method from SDK with exception : ",ex);
"second attempt to load method");
try {
} catch (Exception e) {
+ "failed to load method with exception : ", e);
}
throw new InstallException(
}
}
}
try {
}
+ "failed to invoke method with exception :", ex);
}
if (applicationPassword == null ||
throw new InstallException(
}
return applicationPassword;
}
throws InstallException
{
try {
} catch (Exception e) {
"file - " + fileName, e);
} finally {
try {
} catch (IOException i) {
// Ignore
}
}
}
return firstLine;
}
{
return message;
}
{
return message;
}
{
// Remove the encrypted data.
return true;
}
// Lookup keys
"DATA_FILE_LOOKUP_KEY";
"ENCRYPTED_VALUE_KEY_LOOKUP_KEY";
"ENCRYPTION_KEY_LOOKUP_KEY";
// Localiziation keys
"TSK_ERR_PASSWD_FILE_READ";
"TSK_MSG_ENCRYPT_DATA_EXECUTE";
"TSK_MSG_ENCRYPT_DATA_ROLLBACK";
"TSK_ERR_ENCRYPT_PASSWORD_INVOKE_METHOD";
"TSK_ERR_INVALID_APP_SSO_PASSWORD";
"am.encryption.pwd";
"com.iplanet.security.encryptor";
"com.iplanet.services.util.JCEEncryption";
"com.iplanet.services.debug.directory";
"com.iplanet.services.debug.level";
}