Autopsy
4.17.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Classes | |
interface | ValueSetter |
Public Member Functions | |
boolean | areCustomSettingsChanged (PostgresConnectionSettings settings) |
PostgresConnectionSettings | loadCustomSettings () |
PostgresConnectionSettings | loadMultiUserSettings () |
void | saveCustomSettings (PostgresConnectionSettings settings) |
Static Public Member Functions | |
static synchronized CentralRepoPostgresSettingsUtil | getInstance () |
Private Member Functions | |
CentralRepoPostgresSettingsUtil () | |
void | setValOrLog (ValueSetter setter, String value) |
Static Private Attributes | |
static final String | BULK_THRESHOLD_KEY = "db.postgresql.bulkThreshold" |
static final String | DBNAME_KEY = "db.postgresql.dbName" |
static final String | HOST_KEY = "db.postgresql.host" |
static CentralRepoPostgresSettingsUtil | instance = null |
static final Logger | LOGGER = Logger.getLogger(CentralRepoPostgresSettingsUtil.class.getName()) |
static final String | MODULE_KEY = "CentralRepository" |
static final String | PASSWORD_KEY = "db.postgresql.password" |
static final String | PORT_KEY = "db.postgresql.port" |
static final String | USER_KEY = "db.postgresql.user" |
This class handles saving and loading of postgres settings for central repository.
Definition at line 39 of file CentralRepoPostgresSettingsUtil.java.
|
private |
Definition at line 64 of file CentralRepoPostgresSettingsUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.getInstance().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.areCustomSettingsChanged | ( | PostgresConnectionSettings | settings | ) |
This method checks if saved settings differ from the in-memory object provided in the 'settings' parameter.
settings | The in-memory object. |
Definition at line 181 of file CentralRepoPostgresSettingsUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.equals(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.loadCustomSettings().
|
static |
This method retrieves a singleton instance of this class.
Definition at line 57 of file CentralRepoPostgresSettingsUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.CentralRepoPostgresSettingsUtil(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.instance.
PostgresConnectionSettings org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.loadCustomSettings | ( | ) |
This method loads the custom postgres settings for central repository. If settings could not be loaded, default values will be returned.
Definition at line 127 of file CentralRepoPostgresSettingsUtil.java.
References org.sleuthkit.autopsy.coreutils.TextConverter.convertHexTextToText(), org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSettings(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setBulkThreshold(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setDbName(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setHost(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setPassword(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setPort(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setUserName(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.setValOrLog().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.areCustomSettingsChanged(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresSettingsLoader.Custom.loadSettings().
PostgresConnectionSettings org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.loadMultiUserSettings | ( | ) |
This method loads multi-user settings to be used as a postgres connection to central repository. If settings could not be loaded, default values will be returned.
Definition at line 100 of file CentralRepoPostgresSettingsUtil.java.
References org.sleuthkit.autopsy.core.UserPreferences.getDatabaseConnectionInfo(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setHost(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setPassword(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setPort(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setUserName(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.setValOrLog().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresSettingsLoader.MultiUser.loadSettings().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.saveCustomSettings | ( | PostgresConnectionSettings | settings | ) |
This method saves the settings for a custom postgres central repository connection.
settings | The settings to save. |
Definition at line 160 of file CentralRepoPostgresSettingsUtil.java.
References org.sleuthkit.autopsy.coreutils.TextConverter.convertTextToHexText(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.getBulkThreshold(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.getDbName(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.getHost(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.getPassword(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.getPort(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.getUserName(), and org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSettings().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresSettingsLoader.Custom.saveSettings().
|
private |
Uses setter object to set a value as specified by 'value'. In the event that 'value' is null, the setter will not be called. Exceptions that are raised from the setter will be logged.
setter | The setter to call. |
value | The value to use with the setter. |
Definition at line 74 of file CentralRepoPostgresSettingsUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.ValueSetter.set().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.loadCustomSettings(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.loadMultiUserSettings().
|
staticprivate |
Definition at line 43 of file CentralRepoPostgresSettingsUtil.java.
|
staticprivate |
Definition at line 46 of file CentralRepoPostgresSettingsUtil.java.
|
staticprivate |
Definition at line 47 of file CentralRepoPostgresSettingsUtil.java.
|
staticprivate |
Definition at line 51 of file CentralRepoPostgresSettingsUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPostgresSettingsUtil.getInstance().
|
staticprivate |
Definition at line 40 of file CentralRepoPostgresSettingsUtil.java.
|
staticprivate |
Definition at line 49 of file CentralRepoPostgresSettingsUtil.java.
|
staticprivate |
Definition at line 42 of file CentralRepoPostgresSettingsUtil.java.
|
staticprivate |
Definition at line 44 of file CentralRepoPostgresSettingsUtil.java.
|
staticprivate |
Definition at line 45 of file CentralRepoPostgresSettingsUtil.java.
Copyright © 2012-2021 Basis Technology. Generated on: Tue Jan 19 2021
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.