enrollAndSetupSDKPin

public final Unit enrollAndSetupSDKPin(String code, CharArray sdkPin, Callback<Unit> callback)

Unlocking function that enrolls the user and unlocks the SDK upon success. This method shall only be used on the first enrollment, if the device has no accounts enrolled beforehand. For subsequent enrollments, the enroll method shall be used instead. This function is only available when the SDK LockConfigurationType is set as SDK_PIN_WITH_BIOMETRICS_OPTIONAL.

Parameters

code

the activation code for the user’s enrollment.

sdkPin

the SDK PIN the user has provided to the app.

callback

used to receive the response of the enroll operation.

See also

Throws

if the SDK has not been initialized with LockConfigurationType.SDK_PIN_WITH_BIOMETRICS_OPTIONAL.

if any of the specified arguments are invalid.

if the Custom App PIN verification fails due to incorrect PIN.

if the SDK is unable to perform necessary cryptographic operations.

if the SDK already have an enrolled account.

FTApiPinMissingException

if the PIN is missing or empty.

if the associated API to the Futurae backend calls fail.