2 Haziran 2017 Cuma

FingerprintManagerCompat Sınıfı

Giriş
Bu sınıfı kullanabilmek için şu izin gerekir.
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
Biometric Donanım
Açıklaması şöyle
Biometrics never leave hardware-backed keystore (TEE). Apps use android Biometric API to authenticate the user. Biometric is verified by hardware-backed keystore which answers authentication result with success or failure to the API.
Açıklaması şöyle
Secrets that are bound to in-app biometric authentication are encrypted by the key that is generated & stored in TEE. Apps can also import cryptographic keys in TEE. Unless biometric authentication succeeds which is verified by TEE, TEE doesn't release keys of the querying app. This protection ensures that even if a malicious app compromises other apps, it won't be able to steal secrets of those apps without user authentication.
TEE kullanan File Based Encryption (FBE) Açıklaması şöyle
Açıklaması şöyle
All android 7+ devices are enrolled with File Based Encryption (FBE) that encrypts /data partition from first boot. FBE keys are bound to TEE and user screen lock authentication. On factory reset, TEE clears stored keys and OS wipes the data. At this point, even if your screen lock password is known, it's not possible to decrypt recovered data.
from metodu
Şöyle yaparız.
FingerprintManagerCompat fp = FingerprintManagerCompat.from(context);
isHadwareDetected metodu
Şöyle yaparız.
if (fp.isHardwareDetected() && fp.hasEnrolledFingerprints()) { 
  // Device supports fingerprint authentication and has registered a fingerprint
} 

Hiç yorum yok:

Yorum Gönder