Class XiAction

    • Field Detail

      • session

        protected org.apache.karaf.shell.api.console.Session session
      • passwordResolver

        protected org.xipki.password.PasswordResolver passwordResolver
    • Constructor Detail

      • XiAction

        public XiAction()
    • Method Detail

      • resolvePassword

        protected char[] resolvePassword​(String passwordHint)
                                  throws org.xipki.password.PasswordResolverException
        Throws:
        org.xipki.password.PasswordResolverException
      • execute

        public Object execute()
                       throws Exception
        Specified by:
        execute in interface org.apache.karaf.shell.api.action.Action
        Throws:
        Exception
      • isTrue

        protected boolean isTrue​(Boolean bo)
      • embedFileContent

        protected org.xipki.util.ConfPairs embedFileContent​(org.xipki.util.ConfPairs confPairs)
                                                     throws IOException
        Throws:
        IOException
      • isEnabled

        protected static boolean isEnabled​(String enabledS,
                                           boolean defaultEnabled,
                                           String optionName)
      • readPasswordIfNotSet

        protected char[] readPasswordIfNotSet​(String password)
                                       throws IOException,
                                              org.xipki.password.PasswordResolverException
        Throws:
        IOException
        org.xipki.password.PasswordResolverException
      • readPasswordIfNotSet

        protected char[] readPasswordIfNotSet​(String prompt,
                                              String password)
                                       throws IOException,
                                              org.xipki.password.PasswordResolverException
        Throws:
        IOException
        org.xipki.password.PasswordResolverException
      • readPassword

        protected char[] readPassword()
                               throws IOException,
                                      org.xipki.password.PasswordResolverException
        Throws:
        IOException
        org.xipki.password.PasswordResolverException
      • readPassword

        protected char[] readPassword​(String prompt)
                               throws IOException,
                                      org.xipki.password.PasswordResolverException
        Throws:
        IOException
        org.xipki.password.PasswordResolverException
      • expandFilepath

        protected static String expandFilepath​(String path)
      • expandFilepath

        protected static File expandFilepath​(File file)
      • println

        protected void println​(String message)
      • print

        protected void print​(String message)
      • isBlank

        protected static boolean isBlank​(String str)
      • isNotBlank

        protected static boolean isNotBlank​(String str)
      • isEmpty

        protected static boolean isEmpty​(Collection<?> col)
      • isNotEmpty

        protected static boolean isNotEmpty​(Collection<?> col)
      • toBigInt

        protected static BigInteger toBigInt​(String str,
                                             boolean defaultHex)
      • encodeCert

        protected static byte[] encodeCert​(byte[] data,
                                           String encodeForm)
      • encodeCrl

        protected static byte[] encodeCrl​(byte[] data,
                                          String encodeForm)
      • encodeCsr

        protected static byte[] encodeCsr​(byte[] data,
                                          String encodeForm)
      • derPemEncode

        protected static byte[] derPemEncode​(byte[] data,
                                             String encodeForm,
                                             org.xipki.util.PemEncoder.PemLabel pemLabel)