changeSDKPin

public final Unit changeSDKPin(CharArray newSdkPin, Callback<Unit> callback)

Change the Custom App PIN. This is a protected operation, so the SDK must be unlocked before calling this method.

Parameters

newSdkPin

the new Custom App PIN.

callback

used to receive the response of the operation.

Throws

if the SDK is configured with a LockConfigurationType other than SDK_PIN_WITH_BIOMETRICS_OPTIONAL.

if the SDK was not unlocked with the unlockWithSDKPin function.

if any of the specified arguments are invalid.

FTApiPinIncorrectException

if the newSdkPin argument is missing or empty.

FTApiDeviceArchivedException

if the PIN verification has failed 5 times.

if the associated API to the Futurae backend calls fail.