Class MainCLI


  • public class MainCLI
    extends CLI
    Author:
    Endi S. Dewata
    • Field Detail

      • rejectedCertStatuses

        public java.util.Collection<java.lang.Integer> rejectedCertStatuses
      • ignoredCertStatuses

        public java.util.Collection<java.lang.Integer> ignoredCertStatuses
      • ignoreBanner

        public boolean ignoreBanner
    • Constructor Detail

      • MainCLI

        public MainCLI()
                throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • getFullModuleName

        public java.lang.String getFullModuleName​(java.lang.String moduleName)
        Overrides:
        getFullModuleName in class CLI
      • getManPage

        public java.lang.String getManPage()
        Overrides:
        getManPage in class CLI
      • printVersion

        public void printVersion()
      • printHelp

        public void printHelp()
                       throws java.lang.Exception
        Overrides:
        printHelp in class CLI
        Throws:
        java.lang.Exception
      • 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
        Overrides:
        getClient in class CLI
        Throws:
        java.lang.Exception
      • execute

        public void execute​(java.lang.String[] args)
                     throws java.lang.Exception
        Overrides:
        execute in class CLI
        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)