Interface SetPasscodeCallback
public interface SetPasscodeCallback
A callback for programmatically providing a passcode to the SDK.
An instance of this callback is provided in the
PasscodeAuthenticatorCallback.setPasscode(boolean, com.thalesgroup.gemalto.fido2.client.Fido2OperationInfo, SetPasscodeCallback)
method.
- Since:
- 1.8.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels the ongoing passcode operation.voidonPasscodeProvided(byte[] passcode, byte[] updatePasscode) Provides the passcode(s) to the SDK to complete an operation.
-
Method Details
-
onPasscodeProvided
void onPasscodeProvided(@NonNull byte[] passcode, @Nullable byte[] updatePasscode) Provides the passcode(s) to the SDK to complete an operation.For enrollment and authentication, only the
passcodeparameter is required. For changing a passcode, bothpasscode(the old one) andupdatePasscode(the new one) are required.- Parameters:
passcode- The user's passcode for enrollment or authentication, or the user's old passcode for a change operation. Must not be null.updatePasscode- The user's new passcode. This should only be provided during a change passcode operation; otherwise, it should benull.- Since:
- 1.8.0
-
cancel
void cancel()Cancels the ongoing passcode operation.This will result in the
PasscodeAuthenticatorCallback.onError(com.thalesgroup.gemalto.fido2.Fido2Exception)method being called with a user cancellation error.- Since:
- 1.9.0
-