v2.0.3
This release will improve behavior of the library when KeyPermanentlyInvalidatedExceptions are thrown because the user has changed his lockscreen setup.
From this release on RxFingerprint will remove and renew the given key in the Android Keystore if a KeyPermanentlyInvalidatedException is thrown during encryption.
The overall behavior is unchanged:
- You receive a
onError
notification containing aKeyPermanentlyInvalidatedException
letting you know that you need to re-encrypt the users secrets. - The next time you call
RxFingerprint.encrypt()
the given key will now be renewed to make it usable again. (see issue #24 which raised the issue that it was not usable again before)
Fixes: