admin管理员组文章数量:1432230
I need to identify which of the following was exactly used to authenticate user:
- Passcode
- Password
- Pattern
- Biometric fingerprint
- Biometric facial recognition
- Biometric iris recognition
- Biometric voice recognition
- Behavioral biometric
Right now, I am just able to differentiate between the DEVICE_CREDENTIAL and BIOMETRIC_STRONG based on below
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:: I am building an application in which after authentication I need to send what verification method was used to verify the user to the backend. Using android BiometricManager getAutheticationType I just get below info but I need further classification asper above shared list.
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";
};
I need to identify which of the following was exactly used to authenticate user:
- Passcode
- Password
- Pattern
- Biometric fingerprint
- Biometric facial recognition
- Biometric iris recognition
- Biometric voice recognition
- Behavioral biometric
Right now, I am just able to differentiate between the DEVICE_CREDENTIAL and BIOMETRIC_STRONG based on below
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:: I am building an application in which after authentication I need to send what verification method was used to verify the user to the backend. Using android BiometricManager getAutheticationType I just get below info but I need further classification asper above shared list.
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";
};
Share
Improve this question
edited Nov 20, 2024 at 9:14
Go For Pro
asked Nov 19, 2024 at 11:54
Go For ProGo For Pro
871 silver badge10 bronze badges
2
- 1 Used for what? What is the use case? Provide more context to the question. – aled Commented Nov 19, 2024 at 12:25
- updated usecase – Go For Pro Commented Nov 20, 2024 at 9:15
1 Answer
Reset to default 0Sorry, but what you want is not supported by Android.
本文标签: javaHow to determine what exact authentication type was usedStack Overflow
版权声明:本文标题:java - How to determine what exact authentication type was used? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745563730a2663633.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论