Class UpgradeKeyStoreCommand
java.lang.Object
org.elasticsearch.cli.Command
org.elasticsearch.cli.EnvironmentAwareCommand
org.elasticsearch.cli.KeyStoreAwareCommand
org.elasticsearch.common.settings.BaseKeyStoreCommand
org.elasticsearch.common.settings.UpgradeKeyStoreCommand
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class UpgradeKeyStoreCommand extends BaseKeyStoreCommand
A sub-command for the keystore CLI that enables upgrading the keystore format.
-
Field Summary
-
Method Summary
Modifier and Type Method Description protected voidexecuteCommand(org.elasticsearch.cli.Terminal terminal, joptsimple.OptionSet options, Environment env)This is called after the keystore password has been read from the stdin and the keystore is decrypted and loaded.Methods inherited from class org.elasticsearch.common.settings.BaseKeyStoreCommand
execute, getKeyStore, getKeyStorePasswordMethods inherited from class org.elasticsearch.cli.KeyStoreAwareCommand
decryptKeyStore, readPasswordMethods inherited from class org.elasticsearch.cli.EnvironmentAwareCommand
createEnv, createEnv, execute
-
Method Details
-
executeCommand
protected void executeCommand(org.elasticsearch.cli.Terminal terminal, joptsimple.OptionSet options, Environment env) throws java.lang.ExceptionDescription copied from class:BaseKeyStoreCommandThis is called after the keystore password has been read from the stdin and the keystore is decrypted and loaded. The keystore and keystore passwords are available to classes extendingBaseKeyStoreCommandusingBaseKeyStoreCommand.getKeyStore()andBaseKeyStoreCommand.getKeyStorePassword()respectively.- Specified by:
executeCommandin classBaseKeyStoreCommand- Throws:
java.lang.Exception
-