Move DB key management into account manager.

This commit is contained in:
akwizgran
2018-07-27 11:35:27 +01:00
parent 4a9977fa58
commit 6ca0339da2
13 changed files with 123 additions and 166 deletions

View File

@@ -13,14 +13,13 @@ public interface AccountManager {
@Nullable
SecretKey getDatabaseKey();
void setDatabaseKey(SecretKey k);
@Nullable
String getEncryptedDatabaseKey();
boolean storeEncryptedDatabaseKey(String hex);
boolean accountExists();
boolean createAccount(String password);
void deleteAccount();
boolean signIn(String password);
boolean changePassword(String oldPassword, String newPassword);
}