public interface RecoveryPolicy
For a simpler version check out SimpleRecoveryPolicy, this is for more advanced
use cases.
| Modifier and Type | Method and Description |
|---|---|
void |
handleBrokenContent(EncryptionProtocolException e,
java.lang.String keyHash,
java.lang.String base64Encrypted,
boolean userPasswordUsed,
ArmadilloSharedPreferences sharedPreferences)
When a value cannot be decrypted, this method will be called
|
void handleBrokenContent(EncryptionProtocolException e, java.lang.String keyHash, java.lang.String base64Encrypted, boolean userPasswordUsed, ArmadilloSharedPreferences sharedPreferences) throws SecureSharedPreferenceCryptoException
e - thrown exceptionkeyHash - hash of the key that was calledbase64Encrypted - encrypted data in base64 encodinguserPasswordUsed - if a user password was used to decrypt the storagesharedPreferences - currently used shared preference (be aware if you modify)SecureSharedPreferenceCryptoException - if you want to throw an exception, use or wrap in this typ