Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caused by: android.security.KeyStoreException: User authentication required #2

Open
tansuangai2008 opened this issue Dec 6, 2021 · 0 comments

Comments

@tansuangai2008
Copy link

java.security.ProviderException: Keystore key generation failed
at android.security.keystore2.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey(AndroidKeyStoreKeyGeneratorSpi.java:413)
at javax.crypto.KeyGenerator.generateKey(KeyGenerator.java:612)
at com.example.android.biometricauth.CryptographyManagerImpl.getOrCreateSecretKey(CryptographyManager.kt:132)
at com.example.android.biometricauth.CryptographyManagerImpl.getInitializedCipherForEncryption(CryptographyManager.kt:85)
at com.example.android.biometricauth.MainActivity.authenticateToEncrypt(MainActivity.kt:101)
at com.example.android.biometricauth.MainActivity.access$authenticateToEncrypt(MainActivity.kt:30)
at com.example.android.biometricauth.MainActivity$onCreate$1.onClick(MainActivity.kt:53)
at android.view.View.performClick(View.java:7441)
at android.view.View.performClickInternal(View.java:7418)
at android.view.View.access$3700(View.java:835)
at android.view.View$PerformClick.run(View.java:28676)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7842)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant