LegacyEncryptedFileKeyStore

class LegacyEncryptedFileKeyStore(identifier: String, aliasName: String = ORG_FORGEROCK_V_1_KEY_STORE_MASTER_KEY_ALIAS)

Provides access to encrypted file-based key stores created by the Legacy SDK.

This class manages encrypted files that store cryptographic keys or sensitive data from the Legacy SDK. It acts as a wrapper around LegacyEncryptedFile to provide convenient methods for reading, checking existence, and deleting legacy encrypted key store files during migration.

The Legacy SDK stored application pin authentication keys in encrypted files within the app's internal storage directory. This class provides the necessary abstraction to:

  • Read the encrypted key data for migration to the new storage format

  • Check if a legacy key store exists before attempting migration

  • Clean up legacy files after successful migration

See also

Constructors

Link copied to clipboard
constructor(identifier: String, aliasName: String = ORG_FORGEROCK_V_1_KEY_STORE_MASTER_KEY_ALIAS)

Functions

Link copied to clipboard
fun delete(context: Context)

Deletes the legacy key store file from the file system.

Link copied to clipboard
fun exist(context: Context): Boolean

Checks if the legacy key store file exists in the file system.

Link copied to clipboard

Opens an input stream to read the decrypted contents of the legacy key store file.