Package-level declarations

Types

Link copied to clipboard

Creates a crypto state backup and uploads it to the remote endpoint.

Link copied to clipboard
internal class BackupAndUploadCryptoStateUseCaseImpl(backupCryptoDBUseCase: BackupCryptoDBUseCase, cryptoStateBackupRemoteRepository: CryptoStateBackupRemoteRepository, kaliumFileSystem: KaliumFileSystem, currentClientIdProvider: CurrentClientIdProvider) : BackupAndUploadCryptoStateUseCase
Link copied to clipboard
internal object BackupConstants
Link copied to clipboard
sealed interface BackupCryptoDBResult
Link copied to clipboard

Performs the backup of the cryptographic database by exporting it, creating a metadata file, and packaging them into a ZIP file.

Link copied to clipboard
internal class BackupCryptoDBUseCaseImpl(userId: <Error class: unknown class>, cryptoTransactionProvider: CryptoTransactionProvider, kaliumFileSystem: KaliumFileSystem, dispatchers: <Error class: unknown class> = KaliumDispatcherImpl) : BackupCryptoDBUseCase
Link copied to clipboard
Link copied to clipboard
internal data class BackupMetadata(val platform: String, val version: String, val userId: String, val creationTime: String, val clientId: String?)
Link copied to clipboard
class BackupScope(userId: <Error class: unknown class>, clientIdProvider: CurrentClientIdProvider, userRepository: UserRepository, kaliumFileSystem: KaliumFileSystem, userStorage: <Error class: unknown class>, cryptoTransactionProvider: CryptoTransactionProvider, val globalPreferences: <Error class: unknown class>, cryptoStateBackupRemoteRepository: CryptoStateBackupRemoteRepository)
Link copied to clipboard
sealed class CreateBackupResult
Link copied to clipboard
Link copied to clipboard
internal class CreateBackupUseCaseImpl(userId: <Error class: unknown class>, clientIdProvider: CurrentClientIdProvider, userRepository: UserRepository, kaliumFileSystem: KaliumFileSystem, databaseExporter: <Error class: unknown class>, securityHelper: SecurityHelper, dispatchers: <Error class: unknown class> = KaliumDispatcherImpl, idMapper: <Error class: unknown class> = MapperProvider.idMapper()) : CreateBackupUseCase
Link copied to clipboard
Link copied to clipboard
internal class CreateMPBackupUseCaseImpl(backupRepository: BackupRepository, userRepository: UserRepository, kaliumFileSystem: KaliumFileSystem, fileSystem: <Error class: unknown class> = FileSystem.SYSTEM, exporterProvider: MPBackupExporterProvider = MPBackupExporterProviderImpl(), dispatchers: <Error class: unknown class> = KaliumDispatcherImpl) : CreateMPBackupUseCase
Link copied to clipboard
class CreateObfuscatedCopyUseCase(userId: <Error class: unknown class>, clientIdProvider: CurrentClientIdProvider, userRepository: UserRepository, kaliumFileSystem: KaliumFileSystem, obfuscatedCopyExporter: <Error class: unknown class>, dispatchers: <Error class: unknown class> = KaliumDispatcherImpl, idMapper: <Error class: unknown class> = MapperProvider.idMapper())

Creates an obfuscated copy of the user's data. TO BE USED FOR DEBUGGING PURPOSES ONLY.

Link copied to clipboard
data class CryptoStateBackupMetadata(val version: String, val clientId: String, val mlsDbPassphrase: String, val proteusDbPassphrase: String)
Link copied to clipboard
Link copied to clipboard

Downloads the crypto state backup from the remote endpoint.

Link copied to clipboard
internal class DownloadCryptoStateUseCaseImpl(userId: <Error class: unknown class>, cryptoStateBackupRemoteRepository: CryptoStateBackupRemoteRepository, kaliumFileSystem: KaliumFileSystem, dispatchers: <Error class: unknown class> = KaliumDispatcherImpl) : DownloadCryptoStateUseCase
Link copied to clipboard
Link copied to clipboard

Extracts the crypto state backup from a downloaded zip file.

Link copied to clipboard
internal class ExtractCryptoStateUseCaseImpl(kaliumFileSystem: KaliumFileSystem, kaliumDispatcher: <Error class: unknown class> = KaliumDispatcherImpl) : ExtractCryptoStateUseCase
Link copied to clipboard
class MultiPlatformBackupScope(selfUserId: <Error class: unknown class>, kaliumFileSystem: KaliumFileSystem, backupRepository: BackupRepository, userRepository: UserRepository)
Link copied to clipboard
sealed class RestoreBackupResult
Link copied to clipboard
Link copied to clipboard
internal class RestoreBackupUseCaseImpl(databaseImporter: <Error class: unknown class>, kaliumFileSystem: KaliumFileSystem, userId: <Error class: unknown class>, userRepository: UserRepository, currentClientIdProvider: CurrentClientIdProvider, dispatchers: <Error class: unknown class> = KaliumDispatcherImpl, idMapper: <Error class: unknown class> = MapperProvider.idMapper()) : RestoreBackupUseCase
Link copied to clipboard
Link copied to clipboard
internal class RestoreMPBackupUseCaseImpl(selfUserId: <Error class: unknown class>, backupRepository: BackupRepository, kaliumFileSystem: KaliumFileSystem, backupImporterProvider: MPBackupImporterProvider = MPBackupImporterProviderImpl(), dispatchers: <Error class: unknown class> = KaliumDispatcherImpl) : RestoreMPBackupUseCase
Link copied to clipboard
Link copied to clipboard

Sets the last device ID used for crypto state backup on the remote server. This is used to track which device last uploaded the crypto state.

Link copied to clipboard
internal class SetLastDeviceIdUseCaseImpl(currentClientIdProvider: CurrentClientIdProvider, cryptoStateBackupRemoteRepository: CryptoStateBackupRemoteRepository) : SetLastDeviceIdUseCase
Link copied to clipboard
sealed class VerifyBackupResult
Link copied to clipboard
Link copied to clipboard
internal class VerifyBackupUseCaseImpl(userId: <Error class: unknown class>, kaliumFileSystem: KaliumFileSystem, fileSystem: <Error class: unknown class> = FileSystem.SYSTEM, backupImporterProvider: MPBackupImporterProvider = MPBackupImporterProviderImpl(fileSystem), dispatchers: <Error class: unknown class> = KaliumDispatcherImpl) : VerifyBackupUseCase

Functions

Link copied to clipboard
internal fun BackupMetadata.isWebBackup(): Boolean