I am trying to implement the FingerPrint API for my application. I am following the Google's Fingerprint Dialog sample for this purpose.
It works fine if compileSdkVersion=23
and minSdkVersion=23
but my application's compileSdkVersion
is 21 and minSdkVersion
is 14. For this purpose, I am using FingerprintManagerCompat
instead of FingerprintManager
which works fine but the issue is with the Key generation.
android.security.keystore.KeyGenParameterSpec;
android.security.keystore.KeyPermanentlyInvalidatedException;
android.security.keystore.KeyProperties;
Keystore package and its classes are not available to generate the key, all the supported algorithms for the key generation available in 18+ API versions, anybody can guide me how to generate the key to support lower versions, please?