retrieveMultipleEncryptionSessions method
Retrieve multiple encryption sessions with a List of sessionIds, and return a List of the associated EncryptionSession instances, with which you can then encrypt / decrypt multiple messages. The returned List of EncryptionSession instances is in the same order as the input List.
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 session via a proxy.
lookupGroupKey
- Whether or not to try retrieving the session via a group.
Returns the List of retrieved SealdEncryptionSession instances.
Implementation
List<SealdEncryptionSession> retrieveMultipleEncryptionSessions(
List<String> sessionIds,
{bool useCache = true,
bool lookupProxyKey = false,
bool lookupGroupKey = true}) {
return SealdEncryptionSession._fromCArray(
_retrieveMultipleEncryptionSessions(sessionIds,
useCache: useCache,
lookupProxyKey: lookupProxyKey,
lookupGroupKey: lookupGroupKey)
.pointer());
}