Package org.opensearch.common.settings
Class UpgradeKeyStoreCommand
java.lang.Object
org.opensearch.cli.Command
org.opensearch.cli.EnvironmentAwareCommand
org.opensearch.cli.KeyStoreAwareCommand
org.opensearch.common.settings.BaseKeyStoreCommand
org.opensearch.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 void
executeCommand(org.opensearch.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.opensearch.common.settings.BaseKeyStoreCommand
execute, getKeyStore, getKeyStorePassword
Methods inherited from class org.opensearch.cli.EnvironmentAwareCommand
createEnv, createEnv, execute
-
Method Details
-
executeCommand
protected void executeCommand(org.opensearch.cli.Terminal terminal, joptsimple.OptionSet options, Environment env) throws java.lang.ExceptionDescription copied from class:BaseKeyStoreCommand
This 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 extendingBaseKeyStoreCommand
usingBaseKeyStoreCommand.getKeyStore()
andBaseKeyStoreCommand.getKeyStorePassword()
respectively.- Specified by:
executeCommand
in classBaseKeyStoreCommand
- Throws:
java.lang.Exception
-