目录

Fido2Client

Interface Info

public interface Fido2Client extends Fido2ClientCommon

FIDO2 API entry. You can call the getFido2Client(Activity activity) method of the Fido2 class to obtain an instance of the Fido2Client type.

Public Method Summary

Qualifier and Type

Method Name and Description

public void

getRegistrationIntent(PrivilegedFido2RegistrationRequest request, Fido2IntentCallback callback)

Obtains Fido2Intent for a privileged app to start registration.

Currently, this method is available only for HUAWEI Browser.

public void

getAuthenticationIntent(PrivilegedFido2AuthenticationRequest request, Fido2IntentCallback callback)

Obtains Fido2Intent for a privileged app to start authentication.

Currently, this method is available only for HUAWEI Browser.

public void

isSupportedExAsync(Fido2IsSupportedExCallback callback)

Checks whether the FIDO2 capability is available.

public void

hasPlatformAuthenticators(Fido2Callback<Boolean> callback)

Checks whether a platform authenticator is provided. This method checks whether the device hardware supports the platform authenticator, but does not check whether the platform authenticator can be used.

public void

getPlatformAuthenticators(Fido2Callback<Collection<AuthenticatorMetadata>> callback)

Obtains a list of supported platform authenticators.

Public Methods

[h2]getRegistrationIntent(PrivilegedFido2RegistrationRequest request, Fido2IntentCallback callback)

Method

void getRegistrationIntent(PrivilegedFido2RegistrationRequest request, Fido2IntentCallback callback)

Obtains Fido2Intent for a privileged app to start registration. Currently, this method is available only for HUAWEI Browser. If you want to use this method, apply to Huawei for approval first.

Parameters

Name

Description

request

Registration request.

callback

Callback object, which is executed in the main thread.

[h2]getAuthenticationIntent(PrivilegedFido2AuthenticationRequest request, Fido2IntentCallback callback)

Method

void getAuthenticationIntent(PrivilegedFido2AuthenticationRequest request, Fido2IntentCallback callback)

Obtains Fido2Intent for a privileged app to start authentication. Currently, this method is available only for HUAWEI Browser. If you want to use this method, apply to Huawei for approval first.

Parameters

Name

Description

request

Registration request.

callback

Callback object, which is executed in the main thread.

[h2]isSupportedExAsync

Method

void isSupportedExAsync(Fido2IsSupportedExCallback callback)

Checks whether the FIDO2 capability is available.

Parameters

Name

Description

callback

Callback object.

[h2]hasPlatformAuthenticators

Method

void hasPlatformAuthenticators(Fido2Callback<Boolean> callback)

Checks whether a platform authenticator is provided. This method checks whether the device hardware supports the platform authenticator, but does not check whether the platform authenticator can be used. You need to call the AuthenticatorMetadata.isAvailable() method to check whether the platform authenticator can be used.

Parameters

Name

Description

callback

Callback object.

[h2]getPlatformAuthenticators

Method

void getPlatformAuthenticators(Fido2Callback<Collection<AuthenticatorMetadata>> callback)

Obtains a list of supported platform authenticators.

Parameters

Name

Description

callback

Callback object.