public class ATAKDatabaseHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ATAKDatabaseHelper.KeyStatusListener |
Constructor and Description |
---|
ATAKDatabaseHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
changeKey(android.content.Context context) |
static void |
encryptDb(java.io.File ptFile,
java.io.File ctFile)
Handles the encryption and the re-encryption of an existing database.
|
static void |
promptForKey(android.content.Context context,
ATAKDatabaseHelper.KeyStatusListener ksl)
Prompts for a key from the user and tests the key to make sure it is valid.
|
static void |
removeDatabases() |
public static void promptForKey(android.content.Context context, ATAKDatabaseHelper.KeyStatusListener ksl)
context
- the application context.ksl
- the key status listener for when the key is entered properly.public static void removeDatabases()
public static void changeKey(android.content.Context context)
public static void encryptDb(java.io.File ptFile, java.io.File ctFile)
ptFile
- the file name for the unencrypted databasectFile
- the file name for the encrypted database