| CLASS info |
| public class BioAuthnManager extends java.lang.Object |
| FIDO BioAuthn指纹认证是否可用API入口。 |
| Type | Name | Desc |
| int | BIO_AUTHN_SUCCESS | 未检测到错误。 |
| int | BIO_AUTHN_ERROR_HW_UNAVAILABLE | 硬件不可用。 |
| int | BIO_AUTHN_ERROR_NONE_ENROLLED | 用户没有注册任何指纹。 |
| int | BIO_AUTHN_ERROR_NO_HARDWARE | 没有指纹认证硬件。 |
| int | BIO_AUTHN_ERROR_UNSUPPORTED_OS_VER | 操作系统版本不支持指纹认证。 |
| Method name |
BioAuthnManager(android.content.Context context) 构造一个BioAuthnManager对象,这个对象用于调用 FIDO BioAuthn指纹认证是否可用API。 |
| Return type | Method name |
| int | canAuth() 确定是否可以使用指纹认证。 |
| Constant |
| public static final int BIO_AUTHN_SUCCESS |
canAuth接口返回值: 0 如果当前可以使用指纹(已注册且可用)。 |
| Constant |
| public static final int BIO_AUTHN_ERROR_HW_UNAVAILABLE |
canAuth接口返回值: 1 硬件不可用。 |
| Constant |
| public static final int BIO_AUTHN_ERROR_NONE_ENROLLED |
canAuth接口返回值: 11 用户没有注册任何指纹。 |
| Constant |
| public static final int BIO_AUTHN_ERROR_NO_HARDWARE |
canAuth接口返回值: 12 没有指纹认证硬件。 |
| Constant |
| public static final int BIO_AUTHN_ERROR_UNSUPPORTED_OS_VER |
canAuth接口返回值: 1004 操作系统版本不支持指纹认证。 |
| Method |
| public BioAuthnManager(android.content.Context context) |
| 构造一个BioAuthnManager对象,这个对象用于调用 FIDO BioAuthn指纹认证是否可用API。 |
Parameters
| Parameter name | Parameter desc |
| context | 安卓应用的 Context。 |
| Method |
| public int canAuth() |
| 确定是否可以使用指纹认证。 |
Return
| type | desc |
| int | BIO_AUTHN_SUCCESS 如果当前可以使用指纹认证(已注册且可用) BIO_AUTHN_ERROR_HW_UNAVAILABLE 如果硬件不可用;BIO_AUTHN_ERROR_NONE_ENROLLED 如果用户没有注册任何指纹 BIO_AUTHN_ERROR_NO_HARDWARE 如果没有指纹认证硬件 BIO_AUTHN_ERROR_UNSUPPORTED_OS_VER 操作系统版本不支持指纹认证 |