getMigrationData

open suspend override fun getMigrationData(context: Context): LegacyExportedData

Converts all accounts and mechanisms held by the storageClient into a LegacyExportedData object ready for the migration pipeline.

Delegates to LegacyDataConverter.convertToLegacyExportedData, which serialises each account and mechanism using the ForgeRock SDK's own toJson() methods so that all mechanism types (OATH and Push) are handled automatically.

Return

LegacyExportedData containing all legacy mechanisms with nested account data.

Parameters

context

The Android application context.