Keys Backup Service
Functions
Ask if the backup on the server contains keys that we may do not have locally. This should be called when entering in the state READY_TO_BACKUP
Check the server for an active key backup.
Create a new keys backup version and enable it, using the information return from prepareKeysBackupVersion.
Delete a keys backup version. It will delete all backed up keys on the server, and the backup itself. If we are backing up to this version. Backup will be stopped.
This method fetches the last backup version on the server, then compare to the currently backup version use. If versions are not the same, the current backup is deleted (on server or locally), then the backup may be started again, using the last version.
Return the current progress of the backup.
Retrieve the current version of the backup from the homeserver.
Check trust on a key backup version.
Facility method to get the number of backed up keys.
Facility method to get the total number of locally stored keys.
Get information about a backup version defined on the homeserver.
Set up the data required to create a new backup version. The backup version will not be created and enabled until createKeysBackupVersion is called. The returned MegolmBackupCreationInfo object has a recoveryKey
member with the user-facing recovery key string.
Restore a backup with a password from a given backup version stored on the homeserver.
Restore a backup with a recovery key from a given backup version stored on the homeserver.
Set trust on a keys backup version. It adds (or removes) the signature of the current device to the authentication part of the keys backup version.
Set trust on a keys backup version.
Set trust on a keys backup version.