MLSClientProviderImpl

internal class MLSClientProviderImpl(rootKeyStorePath: String, userId: UserId, currentClientIdProvider: CurrentClientIdProvider, passphraseStorage: PassphraseStorage, userConfigRepository: UserConfigRepository, featureConfigRepository: FeatureConfigRepository, mlsTransportProvider: MLSTransportProvider, epochObserver: MLSEpochObserver, dispatchers: KaliumDispatcher = KaliumDispatcherImpl, processingScope: CoroutineScope, coreCryptoCentralFactory: suspend (String, ByteArray) -> CoreCryptoCentral = { rootDir, passphrase -> coreCryptoCentral(rootDir = rootDir, passphrase = passphrase) }) : MLSClientProvider, CryptoBackupExporter

Constructors

Link copied to clipboard
constructor(rootKeyStorePath: String, userId: UserId, currentClientIdProvider: CurrentClientIdProvider, passphraseStorage: PassphraseStorage, userConfigRepository: UserConfigRepository, featureConfigRepository: FeatureConfigRepository, mlsTransportProvider: MLSTransportProvider, epochObserver: MLSEpochObserver, dispatchers: KaliumDispatcher = KaliumDispatcherImpl, processingScope: CoroutineScope, coreCryptoCentralFactory: suspend (String, ByteArray) -> CoreCryptoCentral = { rootDir, passphrase -> coreCryptoCentral(rootDir = rootDir, passphrase = passphrase) })

Functions

Link copied to clipboard
open suspend override fun clearLocalFiles()
Link copied to clipboard
open suspend override fun exportCryptoDB(exportPath: String): Either<CoreFailure, CryptoBackupMetadata>

Exports the cryptographic database to the specified path and returns the metadata required for backup restoration.

Link copied to clipboard
open suspend override fun getCoreCrypto(clientId: ClientId? = null): Either<CoreFailure, CoreCryptoCentral>
Link copied to clipboard
open suspend override fun getMLSClient(clientId: ClientId? = null): Either<CoreFailure, MLSClient>
Link copied to clipboard
open suspend override fun getOrFetchMLSConfig(): Either<CoreFailure, SupportedCipherSuite>
Link copied to clipboard
open suspend override fun isMLSClientInitialised(): Boolean