createAnonymousEncryptionSessionAsync
suspend fun createAnonymousEncryptionSessionAsync(encryptionToken: String, getKeysToken: String, recipients: Array<String>, tmrRecipients: Array<AnonymousTmrRecipient>? = null): AnonymousEncryptionSession
Create an anonymous encryption session, and returns the associated AnonymousEncryptionSession instance, with which you can then encrypt / decrypt multiple messages.
Return
The created AnonymousEncryptionSession.
Parameters
encryptionToken | Mandatory. The JWT used for EncryptionSession creation. |
getKeysToken | Optional. The JWT used for the key retrieval. If not supplied, the key retrieval will use encryptionToken |
recipients | The Seald IDs of users to retrieve this session. |
tmrRecipients | Array of TMR recipients of the session to create. |
Throws
SealdException |