Skip to content
On this page

retrieveEncryptionSessionFromMessage

@JvmOverloads

fun retrieveEncryptionSessionFromMessage(message: String, useCache: Boolean = true): EncryptionSession

Retrieve an encryption session from a seald message, and returns the associated EncryptionSession instance, with which you can then encrypt / decrypt multiple messages.

Return

The retrieved EncryptionSession.

Parameters

messageAny message belonging to the session to retrieve.
useCacheWhether or not to use the cache (if enabled globally).

Throws

Exception