合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
Interface Info |
|---|
public interface Fido2Client extends Fido2ClientCommon FIDO2 API入口,可调用Fido2类的getFido2Client(Activity activity)方法会返回Fido2Client类型的实例。 |
Qualifier and Type | Method Name and Description |
|---|---|
public void | getRegistrationIntent(PrivilegedFido2RegistrationRequest request, Fido2IntentCallback callback) 特权应用获取用于启动注册功能的Fido2Intent对象。 目前仅支持华为浏览器使用。 |
public void | getAuthenticationIntent(PrivilegedFido2AuthenticationRequest request, Fido2IntentCallback callback) 特权应用获取用于启动认证功能的Fido2Intent对象。 目前仅支持华为浏览器使用。 |
public void | isSupportedExAsync(Fido2IsSupportedExCallback callback) 是否可以使用FIDO2能力。 |
public void | hasPlatformAuthenticators(Fido2Callback<Boolean> callback) 指硬件上是否支持平台认证器,不代表认证器可用。 |
public void | getPlatformAuthenticators(Fido2Callback<Collection<AuthenticatorMetadata>> callback) 获取支持的平台认证器列表。 |
Method |
|---|
void getRegistrationIntent(PrivilegedFido2RegistrationRequest request, Fido2IntentCallback callback) 特权应用获取用于启动注册功能的Fido2Intent对象。目前仅支持华为浏览器使用。开发者如果要使用,联系华为申请后才能正常使用。 |
Parameters
Name | Description |
|---|---|
request | 注册请求消息。 |
callback | 回调对象,在主线程中执行。 |
Method |
|---|
void getAuthenticationIntent(PrivilegedFido2AuthenticationRequest request, Fido2IntentCallback callback) 特权应用获取用于启动认证功能的Fido2Intent对象。目前仅支持华为浏览器使用。开发者如果要使用,联系华为申请后才能正常使用。 |
Parameters
Name | Description |
|---|---|
request | 注册请求消息。 |
callback | 回调对象,在主线程中执行。 |
Method |
|---|
void isSupportedExAsync(Fido2IsSupportedExCallback callback) 是否可以启动FIDO2客户端。 |
Parameters
Name | Description |
|---|---|
callback | 回调对象。 |
Method |
|---|
void hasPlatformAuthenticators(Fido2Callback<Boolean> callback) 是否具有平台认证器。指硬件上是否支持,不代表认证器可用。需要进一步调用AuthenticatorMetadata.isAvailable()方法判断具体认证器是否可用。 |
Parameters
Name | Description |
|---|---|
callback | 回调对象。 |
Method |
|---|
void getPlatformAuthenticators(Fido2Callback<Collection<AuthenticatorMetadata>> callback) 获取支持的平台认证器列表。 |
Parameters
Name | Description |
|---|---|
callback | 回调对象。 |