launchAccountRecovery
Function that Initializes the SDK bypassing FTCorruptedStateException and attempting to recover Accounts.
Parameters
the instance of your android Application class.
the SDKConfiguration instance.
used to confirm User-Presence if required by the SDKConfiguration
For LockConfigurationType.SDK_PIN_WITH_BIOMETRICS_OPTIONAL use WithSDKPin
For LockConfigurationType.BIOMETRICS_ONLY use WithBiometrics
For LockConfigurationType.BIOMETRICS_OR_DEVICE_CREDENTIALS use WithBiometricsOrDeviceCredentials
For LockConfigurationType.NONE use null
to get notified about the success or failure of this recovery operation.
Throws
if the provided SDKConfiguration is invalid. Please refer to the website guide to confirm your configuration is valid.
if sdkConfiguration uses setInvalidatedByBiometricChange(true) and no supported biometrics are available on the device, or LockConfigurationType.NONE is used.
if setInvalidatedByBiometricChange(false) with LockConfigurationType.BIOMETRICS_OR_DEVICE_CREDENTIALS and the device has no biometrics or lock credentials are available.
if the SDK is already initialized.
if SDK credentials provided are invalid
if the SDK cannot access necessary cryptographic material or perform cryptographic operations
if the account recovery fails, due to necessary preconditions (e.g. having accounts in the DB) or due to rejection by the API. Refer to subtypes for more specific error types.
if the API request fails. Refer to FTApiException subtypes for more specific errors.
Function that Initializes the SDK bypassing FTCorruptedStateException and attempting to recover Accounts for LockConfigurationType.NONE
Parameters
the instance of your android Application class.
the SDKConfiguration instance.
Throws
if the SDK is locked. Currently this operation is only supported for LockConfigurationType.NONE which is unaffected by this.
if the provided SDKConfiguration is invalid. Please refer to the website guide to confirm your configuration is valid.
if sdkConfiguration uses setInvalidatedByBiometricChange(true) and no supported biometrics are available on the device, or LockConfigurationType.NONE is used.
if setInvalidatedByBiometricChange(false) with LockConfigurationType.BIOMETRICS_OR_DEVICE_CREDENTIALS and the device has no biometrics or lock credentials are available.
if the SDK is already initialized.
if the SDK cannot access necessary cryptographic material or perform cryptographic operations
if the account recovery fails, due to necessary preconditions (e.g. having accounts in the DB) or due to rejection by the API. Refer to subtypes for more specific error types.
if the API request fails. Refer to FTApiException subtypes for more specific errors.
Deprecated
Please use launchAccountRecovery with UserPresenceVerificationMode argument
Function that Initializes the SDK bypassing FTCorruptedStateException and attempting to recover Accounts. Recovery via this method is only available for LockConfigurationType.NONE
Parameters
the instance of your android Application class.
the SDKConfiguration instance.
to get notified about the success or failure of this recovery operation.
Throws
if the SDK is locked. Currently this operation is only supported for LockConfigurationType.NONE which is unaffected by this.
if the provided SDKConfiguration is invalid. Please refer to the website guide to confirm your configuration is valid.
if sdkConfiguration uses setInvalidatedByBiometricChange(true) and no supported biometrics are available on the device, or LockConfigurationType.NONE is used.
if setInvalidatedByBiometricChange(false) with LockConfigurationType.BIOMETRICS_OR_DEVICE_CREDENTIALS and the device has no biometrics or lock credentials are available.
if the SDK is already initialized.
if the SDK cannot access necessary cryptographic material or perform cryptographic operations
if the account recovery fails, due to necessary preconditions (e.g. having accounts in the DB) or due to rejection by the API. Refer to subtypes for more specific error types.
if the API request fails. Refer to FTApiException subtypes for more specific errors.
if SDK credentials provided are invalid