Autopsy
4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.
Public Member Functions | |
PostgresCentralRepoSettings (PostgresSettingsLoader loader) | |
PostgresCentralRepoSettings () throws CentralRepoException | |
boolean | createDatabase () |
boolean | deleteDatabase () |
String | getDbName () |
String | getHost () |
String | getPassword () |
int | getPort () |
String | getUserName () |
void | loadSettings () |
void | saveSettings () |
void | setBulkThreshold (int bulkThreshold) throws CentralRepoException |
void | setDbName (String dbName) throws CentralRepoException |
void | setHost (String host) throws CentralRepoException |
void | setPassword (String password) throws CentralRepoException |
void | setPort (int port) throws CentralRepoException |
void | setUserName (String userName) throws CentralRepoException |
DatabaseTestResult | testStatus () |
String | toString () |
boolean | verifyConnection () |
boolean | verifyDatabaseExists () |
boolean | verifyDatabaseSchema () |
Static Private Member Functions | |
static PostgresSettingsLoader | getLoaderFromSaved () throws CentralRepoException |
Private Attributes | |
PostgresConnectionSettings | connSettings |
final PostgresSettingsLoader | loader |
Static Private Attributes | |
static final String | JDBC_BASE_URI = "jdbc:postgresql://" |
static final String | JDBC_DRIVER = "org.postgresql.Driver" |
static final Logger | LOGGER = Logger.getLogger(PostgresCentralRepoSettings.class.getName()) |
static final String | VALIDATION_QUERY = "SELECT version()" |
Settings for the Postgres implementation of the Central Repository database
NOTE: This is public scope because the options panel calls it directly to set/get
Definition at line 37 of file PostgresCentralRepoSettings.java.
org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.PostgresCentralRepoSettings | ( | PostgresSettingsLoader | loader | ) |
This method loads the settings with a custom PostgresSettingsLoader object.
loader | The loader to be used. |
Definition at line 62 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.loader, and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.loadSettings().
org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.PostgresCentralRepoSettings | ( | ) | throws CentralRepoException |
This is the default constructor that loads settings from selected db choice.
Definition at line 70 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getLoaderFromSaved().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.createDatabase | ( | ) |
This method will create a central repository database if necessary.
Implements org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.
Definition at line 235 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getDbName(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getUserName().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.deleteDatabase | ( | ) |
This method deletes a central repository database (used for deleting a corrupted database).
Implements org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.
Definition at line 257 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closeConnection(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getDbName().
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getDbName | ( | ) |
To prevent issues where one command can honor case and another cannot, we will force the dbname to lower case.
Definition at line 313 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.getDbName().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.createDatabase(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.deleteDatabase(), org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.load(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.toString(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyDatabaseExists().
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getHost | ( | ) |
Definition at line 282 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.getHost().
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.load(), org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.onMultiUserChange(), org.sleuthkit.autopsy.integrationtesting.IntegrationTestService.pushCentralRepoSettings(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.toString(), and org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.updatePostgresFields().
|
staticprivate |
Definition at line 48 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresSettingsLoader.CUSTOM_SETTINGS_LOADER, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getSavedDbChoice(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresSettingsLoader.MULTIUSER_SETTINGS_LOADER, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.POSTGRESQL_CUSTOM, and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.POSTGRESQL_MULTIUSER.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.PostgresCentralRepoSettings().
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getPassword | ( | ) |
Definition at line 355 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.getPassword().
Referenced by org.sleuthkit.autopsy.integrationtesting.IntegrationTestService.pushCentralRepoSettings(), and org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.updatePostgresFields().
int org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getPort | ( | ) |
Definition at line 296 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.getPort().
Referenced by org.sleuthkit.autopsy.integrationtesting.IntegrationTestService.pushCentralRepoSettings(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.toString(), and org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.updatePostgresFields().
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getUserName | ( | ) |
Definition at line 341 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.getUserName().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.createDatabase(), org.sleuthkit.autopsy.integrationtesting.IntegrationTestService.pushCentralRepoSettings(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.toString(), and org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.updatePostgresFields().
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.loadSettings | ( | ) |
This method loads the current settings for this connection.
Implements org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.
Definition at line 76 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresSettingsLoader.loadSettings().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.PostgresCentralRepoSettings().
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.saveSettings | ( | ) |
This method saves the altered settings to disk.
Implements org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.
Definition at line 81 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresSettingsLoader.saveSettings().
Referenced by org.sleuthkit.autopsy.integrationtesting.IntegrationTestService.pushCentralRepoSettings().
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setBulkThreshold | ( | int | bulkThreshold | ) | throws CentralRepoException |
bulkThreshold | the bulkThreshold to set |
Definition at line 334 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setBulkThreshold().
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setDbName | ( | String | dbName | ) | throws CentralRepoException |
dbName | the dbName to set |
Definition at line 320 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setDbName().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.testDatabaseSettingsAreValid().
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setHost | ( | String | host | ) | throws CentralRepoException |
host | the host to set |
Definition at line 289 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setHost().
Referenced by org.sleuthkit.autopsy.integrationtesting.IntegrationTestService.pushCentralRepoSettings(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.testDatabaseSettingsAreValid().
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setPassword | ( | String | password | ) | throws CentralRepoException |
password | the password to set |
Definition at line 362 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setPassword().
Referenced by org.sleuthkit.autopsy.integrationtesting.IntegrationTestService.pushCentralRepoSettings(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.testDatabaseSettingsAreValid().
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setPort | ( | int | port | ) | throws CentralRepoException |
port | the port to set |
Definition at line 303 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setPort().
Referenced by org.sleuthkit.autopsy.integrationtesting.IntegrationTestService.pushCentralRepoSettings(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.testDatabaseSettingsAreValid().
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setUserName | ( | String | userName | ) | throws CentralRepoException |
userName | the userName to set |
Definition at line 348 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setUserName().
Referenced by org.sleuthkit.autopsy.integrationtesting.IntegrationTestService.pushCentralRepoSettings(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.testDatabaseSettingsAreValid().
DatabaseTestResult org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.testStatus | ( | ) |
This method tests the connectivity status of this connection and returns the testing result.
Implements org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.
Definition at line 367 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.DatabaseTestResult.CONNECTION_FAILED, org.sleuthkit.autopsy.centralrepository.datamodel.DatabaseTestResult.DB_DOES_NOT_EXIST, org.sleuthkit.autopsy.centralrepository.datamodel.DatabaseTestResult.SCHEMA_INVALID, org.sleuthkit.autopsy.centralrepository.datamodel.DatabaseTestResult.TESTED_OK, org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyDatabaseExists(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyDatabaseSchema().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.isPostgresMultiuserAllowed().
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.toString | ( | ) |
Definition at line 87 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getDbName(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getHost(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getPort(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getUserName().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyConnection | ( | ) |
Use the current settings and the validation query to test the connection to the database.
Implements org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.
Definition at line 171 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closeConnection(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.executeValidationQuery().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.testStatus().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyDatabaseExists | ( | ) |
Check to see if the database exists.
Implements org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.
Definition at line 188 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closeStatement(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getDbName().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.testStatus().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyDatabaseSchema | ( | ) |
Use the current settings and the schema version query to test the database schema.
Implements org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.
Definition at line 222 of file PostgresCentralRepoSettings.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closeConnection(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.schemaVersionIsSet().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.testStatus().
|
private |
Definition at line 46 of file PostgresCentralRepoSettings.java.
|
staticprivate |
Definition at line 41 of file PostgresCentralRepoSettings.java.
|
staticprivate |
Definition at line 42 of file PostgresCentralRepoSettings.java.
|
private |
Definition at line 45 of file PostgresCentralRepoSettings.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.PostgresCentralRepoSettings().
|
staticprivate |
Definition at line 39 of file PostgresCentralRepoSettings.java.
|
staticprivate |
Definition at line 40 of file PostgresCentralRepoSettings.java.
Copyright © 2012-2022 Basis Technology. Generated on: Tue Mar 21 2023
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.