retrieveMultipleEncryptionSessions
fun retrieveMultipleEncryptionSessions(sessionIds: Array<String>, useCache: Boolean = true, lookupProxyKey: Boolean = false, lookupGroupKey: Boolean = true): Array<EncryptionSession>
Retrieve multiple encryption sessions with an Array of sessionIds, and return an Array of the associated EncryptionSession instances, with which you can then encrypt / decrypt multiple messages. The returned array of EncryptionSession instances is in the same order as the input array.
Return
The Array of retrieved EncryptionSession instances.
Parameters
sessionIds | The IDs of sessions to retrieve. |
useCache | Whether or not to use the cache (if enabled globally). |
lookupProxyKey | Whether or not to try retrieving the sessions via proxies. |
lookupGroupKey | Whether or not to try retrieving the sessions via groups. |
Throws
SealdException |