getInputStream
Opens an input stream to read the decrypted contents of the legacy key store file.
This method provides access to the decrypted data stored in the legacy encrypted file. The returned InputStream should be properly closed after use, preferably using Kotlin's use extension function.
Return
An InputStream for reading the decrypted file contents.
Parameters
context
The Android context used to access the file system and encryption keys.
Throws
if the encrypted file does not exist
if decryption fails
Example
val keyStore = LegacyEncryptedFileKeyStore("ORG_FORGEROCK_V_1_BIOMETRIC")
keyStore.getInputStream(context).use { input ->
val keyData = input.readBytes()
// Process the decrypted key data
}Content copied to clipboard