retrieveEncryptionSessionFromBytes
fun retrieveEncryptionSessionFromBytes(fileByteArray: ByteArray, useCache: Boolean = true, lookupProxyKey: Boolean = false, lookupGroupKey: Boolean = true): EncryptionSession
Retrieve an encryption session from a ByteArray, and returns the associated EncryptionSession instance, with which you can then encrypt / decrypt this file.
Return
The retrieved EncryptionSession.
Parameters
| fileByteArray | A ByteArray of an encrypted file belonging to the session 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. |
Throws
| SealdException |