Skip to content

retrieveEncryptionSessionFromFileAsync

@JvmOverloads

suspend fun retrieveEncryptionSessionFromFileAsync(fileUri: String, useCache: Boolean = true, lookupProxyKey: Boolean = false, lookupGroupKey: Boolean = true): EncryptionSession

Retrieve an encryption session from a file URI, and returns the associated EncryptionSession instance, with which you can then encrypt / decrypt this file.

Return

The retrieved EncryptionSession.

Parameters

fileUriAny encrypted file belonging to the session to retrieve.
useCacheWhether or not to use the cache (if enabled globally).
lookupProxyKeyWhether or not to try retrieving the session via a proxy.
lookupGroupKeyWhether or not to try retrieving the session via a group.

Throws

SealdException