Class Fido2RespondArgs.Builder

java.lang.Object
com.thalesgroup.gemalto.fido2.client.Fido2RespondArgs.Builder
Enclosing class:
Fido2RespondArgs

public static class Fido2RespondArgs.Builder extends Object
A builder for creating Fido2RespondArgs instances.
Since:
1.0.0
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setFido2Request

      public Fido2RespondArgs.Builder setFido2Request(@NonNull Fido2Request request)
      Sets the FIDO2 request to be processed.
      Parameters:
      request - The Fido2Request from the Relying Party. Must not be null.
      Returns:
      this builder for chaining.
      Since:
      1.0.0
    • setUiCallback

      public Fido2RespondArgs.Builder setUiCallback(@NonNull Fido2UiCallback uiCallback)
      Sets the callback for handling UI tasks that are delegated to the application.

      This includes tasks like displaying transaction confirmation or an authenticator selection list.

      Parameters:
      uiCallback - The UI callback implementation. Must not be null.
      Returns:
      this builder for chaining.
      Since:
      1.0.0
    • setPasscodeAuthenticatorCallback

      public Fido2RespondArgs.Builder setPasscodeAuthenticatorCallback(@Nullable PasscodeAuthenticatorCallback passcodeAuthenticatorCallback)
      Sets the callback for handling UI and logic related to the Passcode Authenticator.

      This is required if the Passcode Authenticator might be used for the operation.

      Parameters:
      passcodeAuthenticatorCallback - The callback for the Passcode Authenticator.
      Returns:
      this builder for chaining.
      Since:
      1.0.0
    • setBiometricAuthenticatorCallback

      public Fido2RespondArgs.Builder setBiometricAuthenticatorCallback(@Nullable BiometricAuthenticatorCallback biometricAuthenticatorCallback)
      Sets the callback for handling UI related to the Biometric Authenticator.
      Parameters:
      biometricAuthenticatorCallback - The callback for the Biometric Authenticator.
      Returns:
      this builder for chaining.
      Since:
      1.1.0
    • build

      @NonNull public Fido2RespondArgs build()
      Builds the Fido2RespondArgs instance.
      Returns:
      A new, configured Fido2RespondArgs object.
      Throws:
      IllegalArgumentException - if the required arguments (request, uiCallback) are not set.
      Since:
      1.0.0