文档管理中心
API参考线上快速身份验证服务AndroidFIDO2com.huawei.hms.support.api.fido.fido2Class SummaryFido2Extension

Fido2Extension

展开

Class Info

public final class Fido2Extension

扩展定义。

Public Field Summary

展开

Qualifier and Type

Field and Description

public static final int

SPEC_W3C_WEBAUTHN

W3C WebAuthn

public static final int

SPEC_HMS

HMS。

public static final int

API_REGISTRATION

注册API。

public static final int

API_AUTHENTICATION

认证API。

public static final int

COMPONENT_CLIENT

FIDO2客户端。

public static final int

COMPONENT_PLATFORM_AUTHENTICATOR

平台认证器。

public static final int

COMPONENT_ROAMING_AUTHENTICATOR

漫游认证器。

public static final Fido2Extension

HMS_RA_C_PACL_01

多平台认证器选择策略。针对注册和认证API都有效。通过getIdentifier()获取唯一标识,作为扩展项的key。Value为List<String>,填入AuthenticatorMetadata.getAaguid()。

public static final Fido2Extension

HMS_R_PA_CIBBE_01

认证凭据在录入指纹或面容时是否失效。针对注册API有效,仅平台认证器(指纹、3D面容)支持。通过getIdentifier()获取唯一标识,作为扩展项的key。Value为Boolean类型。不传值或者true表示录入指纹或面容时会失效,false表示不失效。录入指纹和面容的操作分别独立处理,互不影响。

public static final Fido2Extension

W3C_WEBAUTHN_UVI

是否识别指纹ID。针对注册和认证API都有效,仅指纹平台认证器支持。使用该扩展项时,不支持使用锁屏密码认证。通过getIdentifier()获取唯一标识,作为扩展项的key。Value为Boolean类型。

Public Method Summary

展开

Qualifier and Type

Method Name and Description

public String

getName()

获取名称。

public String

getIdentifier()

获取唯一标识。

public int

getVersion()

获取版本。

public int

getSpecification()

获取类型,W3C定义,还是HMS定义。

public int

getApis()

获取支持的API。

public int

getComponents()

获取支持的组件。

public boolean

isApplicableComponent(int component)

是否适用于特定组件。

public boolean

isApplicableApi(int api)

是否适用于特定API。

Public Field

SPEC_W3C_WEBAUTHN

展开

Field

public static final int SPEC_W3C_WEBAUTHN

canAuth接口返回值:0

W3C WebAuthn其余常量值参阅:Constant-values

SPEC_HMS

展开

Field

public static final int SPEC_HMS

canAuth接口返回值:1

HMS其余常量值参阅:Constant-values

API_REGISTRATION

展开

Field

public static final int API_REGISTRATION

canAuth接口返回值:1

注册API。其余常量值参阅:Constant-values

API_AUTHENTICATION

展开

Field

public static final int API_AUTHENTICATION

canAuth接口返回值:2

认证API。其余常量值参阅:Constant-values

COMPONENT_CLIENT

展开

Field

public static final int COMPONENT_CLIENT

canAuth接口返回值:1

FIDO2客户端。其余常量值参阅:Constant-values

COMPONENT_PLATFORM_AUTHENTICATOR

展开

Field

public static final int COMPONENT_PLATFORM_AUTHENTICATOR

canAuth接口返回值:2

平台认证器。其余常量值参阅:Constant-values

COMPONENT_ROAMING_AUTHENTICATOR

展开

Field

public static final int COMPONENT_ROAMING_AUTHENTICATOR

canAuth接口返回值:4

漫游认证器。其余常量值参阅:Constant-values

HMS_RA_C_PACL_01

展开

Field

public static final int HMS_RA_C_PACL_01

canAuth接口返回值:Fido2Extension("pacl",1,3,1,1)

多平台认证器选择策略。针对注册和认证API都有效。通过getIdentifier()获取唯一标识,作为扩展项的key。Value为List<String>,填入AuthenticatorMetadata.getAaguid()。其余常量值参阅:Constant-values

HMS_R_PA_CIBBE_01

展开

Field

public static final int HMS_R_PA_CIBBE_01

canAuth接口返回值:Fido2Extension("cibbe",1,1,2,1)

认证凭据在录入指纹或面容时是否失效。针对注册API有效,仅平台认证器(指纹、3D面容)支持。通过getIdentifier()获取唯一标识,作为扩展项的key。Value为Boolean类型。不传值或者true表示录入指纹或面容时会失效,false表示不失效。录入指纹和面容的操作分别独立处理,互不影响。其余常量值参阅:Constant-values

W3C_WEBAUTHN_UVI

展开

Field

public static final int HMS_R_PA_CIBBE_01

canAuth接口返回值:Fido2Extension("uvi",0,3,6,0)

是否识别指纹ID。针对注册和认证API都有效,仅指纹平台认证器支持。使用该扩展项时,不支持使用锁屏密码认证。通过getIdentifier()获取唯一标识,作为扩展项的key。Value为Boolean类型。其余常量值参阅:Constant-values

Public Methods

getName

展开

Method

public String getName()

获取名称。

Returns

展开

Type

Description

String

名称。

getIdentifier

展开

Method

public String getIdentifier()

获取唯一标识。

Returns

展开

Type

Description

String

唯一标识。

getVersion

展开

Method

public int getVersion()

获取版本。

Returns

展开

Type

Description

int

版本。

getSpecification

展开

Method

public int getSpecification()

获取类型,W3C WebAuthn定义,还是HMS定义。

Returns

展开

Type

Description

int

类型。

getApis

展开

Method

public int getApis()

获取支持的API。

Returns

展开

Type

Description

int

获取支持的API,按位存储。

getComponents

展开

Method

public int getComponents()

获取支持的组件。

Returns

展开

Type

Description

int

支持组件,按位存储。

isApplicableComponent

展开

Method

public boolean isApplicableComponent(int component)

是否适用于特定组件。

Parameters

展开

Name

Description

component

特定组件。

Returns

展开

Type

Description

boolean

是否适用。

isApplicableApi

展开

Method

public boolean isApplicableApi(int api)

是否适用于特定API。

Parameters

展开

Name

Description

api

特定API。

Returns

展开

Type

Description

boolean

是否适用。

在 API参考 中进行搜索
请输入您想要搜索的关键词