createEncryptionSessionAsync
suspend fun createEncryptionSessionAsync(recipients: Array<RecipientWithRights>, 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
recipients | The Seald IDs with the associated rights of users to retrieve this session. |
useCache | Whether or not to use the cache (if enabled globally). |
Throws
SealdException |