KeyBackupServiceImpl

class KeyBackupServiceImpl(userInfo: UserInfo, accountStore: AccountStore, olmCryptoStore: OlmCryptoStore, keyStore: KeyStore, api: MatrixClientServerApiClient, signService: SignService, currentSyncState: CurrentSyncState, scope: CoroutineScope, driver: CryptoDriver) : KeyBackupService, EventHandler

Constructors

Link copied to clipboard
constructor(userInfo: UserInfo, accountStore: AccountStore, olmCryptoStore: OlmCryptoStore, keyStore: KeyStore, api: MatrixClientServerApiClient, signService: SignService, currentSyncState: CurrentSyncState, scope: CoroutineScope, driver: CryptoDriver)

Properties

Link copied to clipboard
open override val version: StateFlow<GetRoomKeysBackupVersionResponse.V1?>

This is the active key backup version. Is null, when the backup algorithm is not supported or there is no existing backup.

Functions

Link copied to clipboard
open suspend override fun bootstrapRoomKeyBackup(key: ByteArray, keyId: String, masterSigningPrivateKey: String, masterSigningPublicKey: String): Result<Unit>
Link copied to clipboard
open suspend override fun keyBackupCanBeTrusted(keyBackupVersion: GetRoomKeysBackupVersionResponse, privateKey: String): Boolean
Link copied to clipboard
open suspend override fun loadMegolmSession(roomId: RoomId, sessionId: String)
Link copied to clipboard
open override fun startInCoroutineScope(scope: CoroutineScope)