public class MainCLI extends CLI
| Modifier and Type | Field and Description |
|---|---|
java.io.File |
certDatabase |
ClientConfig |
config |
java.util.Collection<java.lang.Integer> |
ignoredCertStatuses |
java.util.Collection<java.lang.Integer> |
rejectedCertStatuses |
| Constructor and Description |
|---|
MainCLI() |
| Modifier and Type | Method and Description |
|---|---|
void |
convertCertStatusList(java.lang.String list,
java.util.Collection<java.lang.Integer> statuses) |
void |
createOptions() |
void |
execute(java.lang.String[] args) |
java.lang.String |
getFullModuleName(java.lang.String moduleName) |
java.lang.String |
getManPage() |
void |
init() |
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) |
java.lang.String[] |
readPlaintextPasswordFromFile(java.lang.String pwfile) |
addModule, findModule, findModules, getClient, getClient, getDeprecatedModules, getDescription, getFullName, getModule, getModules, getName, getParent, isDeprecated, isVerbose, removeModule, setDescription, setName, setVerbosepublic ClientConfig config
public java.util.Collection<java.lang.Integer> rejectedCertStatuses
public java.util.Collection<java.lang.Integer> ignoredCertStatuses
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[] readPlaintextPasswordFromFile(java.lang.String pwfile)
throws java.io.IOException
java.io.IOExceptionpublic 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 void parseOptions(org.apache.commons.cli.CommandLine cmd)
throws java.lang.Exception
java.lang.Exceptionpublic 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 void execute(java.lang.String[] args)
throws java.lang.Exception
public static void printMessage(java.lang.String message)
public static void main(java.lang.String[] args)