Package-level declarations

Types

Link copied to clipboard
sealed class EnrollE2EIResult
Link copied to clipboard

Issue an E2EI certificate and update the MLS client's X.509 credential.

Link copied to clipboard
internal class EnrollE2EIUseCaseImpl(e2EIRepository: E2EIRepository, userRepository: UserRepository, coroutineScope: CoroutineScope, conversationRepository: ConversationRepository, transactionProvider: CryptoTransactionProvider) : EnrollE2EIUseCase

Trigger the checking and updating MLS Conversations Verification status.

Link copied to clipboard

Check and update MLS Conversations Verification status. Notify user (by adding System message in conversation) if needed about changes.

Link copied to clipboard
internal class FetchMLSVerificationStatusUseCaseImpl(mlsClientProvider: MLSClientProvider, conversationRepository: ConversationRepository, persistMessage: PersistMessageUseCase, mlsConversationRepository: MLSConversationRepository, selfUserId: UserId, userRepository: UserRepository, kaliumLogger: KaliumLogger) : FetchMLSVerificationStatusUseCase
Link copied to clipboard

This use case is used to get the e2ei certificates of all the users in Conversation. Return Map where keys are UserId and values - nullable CertificateStatus of corresponding user.

Link copied to clipboard
Link copied to clipboard

This use case is used to get the e2ei certificate

Link copied to clipboard
Link copied to clipboard

This use case is used to get all MLSClientIdentities of the user. Returns Map where key is value of ClientId and MLSClientIdentity is certificate itself

Link copied to clipboard
internal class GetUserMlsClientIdentitiesUseCaseImpl(mlsConversationRepository: MLSConversationRepository, isMlsEnabledUseCase: IsMLSEnabledUseCase, transactionProvider: CryptoTransactionProvider) : GetUserMlsClientIdentitiesUseCase
Link copied to clipboard

This use case is used to get the e2ei certificate status of specific user

Link copied to clipboard
internal class IsOtherUserE2EIVerifiedUseCaseImpl(mlsConversationRepository: MLSConversationRepository, isE2EIEnabledUseCase: IsE2EIEnabledUseCase, userRepository: UserRepository, transactionProvider: CryptoTransactionProvider) : IsOtherUserE2EIVerifiedUseCase

Use case to observe certificate revocation for self client.

Observes all the MLS Conversations epoch changes and call to re-check Verification status.

Link copied to clipboard
internal typealias UserToWireIdentity = Map<UserId, List<WireIdentity>>
Link copied to clipboard
internal data class VerificationStatusData(val conversationId: ConversationId, val currentPersistedStatus: Conversation.VerificationStatus, val newStatus: Conversation.VerificationStatus)

Functions

Link copied to clipboard
internal fun List<WireIdentity>.isUserMLSVerified(nameAndHandle: NameAndHandle?): Boolean