Class AutoConfigGenerateElasticPasswordHash
java.lang.Object
org.elasticsearch.cli.Command
org.elasticsearch.common.cli.EnvironmentAwareCommand
org.elasticsearch.common.cli.KeyStoreAwareCommand
org.elasticsearch.xpack.security.enrollment.tool.AutoConfigGenerateElasticPasswordHash
- All Implemented Interfaces:
Closeable,AutoCloseable
public class AutoConfigGenerateElasticPasswordHash
extends org.elasticsearch.common.cli.KeyStoreAwareCommand
This tool is not meant to be used in user facing CLI tools. It is called by the package installers only upon installation. It
- generates a random strong password for the elastic user/li>
- stores a salted hash of that password in the elasticsearch keystore, in the autoconfiguration.password_hash setting
-
Field Summary
Fields inherited from class org.elasticsearch.cli.Command
description, parser -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.elasticsearch.common.cli.KeyStoreAwareCommand
decryptKeyStore, readPasswordMethods inherited from class org.elasticsearch.common.cli.EnvironmentAwareCommand
createEnv, createEnv, executeMethods inherited from class org.elasticsearch.cli.Command
addShutdownHook, close, exit, main, mainWithoutErrorHandling, printAdditionalHelp, printUserException
-
Constructor Details
-
AutoConfigGenerateElasticPasswordHash
public AutoConfigGenerateElasticPasswordHash()
-
-
Method Details