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.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
-
parts
Description copied from interface:OsCommandReturns a list containing the command and all its arguments, which can then be used to construct aProcessBuilder. -
builder
-