setPassword

fun setPassword(password: String)

Sets the password for the password-based backup method.

This function updates the stored password within the backup options. It accesses the PasswordStorage associated with the BackupMethods.Password key in the backupOptions map. If a PasswordStorage instance exists, it updates its password property with the provided password. If no PasswordStorage is found for the password backup method, the operation has no effect.

Parameters

password

The new password to be set.