Class ClientCertShowCLI


  • public class ClientCertShowCLI
    extends org.dogtagpki.cli.CommandCLI
    Author:
    Endi S. Dewata
    • Field Summary

      Fields 
      Modifier and Type Field Description
      ClientCLI clientCLI  
      static org.slf4j.Logger logger  
      • Fields inherited from class org.dogtagpki.cli.CLI

        client, description, formatter, modules, name, options, parent, parser, verbose
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createOptions()  
      void execute​(org.apache.commons.cli.CommandLine cmd)  
      void exportCertificate​(java.lang.String pkcs12Path, java.lang.String pkcs12PasswordPath, java.lang.String certPath)  
      void exportClientCertificateAndPrivateKey​(java.lang.String pkcs12Path, java.lang.String pkcs12PasswordPath, java.lang.String clientCertPath)  
      void exportPKCS12​(java.lang.String dbPath, java.lang.String dbPassword, java.lang.String pkcs12Path, java.lang.String pkcs12PasswordPath, java.lang.String nickname)  
      void exportPrivateKey​(java.lang.String pkcs12Path, java.lang.String pkcs12PasswordPath, java.lang.String privateKeyPath)  
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • ClientCertShowCLI

        public ClientCertShowCLI​(ClientCLI clientCLI)
    • Method Detail

      • printHelp

        public void printHelp()
        Overrides:
        printHelp in class org.dogtagpki.cli.CLI
      • createOptions

        public void createOptions()
        Overrides:
        createOptions in class org.dogtagpki.cli.CommandCLI
      • execute

        public void execute​(org.apache.commons.cli.CommandLine cmd)
                     throws java.lang.Exception
        Overrides:
        execute in class org.dogtagpki.cli.CommandCLI
        Throws:
        java.lang.Exception
      • exportPKCS12

        public void exportPKCS12​(java.lang.String dbPath,
                                 java.lang.String dbPassword,
                                 java.lang.String pkcs12Path,
                                 java.lang.String pkcs12PasswordPath,
                                 java.lang.String nickname)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • exportCertificate

        public void exportCertificate​(java.lang.String pkcs12Path,
                                      java.lang.String pkcs12PasswordPath,
                                      java.lang.String certPath)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • exportPrivateKey

        public void exportPrivateKey​(java.lang.String pkcs12Path,
                                     java.lang.String pkcs12PasswordPath,
                                     java.lang.String privateKeyPath)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • exportClientCertificateAndPrivateKey

        public void exportClientCertificateAndPrivateKey​(java.lang.String pkcs12Path,
                                                         java.lang.String pkcs12PasswordPath,
                                                         java.lang.String clientCertPath)
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception