Package org.kiwiproject.ansible.vault
Class VaultRekeyCommand
java.lang.Object
org.kiwiproject.ansible.vault.VaultRekeyCommand
- All Implemented Interfaces:
OsCommand
Generates
ansible-vault rekey commands.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static VaultRekeyCommandfrom(VaultConfiguration configuration, String encryptedFilePath, String newVaultPasswordFilePath) Create an instance.Deprecated, for removal: This API element is subject to removal in a future version.parts()Returns a list containing the command and all its arguments, which can then be used to construct aProcessBuilder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kiwiproject.base.process.OsCommand
partsAsArray
-
Method Details
-
from
public static VaultRekeyCommand from(VaultConfiguration configuration, String encryptedFilePath, String newVaultPasswordFilePath) Create an instance.- Parameters:
configuration- theVaultConfigurationto useencryptedFilePath- path to the encrypted file to re-keynewVaultPasswordFilePath- path to the vault password file containing the new password- Returns:
- the command
-
getCommandParts
@Deprecated(since="3.1.0", forRemoval=true) @KiwiDeprecated(removeAt="4.0.0", reference="https://github.com/kiwiproject/kiwi/issues/1026", replacedBy="#parts") public List<String> getCommandParts()Deprecated, for removal: This API element is subject to removal in a future version.replaced byparts()- Returns:
- a list containing the command and its arguments
-
parts
Description copied from interface:OsCommandReturns a list containing the command and all its arguments, which can then be used to construct aProcessBuilder. -
builder
-
parts()