Class ClientCertShowCLI


  • public class ClientCertShowCLI
    extends CommandCLI
    Author:
    Endi S. Dewata
    • 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 CLI
      • execute

        public void execute​(org.apache.commons.cli.CommandLine cmd)
                     throws java.lang.Exception
        Overrides:
        execute in class 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