DefaultStorageClientProvider

class DefaultStorageClientProvider(context: Context, storageClient: StorageClient = DefaultStorageClient(context)) : StorageClientProvider

A StorageClientProvider that reads data from the default DefaultStorageClient used by the ForgeRock Authenticator SDK.

This provider is intended for migration scenarios where authenticator data needs to be transferred from the legacy ForgeRock Authenticator storage into the unified SDK storage.

Parameters

context

The Android Context used to access shared preferences.

storageClient

The StorageClient to read legacy authenticator data from. Defaults to a new DefaultStorageClient instance.

Constructors

Link copied to clipboard
constructor(context: Context, storageClient: StorageClient = DefaultStorageClient(context))

Functions

Link copied to clipboard
open suspend override fun cleanUp(context: Context, backup: (context: Context) -> Unit)

Cleans up all legacy ForgeRock Authenticator SharedPreferences files after migration.