KeyServiceImpl

class KeyServiceImpl(userInfo: UserInfo, keyStore: KeyStore, olmCryptoStore: OlmCryptoStore, globalAccountDataStore: GlobalAccountDataStore, roomService: RoomService, signService: SignService, keyBackupService: KeyBackupService, keyTrustService: KeyTrustService, api: MatrixClientServerApiClient, matrixClientConfiguration: MatrixClientConfiguration, driver: CryptoDriver) : KeyService

Constructors

Link copied to clipboard
constructor(userInfo: UserInfo, keyStore: KeyStore, olmCryptoStore: OlmCryptoStore, globalAccountDataStore: GlobalAccountDataStore, roomService: RoomService, signService: SignService, keyBackupService: KeyBackupService, keyTrustService: KeyTrustService, api: MatrixClientServerApiClient, matrixClientConfiguration: MatrixClientConfiguration, driver: CryptoDriver)

Properties

Link copied to clipboard
open override val bootstrapRunning: StateFlow<Boolean>

Functions

Link copied to clipboard
open suspend override fun bootstrapCrossSigning(recoveryKey: ByteArray, secretKeyEventContent: SecretKeyEventContent): KeyService.BootstrapCrossSigning

This allows you to bootstrap cross signing. Be aware, that this could override an existing cross signing setup of the account. Be aware, that this also creates a new key backup, which could replace an existing key backup.

Link copied to clipboard

This allows you to bootstrap cross signing. Be aware, that this could override an existing cross signing setup of the account. Be aware, that this also creates a new key backup, which could replace an existing key backup.

Link copied to clipboard
open override fun getCrossSigningKeys(userId: UserId): Flow<List<CrossSigningKeys>?>
Link copied to clipboard
open override fun getDeviceKeys(userId: UserId): Flow<List<DeviceKeys>?>
Link copied to clipboard
open override fun getTrustLevel(userId: UserId): Flow<UserTrustLevel>
open override fun getTrustLevel(roomId: RoomId, eventId: EventId): Flow<DeviceTrustLevel?>
open override fun getTrustLevel(userId: UserId, deviceId: String): Flow<DeviceTrustLevel>