Class Keytool


  • public class Keytool
    extends Java
    A helper class for the keytool utility.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • Keytool

        public Keytool()
    • Method Detail

      • isAvailable

        public static boolean isAvailable()
        Checks whether keytool is available at all.
        Returns:
        true if available
      • getExecutablePath

        public static String getExecutablePath()
        Returns the full path of the keytool executable, if possible.
        Returns:
        the full path of the executable if possible, otherwise just the executable
      • execute

        public static String execute​(String options)
        Executes keytool and returns the output.
        Parameters:
        options - additional options for keytool
        Returns:
        the output
      • execute

        public static String execute​(String executable,
                                     String options)
        Executes the executable and returns the output.
        Parameters:
        executable - the jvisualvm executable to use
        options - additional options for jvisualvm
        Returns:
        the output