| java.lang.Object org.h2.tools.ChangePassword
ChangePassword | public class ChangePassword (Code) | | A tools to change, remove or set a file password of a database without
opening it.
|
Method Summary | |
public static void | execute(String dir, String db, String cipher, char[] decryptPassword, char[] encryptPassword, boolean quiet) Changes the password for a database.
The passwords must be supplied as char arrays and are cleaned in this method.
Parameters: dir - the directory (. | public static void | main(String[] args) The command line interface for this tool.
The options must be split into strings like this: "-db", "test",...
Options are case sensitive. |
execute | public static void execute(String dir, String db, String cipher, char[] decryptPassword, char[] encryptPassword, boolean quiet) throws SQLException(Code) | | Changes the password for a database.
The passwords must be supplied as char arrays and are cleaned in this method.
Parameters: dir - the directory (. for the current directory) Parameters: db - the database name (null for all databases) Parameters: cipher - the cipher (AES, XTEA) Parameters: decryptPassword - the decryption password as a char array Parameters: encryptPassword - the encryption password as a char array Parameters: quiet - don't print progress information throws: SQLException - |
main | public static void main(String[] args) throws SQLException(Code) | | The command line interface for this tool.
The options must be split into strings like this: "-db", "test",...
Options are case sensitive. The following options are supported:
- -help or -? (print the list of options)
- -dir database directory (the default is the current directory)
- -db database name (all databases if no name is specified)
- -cipher type (AES or XTEA)
- -decrypt password (null if the database is not encrypted)
- -encrypt password (null if the database should not be encrypted)
- -quiet does not print progress information
Parameters: args - the command line arguments throws: SQLException - |
|
|