MLSClient

interface MLSClient

Inheritors

Functions

Link copied to clipboard
abstract suspend fun close()

Free up any resources and shutdown the client.

Link copied to clipboard
abstract suspend fun getCredentialRef(credentialType: CredentialType): CryptoCredentialRef?

Return a reference to the newest installed credential of the requested type.

Link copied to clipboard
abstract suspend fun getCredentialRefs(credentialType: CredentialType): List<CryptoCredentialRef>

Return references to all installed credentials of the requested type, newest first.

Link copied to clipboard

Get the default ciphersuite for the client. the Default ciphersuite is set when creating the mls client.

Link copied to clipboard
abstract suspend fun getGroupState(groupId: MLSGroupId): E2EIConversationState

Conversation E2EI verification status.

Link copied to clipboard
abstract suspend fun getPublicKey(): <Error class: unknown class><ByteArray, MLSCiphersuite>

Public key of the client's identity.

Link copied to clipboard
abstract suspend fun getUserIdentities(groupId: MLSGroupId, users: List<CryptoQualifiedID>): Map<String, List<WireIdentity>>

Get user identities in a conversation.

Link copied to clipboard
abstract suspend fun initializeBasicCredential()

Adds a Basic credential when this client has no credential for its default cipher suite.

Link copied to clipboard
abstract suspend fun <R> transaction(name: String = "mls-transaction", block: suspend (context: MlsCoreCryptoContext) -> R): R

Runs a block of code inside a CoreCrypto transaction.