Class MainCLI
java.lang.Object
org.dogtagpki.cli.CLI
com.netscape.cmstools.cli.MainCLI
- Author:
- Endi S. Dewata
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanFields inherited from class CLI
client, description, formatter, logger, modules, name, options, parent, parser, verboseModifier and TypeFieldDescriptionstatic org.apache.commons.cli.HelpFormatterstatic org.slf4j.Loggerorg.apache.commons.cli.Optionsstatic org.apache.commons.cli.CommandLineParserstatic boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconvertCertStatusList(String list, Collection<Integer> statuses) static CAClientcreateCAClient(PKIClient client) voidvoidgetFullModuleName(String moduleName) static voidvoidinit()loadPassword(String path) loadPasswordConfig(String filename) static voidvoidparseOptions(org.apache.commons.cli.CommandLine cmd) voidstatic voidprintMessage(String message) voidpromptForPassword(String prompt) Methods inherited from class CLI
addModule, addModule, findModule, findModules, getClient, getDescription, getFullName, getModule, getModules, getName, getParent, getRoot, isDeprecated, removeModule, runExternal, runExternal, setDescription, setNameModifier and TypeMethodDescriptionvoidvoidfindModule(String command) Find the last module that handles the specified command.findModules(String command) Find the list of modules that handle the specified command.getName()getRoot()booleanremoveModule(String name) voidrunExternal(String[] command) voidrunExternal(List<String> command) voidsetDescription(String description) void
-
Field Details
-
config
-
rejectedCertStatuses
-
ignoredCertStatuses
-
ignoreBanner
public boolean ignoreBanner
-
-
Constructor Details
-
MainCLI
-
-
Method Details
-
getConfig
-
getNSSDatabase
-
getFullModuleName
- Overrides:
getFullModuleNamein classCLI
-
getManPage
- Overrides:
getManPagein classCLI
-
printVersion
public void printVersion() -
printHelp
-
createOptions
- Throws:
UnknownHostException
-
loadPassword
- Throws:
IOException
-
loadPasswordConfig
-
promptForPassword
- Throws:
IOException
-
promptForPassword
- Throws:
IOException
-
createCAClient
-
parseOptions
-
convertCertStatusList
- Throws:
Exception
-
init
-
getClient
-
execute
-
printMessage
-
handleException
-
main
-