public class ChangeFileEncryption extends Tool
| Constructor and Description |
|---|
ChangeFileEncryption() |
| Modifier and Type | Method and Description |
|---|---|
static void |
execute(java.lang.String dir,
java.lang.String db,
java.lang.String cipher,
char[] decryptPassword,
char[] encryptPassword,
boolean quiet)
Changes the password for a database.
|
static void |
main(java.lang.String... args)
Options are case sensitive.
|
void |
runTool(java.lang.String... args)
Run the tool with the given output stream and arguments.
|
isOption, printNoDatabaseFilesFound, setOut, showUsage, showUsageAndThrowUnsupportedOption, throwUnsupportedOptionpublic static void main(java.lang.String... args)
throws java.sql.SQLException
| [-help] or [-?] | Print the list of options |
| [-cipher type] | The encryption type (AES) |
| [-dir <dir>] | The database directory (default: .) |
| [-db <database>] | Database name (all databases if not set) |
| [-decrypt <pwd>] | The decryption password (if not set: not yet encrypted) |
| [-encrypt <pwd>] | The encryption password (if not set: do not encrypt) |
| [-quiet] | Do not print progress information |
args - the command line argumentsjava.sql.SQLExceptionpublic void runTool(java.lang.String... args)
throws java.sql.SQLException
Toolpublic static void execute(java.lang.String dir,
java.lang.String db,
java.lang.String cipher,
char[] decryptPassword,
char[] encryptPassword,
boolean quiet)
throws java.sql.SQLException
dir - the directory (. for the current directory)db - the database name (null for all databases)cipher - the cipher (AES)decryptPassword - the decryption password as a char arrayencryptPassword - the encryption password as a char arrayquiet - don't print progress informationjava.sql.SQLException