Skip to content
Sur cette page

createEncryptionSession

@JvmOverloads

fun createEncryptionSession(recipients: Array<String>, useCache: Boolean = true): EncryptionSession

Create an encryption session, and returns the associated EncryptionSession instance, with which you can then encrypt / decrypt multiple messages. Warning : if you want to be able to retrieve the session later, you must put your own UserId in the recipients argument.

Return

The created EncryptionSession.

Parameters

recipientsThe Seald IDs of users who should be able to retrieve this session.
useCacheWhether or not to use the cache (if enabled globally).

Throws

Exception