| CLASS info |
| public interface Fido2Client |
| Defines FIDO2 APIs. |
| Type | Name | Desc |
| int | REGISTRATION_REQUEST | Registration request. |
| int | AUTHENTICATION_REQUEST | Authentication request. |
| Return type | Method name |
| boolean | Checks whether the FIDO2 capability is available. |
| void | getRegistrationIntent(Fido2RegistrationRequest request, NativeFido2RegistrationOptions options, Fido2IntentCallback callback) Obtains Fido2Intent for a app to start registration. |
| void | getRegistrationIntent(PrivilegedFido2RegistrationRequest request, Fido2IntentCallback callback) Obtains Fido2Intent for a privileged app to start registration.Currently, this class is available only for HUAWEI Browser. If you want to use this class, apply to Huawei for approval first. |
| void | getAuthenticationIntent(Fido2AuthenticationRequest request, NativeFido2AuthenticationOptions options, Fido2IntentCallback callback) Obtains Fido2Intent for a app to start authentication. |
| void | getAuthenticationIntent(PrivilegedFido2AuthenticationRequest request, Fido2IntentCallback callback); Obtains Fido2Intent for a privileged app to start authentication.Currently, this class is available only for HUAWEI Browser. If you want to use this class, apply to Huawei for approval first. |
| Fido2RegistrationResponse | getFido2RegistrationResponse(Intent data) Obtains the registration result. |
| Fido2AuthenticationResponse | getFido2AuthenticationResponse(Intent data) Obtains the authentication result. |
| Constant |
| int REGISTRATION_REQUEST |
Parameter requestCode in the launchFido2Activity(Activity activity, int requestCode) method of the Fido2Intent class.Value: 0 Registration request. |
| Constant |
| int AUTHENTICATION_REQUEST |
Parameter requestCode in the launchFido2Activity(Activity activity, int requestCode) method of the Fido2Intent class.Value: 1 Authentication request. |
| Method |
| boolean isSupported() |
| Checks whether the FIDO2 capability is available. |
Return
| type | desc |
| boolean | Whether the FIDO2 capability is available. |
| Method |
| void getRegistrationIntent(Fido2RegistrationRequest request, NativeFido2RegistrationOptions options, Fido2IntentCallback callback) |
| Obtains Fido2Intent for a common app to start registration. |
Parameters
| Parameter name | Parameter desc |
| request | Registration request. |
| options | Options. |
| callback | Callback object, which is executed in the main thread. |
Parameters
| Parameter name | Parameter desc |
| request | Registration request. |
| callback | Callback object, which is executed in the main thread. |
Parameters
| Parameter name | Parameter desc |
| request | Authentication request. |
| options | Options. |
| callback | Callback object, which is executed in the main thread. |
Parameters
| Parameter name | Parameter desc |
| request | Authentication request. |
| callback | Callback object, which is executed in the main thread. |
| Method |
| Fido2RegistrationResponse getFido2RegistrationResponse(Intent data) |
| Obtains the registration result. |
Parameters
| Parameter name | Parameter desc |
| data | Intent returned by the onActivityResult method of the android.app.Activity class. |
Return
| type | desc |
| Fido2RegistrationResponse | Registration result. |
| Method |
| Fido2AuthenticationResponse getFido2AuthenticationResponse(Intent data) |
| Obtains the authentication result. |
Parameters
| Parameter name | Parameter desc |
| data | Intent returned by the onActivityResult method of the android.app.Activity class. |
Return
| type | desc |
| Fido2AuthenticationResponse | Authentication result. |