Autopsy 4.22.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
HashConfigPaths.java
Go to the documentation of this file.
1/*
2 * Autopsy Forensic Browser
3 *
4 * Copyright 2022 Basis Technology Corp.
5 * Contact: carrier <at> sleuthkit <dot> org
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19package org.sleuthkit.autopsy.modules.hashdatabase.infrastructure;
20
21import java.nio.file.Paths;
22import org.sleuthkit.autopsy.coreutils.PlatformUtil;
23
27public class HashConfigPaths {
28
29 private static final HashConfigPaths instance = new HashConfigPaths();
30
31 private static final String HASHSET_FOLDER = "HashLookup";
32 private static final String SERIALIZATION_FILE_NAME = "hashLookup.settings"; //NON-NLS
33
34 private static final String HASH_CONFIG_PATH = Paths.get(PlatformUtil.getModuleConfigDirectory(), HASHSET_FOLDER).toAbsolutePath().toString();
35
36 private static final String XML_FILE_NAME = "hashsets.xml"; //NON-NLS
37 private static final String XML_FILE_PATH = Paths.get(HASH_CONFIG_PATH, XML_FILE_NAME).toAbsolutePath().toString();
38
39 private static final String HASH_DATABASE_DEFAULT_FOLDER = "HashDatabases";
40 private static final String HASH_DATABASE_DEFAULT_PATH = Paths.get(HASH_CONFIG_PATH, HASH_DATABASE_DEFAULT_FOLDER).toString();
41
42 private static final String SERIALIZATION_FILE_PATH = Paths.get(HASH_CONFIG_PATH, SERIALIZATION_FILE_NAME).toString(); //NON-NLS
43
44
45 private HashConfigPaths() {
46 }
47
51 public static HashConfigPaths getInstance() {
52 return instance;
53 }
54
58 public String getBasePath() {
59 return HASH_CONFIG_PATH;
60 }
61
65 public String getDefaultDbPath() {
67 }
68
72 public String getSettingsPath() {
74 }
75
79 public String getXmlSettingsPath() {
80 return XML_FILE_PATH;
81 }
82}

Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.