Skip to content

createEncryptionSession

@JvmOverloads

fun createEncryptionSession(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

recipientsThe Seald IDs with the associated rights of users to retrieve this session.
useCacheWhether or not to use the cache (if enabled globally).

Throws

SealdException