Class Keytool

java.lang.Object
org.elasticsearch.hadoop.cli.Keytool

public class Keytool extends Object
  • Method Details

    • main

      public static void main(String[] args)
    • execute

      public static int execute(Prompt console, String[] args)
    • run

      public int run(String arg, boolean stdin, boolean force) throws IOException
      Run the program with the given arguments
      Parameters:
      arg - Usually the name of the property to set. Can be empty for some commands
      stdin - Flag to state that the input should be read from stdin
      force - Flag to state that overwriting a key should be ignored
      Returns:
      exit code
      Throws:
      IOException
    • ksExists

      protected boolean ksExists()
    • openRead

      protected InputStream openRead() throws FileNotFoundException
      Throws:
      FileNotFoundException
    • openWrite

      protected OutputStream openWrite() throws IOException
      Throws:
      IOException