/**
* 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: EncryptionHandler.java,v 1.4 2008/08/04 20:03:34 huacui Exp $
*
*/
/*
* Portions Copyrighted [2010] [ForgeRock AS]
*/
/**
* This class provides password encryption
*/
boolean result = true;
if (validateAgentIdentifier(agentId)) {
if (passwordText != null) {
} else {
result = false;
}
} else {
result = false;
}
} else {
result = false;
}
return result;
}
boolean result = false;
try {
} else {
+ "found empty property key: skipping");
}
}
// Try the AM 70 method, if failed try the AM 63 method
try {
"method from SDK with exception :",ex);
"attempt to load method");
throw new InstallException(
}
}
}
}
new Object[] { encryptedText });
result = true;
}
+ "failed with exception", ex);
} finally {
try {
+ "Failed to close file inputstream", ex);
}
}
}
if (!result) {
}
}
public void displayHelp() {
}
if (isReadableFile(filePath)) {
try {
}
}
} else {
+ "Invalid number of text lines in the file: "
+ filePath);
}
+ "Validation failed with exception", ex);
} finally {
try {
+ "Failed to close file reader", ex);
}
}
}
} else {
+ "file not readable");
}
return result;
}
boolean result = true;
{
result = false;
+ "Invalid agent identifier specified");
}
return result;
}
boolean result = true;
result = false;
}
return result;
}
return path;
}
"HR_MSG_ENCRYPT_USAGE_DESC";
"HR_MSG_ENCRYPT_USAGE_HELP";
"HR_ERR_ENCRYPT_ARGS";
"HR_ERR_ENCRYPT_AGENT_ID";
"HR_ERR_ENCRYPT_PASSWORD";
"HR_MSG_ENCRYPT_RESULT";
"HR_ERR_ENCRYPT_FAILED";
"TSK_ERR_ENCRYPT_PASSWORD_INVOKE_METHOD";
}