public class AccountPrivateDbSQLHelper extends KDFIterationsAwareSQLOpenHelper
| Modifier and Type | Field and Description |
|---|---|
protected static String |
FIELD_KEY_COLUMN |
protected static String |
FIELD_VALUE_COLUMN |
protected static String |
PRIVATE_FIELDS_TABLE |
| Constructor and Description |
|---|
AccountPrivateDbSQLHelper(Context context,
int accountId,
String encryptionKeyInit) |
| Modifier and Type | Method and Description |
|---|---|
String |
addField(String key,
String value) |
void |
changePassword(String oldPassword,
String newPassword) |
static String |
getDatabaseName(int accountId) |
Map<String,String> |
getFields() |
boolean |
isOpen() |
void |
onCreate(net.sqlcipher.database.SQLiteDatabase db) |
void |
onUpgrade(net.sqlcipher.database.SQLiteDatabase db,
int oldVersion,
int newVersion) |
void |
open(String password) |
boolean |
removeField(String key) |
createKDFIterationHookprotected static final String PRIVATE_FIELDS_TABLE
protected static final String FIELD_KEY_COLUMN
protected static final String FIELD_VALUE_COLUMN
public static String getDatabaseName(int accountId)
public void onCreate(net.sqlcipher.database.SQLiteDatabase db)
onCreate in class net.sqlcipher.database.SQLiteOpenHelperpublic void onUpgrade(net.sqlcipher.database.SQLiteDatabase db,
int oldVersion,
int newVersion)
onUpgrade in class net.sqlcipher.database.SQLiteOpenHelperpublic boolean isOpen()
public void open(String password)
public String addField(String key, String value) throws net.sqlcipher.SQLException
net.sqlcipher.SQLExceptionpublic Map<String,String> getFields() throws net.sqlcipher.SQLException
net.sqlcipher.SQLExceptionpublic boolean removeField(String key) throws net.sqlcipher.SQLException
key - net.sqlcipher.SQLException