changeSDKPin

public abstract AsyncCompletableOperation changeSDKPin(CharArray newSdkPin)

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.

Throws

if the SDK is locked or was not unlocked with the unlockWithSDKPin function and com.futurae.sdk.public_api.common.SDKConfiguration.allowChangePinCodeWithBiometricUnlock is false.

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

if any of the specified arguments are invalid.

if the SDK detects corrupted storage. This state requires the SDK to reset or to perform launchAccountRecovery

if the SDK cannot access necessary cryptographic material or perform cryptographic operations

if the newSdkPin argument is missing or empty.

if the existing sdk PIN verification has failed 5 times.

if the associated API to the Futurae backend calls fail.