Package com.netscape.cmstools.client
Class ClientCertImportCLI
- java.lang.Object
-
- org.dogtagpki.cli.CLI
-
- org.dogtagpki.cli.CommandCLI
-
- com.netscape.cmstools.client.ClientCertImportCLI
-
public class ClientCertImportCLI extends CommandCLI
- Author:
- Endi S. Dewata
-
-
Constructor Summary
Constructors Constructor Description ClientCertImportCLI(ClientCLI clientCLI)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createOptions()
void
execute(org.apache.commons.cli.CommandLine cmd)
void
importPKCS12(java.io.File dbPath, java.io.File dbPasswordFile, java.lang.String pkcs12File, java.lang.String pkcs12PasswordFile)
void
importPKCS7(java.lang.String pkcs7Path, java.lang.String nickname, java.lang.String trustAttributes)
void
printHelp()
-
Methods inherited from class org.dogtagpki.cli.CommandCLI
execute
-
Methods inherited from class org.dogtagpki.cli.CLI
addModule, findModule, findModules, getClient, getClient, getConfig, getDescription, getFullModuleName, getFullName, getManPage, getModule, getModules, getName, getParent, getRoot, isDeprecated, printCommands, removeModule, runExternal, runExternal, setDescription, setName
-
-
-
-
Field Detail
-
logger
public static org.slf4j.Logger logger
-
clientCLI
public ClientCLI clientCLI
-
-
Constructor Detail
-
ClientCertImportCLI
public ClientCertImportCLI(ClientCLI clientCLI)
-
-
Method Detail
-
createOptions
public void createOptions()
- Overrides:
createOptions
in classCommandCLI
-
execute
public void execute(org.apache.commons.cli.CommandLine cmd) throws java.lang.Exception
- Overrides:
execute
in classCommandCLI
- Throws:
java.lang.Exception
-
importPKCS7
public void importPKCS7(java.lang.String pkcs7Path, java.lang.String nickname, java.lang.String trustAttributes) throws java.lang.Exception
- Throws:
java.lang.Exception
-
importPKCS12
public void importPKCS12(java.io.File dbPath, java.io.File dbPasswordFile, java.lang.String pkcs12File, java.lang.String pkcs12PasswordFile) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-