- Пароль
- Пароль< /li>
Шаблон - Биометрический отпечаток пальца
- Биометрическое распознавание лица
- Биометрическое распознавание радужной оболочки глаза
- Биометрическое распознавание голоса
- Поведенческая биометрия
int BIOMETRIC_STRONG
Any biometric (e.g. fingerprint, iris, or face) on the device that meets or exceeds the requirements for Class 3 (formerly Strong), as defined by the Android CDD.
int BIOMETRIC_WEAK
Any biometric (e.g. fingerprint, iris, or face) on the device that meets or exceeds the requirements for Class 2 (formerly Weak), as defined by the Android CDD.
int DEVICE_CREDENTIAL
The non-biometric credential used to secure the device (i.e., PIN, pattern, or password).
UseCase:: Я создаю приложение, в котором после аутентификации мне нужно отправить на серверную часть, какой метод проверки использовался для проверки пользователя. Используя Android BiometricManager getAutheticationType, я получаю только информацию ниже, но мне нужна дополнительная классификация в соответствии с общим списком выше.
String authType = switch (result.getAuthenticationType()) {
case BiometricPrompt.AUTHENTICATION_RESULT_TYPE_BIOMETRIC -> "13";
case BiometricPrompt.AUTHENTICATION_RESULT_TYPE_DEVICE_CREDENTIAL -> "10";
case BiometricPrompt.AUTHENTICATION_RESULT_TYPE_UNKNOWN -> "10";
default -> "10";
};
Подробнее здесь: https://stackoverflow.com/questions/792 ... e-was-used