Package org.elasticsearch.bootstrap
Class BootstrapUtil
java.lang.Object
org.elasticsearch.bootstrap.BootstrapUtil
Utilities for use during bootstrap. This is public so that tests may use these methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SecureSettings
loadSecureSettings
(Environment initialEnv) static SecureSettings
loadSecureSettings
(Environment initialEnv, InputStream stdin) static SecureString
readPassphrase
(InputStream stream, int maxLength) Read from an InputStream up to the first carriage return or newline, returning no more than maxLength characters.
-
Method Details
-
readPassphrase
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
-