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) |
static CAClient |
createCAClient(PKIClient client) |
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, setVerbose
public 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 CLI
public java.lang.String getManPage()
getManPage
in class CLI
public void printVersion()
public void createOptions() throws java.net.UnknownHostException
java.net.UnknownHostException
public java.lang.String[] readPlaintextPasswordFromFile(java.lang.String pwfile) throws java.io.IOException
java.io.IOException
public java.lang.String promptForPassword(java.lang.String prompt) throws java.io.IOException
java.io.IOException
public java.lang.String promptForPassword() throws java.io.IOException
java.io.IOException
public static CAClient createCAClient(PKIClient client) throws java.lang.Exception
java.lang.Exception
public void parseOptions(org.apache.commons.cli.CommandLine cmd) throws java.lang.Exception
java.lang.Exception
public void convertCertStatusList(java.lang.String list, java.util.Collection<java.lang.Integer> statuses) throws java.lang.Exception
java.lang.Exception
public void init() throws java.lang.Exception
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 main(java.lang.String[] args)