public interface EncryptionProvider
| Modifier and Type | Method and Description |
|---|---|
void |
changePinCode(android.content.Context context,
java.lang.String oldPin,
java.lang.String newPin)
Changes the pin code if the old pin provided matches
|
void |
createPinCode(android.content.Context context,
java.lang.String pin)
Create a pin code from the provided input
|
Encrypter |
getEncrypter()
Returns the Encrypter for data being written to disk, which should be initialized in
startWithPassphrase(android.content.Context, java.lang.String). |
boolean |
hasPinCode(android.content.Context context)
Returns whether the user has created a pin code.
|
void |
logAccessTime()
Logs the time of access for deciding whether to re-prompt the user for a pin after having
been away from the app for longer than the lock time.
|
boolean |
needsAuth(android.content.Context context,
PinCodeConfig codeConfig)
Returns a boolean indicating whether authentication is needed.
|
void |
startWithPassphrase(android.content.Context context,
java.lang.String pin)
This method should attempt to initialize the Encrypter with the provided pin, otherwise it
should throw a
StorageAccessException |
boolean hasPinCode(android.content.Context context)
context - android contextvoid createPinCode(android.content.Context context,
java.lang.String pin)
context - android contextpin - the pin that the user enteredvoid changePinCode(android.content.Context context,
java.lang.String oldPin,
java.lang.String newPin)
context - android contextoldPin - user input for old pinnewPin - user input for the new pinboolean needsAuth(android.content.Context context,
PinCodeConfig codeConfig)
context - android contextcodeConfig - the pin config for the appvoid startWithPassphrase(android.content.Context context,
java.lang.String pin)
StorageAccessExceptioncontext - android contextpin - the pin input from the uservoid logAccessTime()
Encrypter getEncrypter()
startWithPassphrase(android.content.Context, java.lang.String).