| CLASS info |
| public interface Fido2Client |
| FIDO2 API入口。 |
| Type | Name | Desc |
| int | REGISTRATION_REQUEST | 注册请求码。 |
| int | AUTHENTICATION_REQUEST | 认证请求码。 |
| Return type | Method name |
| boolean | 是否可以使用FIDO2能力。 |
| void | getRegistrationIntent(Fido2RegistrationRequest request, NativeFido2RegistrationOptions options, Fido2IntentCallback callback) 常规应用获取用于启动注册功能的FIDO2Intent对象。 |
| void | getRegistrationIntent(PrivilegedFido2RegistrationRequest request, Fido2IntentCallback callback) 特权应用获取用于启动注册功能的FIDO2Intent对象。目前仅华为浏览器使用。开发者如果要使用,联系华为申请后才能正常使用。 |
| void | getAuthenticationIntent(Fido2AuthenticationRequest request, NativeFido2AuthenticationOptions options, Fido2IntentCallback callback) 常规应用获取用于启动认证功能的Fido2Intent对象。 |
| void | getAuthenticationIntent(PrivilegedFido2AuthenticationRequest request, Fido2IntentCallback callback); 特权应用获取用于启动认证功能的Fido2Intent对象。目前仅华为浏览器使用。开发者如果要使用,联系华为申请后才能正常使用。 |
| Fido2RegistrationResponse | getFido2RegistrationResponse(Intent data) 获取注册结果。 |
| Fido2AuthenticationResponse | getFido2AuthenticationResponse(Intent data) 获取认证结果。 |
| Constant |
| int REGISTRATION_REQUEST |
Fido2Intent#launchFido2Activity(Activity activity, int requestCode) requestCode的参数。值: 0 注册请求码。 |
| Constant |
| int AUTHENTICATION_REQUEST |
Fido2Intent#launchFido2Activity(Activity activity, int requestCode) requestCode的参数。值: 1 认证请求码。 |
| Method |
| boolean isSupported() |
| 是否可以启动FIDO2客户端。 |
Return
| Type | desc |
| Boolean | 是否可以使用FIDO2能力。 |
| Method |
| void getRegistrationIntent(Fido2RegistrationRequest request, NativeFido2RegistrationOptions options, Fido2IntentCallback callback) |
| 常规应用获取用于启动注册功能的Fido2Intent对象。 |
Parameters
| Parameter name | Parameter desc |
| request | 注册请求消息。 |
| options | 选项。 |
| callback | 回调对象。 |
| Method |
| void getRegistrationIntent(PrivilegedFido2RegistrationRequest request, Fido2IntentCallback callback) |
| 特权应用获取用于启动注册功能的Fido2Intent对象。目前仅华为浏览器使用。开发者如果要使用,联系华为申请后才能正常使用。 |
Parameters
| Parameter name | Parameter desc |
| request | 注册请求消息。 |
| callback | 回调对象,在主线程中执行。 |
| Method |
| void getAuthenticationIntent(Fido2AuthenticationRequest request, NativeFido2AuthenticationOptions options, Fido2IntentCallback callback) |
| 常规应用获取用于启动认证功能的Fido2Intent对象。 |
Parameters
| Parameter name | Parameter desc |
| request | 认证请求消息。 |
| options | 选项。 |
| callback | 回调对象,在主线程中执行。 |
| Method |
| void getAuthenticationIntent(PrivilegedFido2AuthenticationRequest request, Fido2IntentCallback callback); |
| 特权应用获取用于启动认证功能的Fido2Intent对象。目前仅华为浏览器使用。开发者如果要使用,联系华为申请后才能正常使用。 |
Parameters
| Parameter name | Parameter desc |
| request | 认证请求消息。 |
| callback | 回调对象,在主线程中执行。 |
| Method |
| Fido2RegistrationResponse getFido2RegistrationResponse(Intent data) |
| 获取注册结果。 |
Parameters
| Parameter name | Parameter desc |
| data | android.app.Activity#onActivityResult返回的Intent对象。 |
Return
| type | desc |
| Fido2RegistrationResponse | 注册结果。 |
| Method |
| Fido2AuthenticationResponse getFido2AuthenticationResponse(Intent data) |
| 获取认证结果。 |
Parameters
| Parameter name | Parameter desc |
| data | android.app.Activity#onActivityResult返回的Intent对象。 |
Return
| type | desc |
| Fido2AuthenticationResponse | 认证结果。 |