Class BootstrapUtil

java.lang.Object
org.elasticsearch.bootstrap.BootstrapUtil

public class BootstrapUtil extends Object
Utilities for use during bootstrap. This is public so that tests may use these methods.
  • Method Details

    • readPassphrase

      public static SecureString readPassphrase(InputStream stream, int maxLength) throws IOException
      Read from an InputStream up to the first carriage return or newline, returning no more than maxLength characters.
      Throws:
      IOException
    • loadSecureSettings

      public static SecureSettings loadSecureSettings(Environment initialEnv) throws org.elasticsearch.bootstrap.BootstrapException
      Throws:
      org.elasticsearch.bootstrap.BootstrapException
    • loadSecureSettings

      public static SecureSettings loadSecureSettings(Environment initialEnv, InputStream stdin) throws org.elasticsearch.bootstrap.BootstrapException
      Throws:
      org.elasticsearch.bootstrap.BootstrapException