Interface AuthenticatorSelectionCallback


public interface AuthenticatorSelectionCallback
A callback for notifying the FIDO2 SDK about the user's choice of authenticator.

When multiple authenticators are available for a FIDO2 operation, the application uses this callback to inform the SDK which authenticator the user has selected.

Since:
1.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels the authenticator selection process.
    void
    Notifies the FIDO2 SDK that the user has selected an authenticator.
  • Method Details

    • onAuthenticatorSelected

      void onAuthenticatorSelected(int index)
      Notifies the FIDO2 SDK that the user has selected an authenticator.

      After this method is called, the FIDO2 SDK proceeds with the operation using the selected authenticator.

      Warning: If this method is called from the main UI thread, the FIDO2 SDK will continue its execution on that thread. To avoid blocking the UI, it is recommended to handle the selection logic off the main thread.

      Parameters:
      index - The index of the selected authenticator in the list provided to Fido2UiCallback.showAuthenticators(List, AuthenticatorSelectionCallback).
      Since:
      1.0.0
    • cancel

      void cancel()
      Cancels the authenticator selection process.

      This will terminate the ongoing FIDO2 operation that was waiting for authenticator selection.

      Since:
      1.0.0