Skip to content

createAnonymousEncryptionSession

@JvmOverloads

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

encryptionTokenMandatory. The JWT used for EncryptionSession creation.
getKeysTokenOptional. The JWT used for the key retrieval. If not supplied, the key retrieval will use encryptionToken
recipientsThe Seald IDs of users to retrieve this session.
tmrRecipientsArray of TMR recipients of the session to create.

Throws

SealdException