LegacyAuthenticationConfig

Configuration for the legacy FR Authenticator data migration.

Configure via the DSL block passed to AuthMigration.start. All properties have sensible defaults for standard FR Authenticator installations — no block is required for most apps.

See also

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
var backup: (context: Context) -> Unit

An optional callback invoked during LegacyStorageProvider.cleanUp to back up legacy data before it is cleared. The callback receives the Android Context and is invoked by StorageClientProvider.cleanUp unconditionally — pass a no-op (the default) to skip backup. For custom LegacyStorageProvider implementations, the callback is forwarded via LegacyStorageProvider.cleanUp and it is the implementation's responsibility to invoke it.

Link copied to clipboard

Defines how the migration pipeline sources legacy data and performs cleanup. Defaults to StorageClientProvider, which reads directly from the legacy ForgeRock StorageClient. Override when your application stores authenticator data in a custom backend (e.g. a different org.forgerock.android.auth.StorageClient implementation, an encrypted database, or a remote store).

Link copied to clipboard

Logger instance used throughout the migration pipeline. Defaults to Logger.STANDARD.

Link copied to clipboard
var progress: FlowCollector<MigrationProgress>?

An optional FlowCollector that receives migration pipeline events.