Class Fido2RespondArgs.Builder
java.lang.Object
com.thalesgroup.gemalto.fido2.client.Fido2RespondArgs.Builder
- Enclosing class:
- Fido2RespondArgs
A builder for creating
Fido2RespondArgs instances.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theFido2RespondArgsinstance.setBiometricAuthenticatorCallback(BiometricAuthenticatorCallback biometricAuthenticatorCallback) Sets the callback for handling UI related to the Biometric Authenticator.setFido2Request(Fido2Request request) Sets the FIDO2 request to be processed.setPasscodeAuthenticatorCallback(PasscodeAuthenticatorCallback passcodeAuthenticatorCallback) Sets the callback for handling UI and logic related to the Passcode Authenticator.setUiCallback(Fido2UiCallback uiCallback) Sets the callback for handling UI tasks that are delegated to the application.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setFido2Request
Sets the FIDO2 request to be processed.- Parameters:
request- TheFido2Requestfrom the Relying Party. Must not be null.- Returns:
thisbuilder for chaining.- Since:
- 1.0.0
-
setUiCallback
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:
thisbuilder 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:
thisbuilder 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:
thisbuilder for chaining.- Since:
- 1.1.0
-
build
Builds theFido2RespondArgsinstance.- Returns:
- A new, configured
Fido2RespondArgsobject. - Throws:
IllegalArgumentException- if the required arguments (request, uiCallback) are not set.- Since:
- 1.0.0
-