Package com.netscape.cmstools.cli
Class MainCLI
- java.lang.Object
-
- org.dogtagpki.cli.CLI
-
- com.netscape.cmstools.cli.MainCLI
-
public class MainCLI extends CLI
- Author:
- Endi S. Dewata
-
-
Field Summary
Fields Modifier and Type Field Description ClientConfig
config
boolean
ignoreBanner
java.util.Collection<java.lang.Integer>
ignoredCertStatuses
java.util.Collection<java.lang.Integer>
rejectedCertStatuses
-
Constructor Summary
Constructors Constructor Description MainCLI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
NSSDatabase
getNSSDatabase()
static void
handleException(java.lang.Throwable t)
void
init()
java.lang.String
loadPassword(java.lang.String path)
java.util.Map<java.lang.String,java.lang.String>
loadPasswordConfig(java.lang.String filename)
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)
-
Methods inherited from class org.dogtagpki.cli.CLI
addModule, findModule, findModules, getClient, getDescription, getFullName, getModule, getModules, getName, getParent, getRoot, isDeprecated, printCommands, removeModule, runExternal, runExternal, setDescription, setName
-
-
-
-
Field Detail
-
config
public ClientConfig config
-
rejectedCertStatuses
public java.util.Collection<java.lang.Integer> rejectedCertStatuses
-
ignoredCertStatuses
public java.util.Collection<java.lang.Integer> ignoredCertStatuses
-
ignoreBanner
public boolean ignoreBanner
-
-
Method Detail
-
getConfig
public ClientConfig getConfig()
-
getNSSDatabase
public NSSDatabase getNSSDatabase()
-
getFullModuleName
public java.lang.String getFullModuleName(java.lang.String moduleName)
- Overrides:
getFullModuleName
in classCLI
-
getManPage
public java.lang.String getManPage()
- Overrides:
getManPage
in classCLI
-
printVersion
public void printVersion()
-
createOptions
public void createOptions() throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
-
loadPassword
public java.lang.String loadPassword(java.lang.String path) throws java.io.IOException
- Throws:
java.io.IOException
-
loadPasswordConfig
public java.util.Map<java.lang.String,java.lang.String> loadPasswordConfig(java.lang.String filename) throws java.lang.Exception
- Throws:
java.lang.Exception
-
promptForPassword
public java.lang.String promptForPassword(java.lang.String prompt) throws java.io.IOException
- Throws:
java.io.IOException
-
promptForPassword
public java.lang.String promptForPassword() throws java.io.IOException
- Throws:
java.io.IOException
-
createCAClient
public static CAClient createCAClient(PKIClient client) throws java.lang.Exception
- Throws:
java.lang.Exception
-
parseOptions
public void parseOptions(org.apache.commons.cli.CommandLine cmd) throws java.lang.Exception
- Throws:
java.lang.Exception
-
convertCertStatusList
public void convertCertStatusList(java.lang.String list, java.util.Collection<java.lang.Integer> statuses) throws java.lang.Exception
- Throws:
java.lang.Exception
-
init
public void init() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getClient
public PKIClient getClient() throws java.lang.Exception
-
execute
public void execute(java.lang.String[] args) throws java.lang.Exception
-
printMessage
public static void printMessage(java.lang.String message)
-
handleException
public static void handleException(java.lang.Throwable t)
-
main
public static void main(java.lang.String[] args)
-
-