目录

CLASS info
public class BioAuthnManager extends java.lang.Object
Represents an entry point for the API for checking whether fingerprint authentication of FIDO BioAuthn is available.

Constant Summary

TypeNameDesc
intBIO_AUTHN_SUCCESSNo error is detected.
intBIO_AUTHN_ERROR_HW_UNAVAILABLEHardware is unavailable.
intBIO_AUTHN_ERROR_NONE_ENROLLEDThe user has not registered any fingerprints.
intBIO_AUTHN_ERROR_NO_HARDWARENo fingerprint authentication hardware is provided.
intBIO_AUTHN_ERROR_UNSUPPORTED_OS_VERThis version of operating system does not support fingerprint authentication.

Public Constructor Summary

Method name

BioAuthnManager(android.content.Context context)

Constructs a BioAuthnManager object, which is used to call the API for checking whether fingerprint authentication of FIDO BioAuthn is available.

Public Method Summary

Return typeMethod name
int

canAuth()

Checks whether fingerprint authentication is available.

Constants

Constant
public static final int BIO_AUTHN_SUCCESS

Returned by the canAuth API;

Value: 0

Fingerprint authentication is available (with registered fingerprints and available authentication hardware).

Constant
public static final int BIO_AUTHN_ERROR_HW_UNAVAILABLE

Returned by the canAuth API;

Value: 1

Hardware is unavailable.

Constant
public static final int BIO_AUTHN_ERROR_NONE_ENROLLED

Returned by the canAuth API;

Value: 11

The user has not registered any fingerprints.

Constant
public static final int BIO_AUTHN_ERROR_NO_HARDWARE

Returned by the canAuth API;

Value: 12

No fingerprint authentication hardware is provided.

Constant
public static final int BIO_AUTHN_ERROR_UNSUPPORTED_OS_VER

Returned by the canAuth API;

Value: 1004

This version of operating system does not support fingerprint authentication.

Public Constructors

Method
public BioAuthnManager(android.content.Context context)
Constructs a BioAuthnManager object, which is used to call the API for checking whether fingerprint authentication of FIDO BioAuthn is available.

Parameters

Parameter nameParameter desc
contextContext of an Android app.

Public Methods

Method
public int canAuth()
Checks whether fingerprint authentication is available.

Return

typedesc
int

BIO_AUTHN_SUCCES

Fingerprint authentication is available (with registered fingerprints and available authentication hardware).

BIO_AUTHN_ERROR_HW_UNAVAILABLE

Hardware is unavailable.

BIO_AUTHN_ERROR_NONE_ENROLLED

The user has not registered any fingerprints.

BIO_AUTHN_ERROR_NO_HARDWARE

No fingerprint authentication hardware is provided.

BIO_AUTHN_ERROR_UNSUPPORTED_OS_VER

This version of operating system does not support fingerprint authentication.