Class VaultRekeyCommand

  • All Implemented Interfaces:
    OsCommand

    public class VaultRekeyCommand
    extends Object
    implements OsCommand
    Generates ansible-vault rekey commands.
    • Constructor Detail

      • VaultRekeyCommand

        public VaultRekeyCommand()
    • Method Detail

      • from

        public static VaultRekeyCommand from​(VaultConfiguration configuration,
                                             String encryptedFilePath,
                                             String newVaultPasswordFilePath)
        Create an instance.
        Parameters:
        configuration - the VaultConfiguration to use
        encryptedFilePath - path to the encrypted file to rekey
        newVaultPasswordFilePath - path to the vault password file containing the new password
        Returns:
        the command