Skip to content
Sur cette page

retrieveEncryptionSessionFromBytes

@JvmOverloads

fun retrieveEncryptionSessionFromBytes(fileByteArray: ByteArray, useCache: 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

fileByteArrayA ByteArray of an encrypted file belonging to the session to retrieve.
useCacheWhether or not to use the cache (if enabled globally).

Throws

Exception