/**
* 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: AdminTool.java,v 1.2 2008/06/25 05:51:16 qcheng Exp $
*
*/
/*
* Portions Copyrighted 2010-2014 ForgeRock AS.
*/
}
}
}
break;
}
}
return result;
}
boolean result = false;
result = true;
+ "License accepted by passing the argument: "
break;
}
}
}
if (result) {
+ "License check will not be enforced.");
} else {
+ "License check will be enforced if applicable.");
}
return result;
}
int returnCode = INT_CODE_SUCCESS;
if (acquireLock()) {
+ licenseRequired);
}
}
+ licenseRequired);
boolean licenseAccepted = false;
try {
if (licenseRequired) {
} else {
licenseAccepted = true;
}
}
if (licenseAccepted) {
showUsage();
} else {
}
} else {
}
} else {
}
}
boolean isRegistered = false;
isRegistered = true;
break;
}
}
}
if (!isRegistered) {
} else {
}
}
int returnCode = INT_CODE_SUCCESS;
showUsage();
try {
.getMessage() });
break;
}
}
} else {
boolean optionValid = false;
optionValid = true;
break;
}
}
if (!optionValid) {
optionArg });
} else {
try {
} else { // Invalid arguments specified. Display help!
}
.getMessage() });
}
}
}
return returnCode;
}
private void showUsage() {
}
}
private boolean acquireLock() {
boolean result = false;
// If the lock file does not exist, try to create it now.
try {
// lockFile.createNewFile() will return true only if the lock
// file gets greated. If it returns false, it indicates that
// potentially another instance of admintool created the file
// before this instance could. Other problems such as writer
// permissions etc could also break this logic.
if (result) {
// If the lock file was successfully created, then mark it
// for deletion on exit. That will automatically release
// the lock when this intance of admintool exits.
}
result = false;
}
}
return result;
}
}
"concurrent_run_error";
"AA_MSG_OPTION_DESC_USAGE";
"AA_MSG_OPTION_DESC_HELP";
"com.sun.crypto.provider.SunJCE";
"com.sun.net.ssl.internal.ssl.Provider";
static {
}
}