interface DotnetBackupManager
A manager for dotnet backups for easy backup creation, uploading and restoring. Callers are responsible for closing any streams that they provide!
createLocalBackup |
Creates a local backup and returns the information used for exporting. You need to save this information if you want to restore the backup! abstract fun createLocalBackup(agent: Agent, output: OutputStream): Single<String> |
createRemoteBackup |
Creates and uploads a backup to the cloud. Note that the internal file is deleted and you only get the key seed back. abstract fun createRemoteBackup(agent: Agent): Single<String> |
restoreLocalBackup |
Restores a local backup backed by the input stream, using the provided keySeed to decrypt the backup. To use the restored backup, you must open the wallet with the returned ID. abstract fun restoreLocalBackup(internalDirectoryPath: String, input: InputStream, keySeed: String, configuration: WalletConfiguration, credentials: WalletCredentials): Single<String> |
restoreRemoteBackup |
Restores a remote backup using the provided keySeed to create the backup retrieve message and to decrypt the backup. To use the restored backup, you must open the wallet with the returned ID. abstract fun restoreRemoteBackup(agent: Agent, keySeed: String, configuration: WalletConfiguration, credentials: WalletCredentials): Single<String> |
uploadBackup |
Uploads a backup backed by the input stream, using the keySeed to create the backup store message. If uploading a local backup, you probably want to use the same seed as used for creating it. abstract fun uploadBackup(agent: Agent, input: InputStream, keySeed: String): Completable |
DefaultDotnetBackupManager |
See DotnetBackupManager. class DefaultDotnetBackupManager : DotnetBackupManager |