public class MainCLI extends CLI
| Modifier and Type | Field and Description |
|---|---|
java.io.File |
certDatabase |
ClientConfig |
config |
boolean |
ignoreBanner |
java.util.Collection<java.lang.Integer> |
ignoredCertStatuses |
java.util.Collection<java.lang.Integer> |
rejectedCertStatuses |
static java.util.Collection<java.lang.String> |
RESTRICTED_COMMANDS
These commands should not be executed after CryptoManager.initialize()
since they may modify the NSS database or execute external commands
using the same NSS database.
|
| Constructor and Description |
|---|
MainCLI() |
| Modifier and Type | Method and Description |
|---|---|
void |
convertCertStatusList(java.lang.String list,
java.util.Collection<java.lang.Integer> statuses) |
static CAClient |
createCAClient(PKIClient client) |
void |
createOptions() |
void |
execute(java.lang.String[] args) |
PKIClient |
getClient() |
ClientConfig |
getConfig() |
java.lang.String |
getFullModuleName(java.lang.String moduleName) |
java.lang.String |
getManPage() |
static void |
handleException(java.lang.Throwable t) |
void |
init() |
java.lang.String[] |
loadPassword(java.lang.String pwfile) |
static void |
main(java.lang.String[] args) |
void |
parseOptions(org.apache.commons.cli.CommandLine cmd) |
void |
printHelp() |
static void |
printMessage(java.lang.String message) |
void |
printVersion() |
java.lang.String |
promptForPassword() |
java.lang.String |
promptForPassword(java.lang.String prompt) |
addModule, findModule, findModules, getClient, getDeprecatedModules, getDescription, getFullName, getModule, getModules, getName, getParent, isDeprecated, isVerbose, removeModule, runExternal, runExternal, setDescription, setName, setVerbosepublic static final java.util.Collection<java.lang.String> RESTRICTED_COMMANDS
public ClientConfig config
public java.util.Collection<java.lang.Integer> rejectedCertStatuses
public java.util.Collection<java.lang.Integer> ignoredCertStatuses
public boolean ignoreBanner
public java.io.File certDatabase
public java.lang.String getFullModuleName(java.lang.String moduleName)
getFullModuleName in class CLIpublic java.lang.String getManPage()
getManPage in class CLIpublic void printVersion()
public void createOptions()
throws java.net.UnknownHostException
java.net.UnknownHostExceptionpublic java.lang.String[] loadPassword(java.lang.String pwfile)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String promptForPassword(java.lang.String prompt)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String promptForPassword()
throws java.io.IOException
java.io.IOExceptionpublic static CAClient createCAClient(PKIClient client) throws java.lang.Exception
java.lang.Exceptionpublic void parseOptions(org.apache.commons.cli.CommandLine cmd)
throws java.lang.Exception
java.lang.Exceptionpublic ClientConfig getConfig()
public void convertCertStatusList(java.lang.String list,
java.util.Collection<java.lang.Integer> statuses)
throws java.lang.Exception
java.lang.Exceptionpublic void init()
throws java.lang.Exception
java.lang.Exceptionpublic PKIClient getClient() throws java.lang.Exception
public void execute(java.lang.String[] args)
throws java.lang.Exception
public static void printMessage(java.lang.String message)
public static void handleException(java.lang.Throwable t)
public static void main(java.lang.String[] args)