cleanupLegacyDataStep
Creates the third and final migration step, which removes legacy authenticator data via the provided LegacyStorageProvider and closes the SQLite storage connections.
Execution order within this step:
Calls LegacyStorageProvider.cleanUp passing the backup callback. StorageClientProvider always invokes the callback first, then iterates and removes all accounts and mechanisms via the org.forgerock.android.auth.StorageClient API. Pass a no-op callback (the default) to skip backup.
Retrieves
SQLOathStoragefrom the migration state and callscloseDatabase().Retrieves
SQLPushStoragefrom the migration state and callscloseDatabase().
Any exception during cleanup is caught and logged — cleanup failures are non-critical and do not abort the migration or prevent the pipeline from emitting a success event.
Parameters
The same LegacyStorageProvider passed to startMigrationStep, used here to perform the actual cleanup of the legacy storage backend.
Forwarded from LegacyAuthenticationConfig.backup. Passed directly to LegacyStorageProvider.cleanUp so the provider can invoke it before clearing data. Defaults to a no-op, which skips backup.