Autopsy
4.17.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits org.sleuthkit.autopsy.url.analytics.DomainCategorizer.
Public Member Functions | |
void | close () throws Exception |
DomainCategory | getCategory (String domain, String host) throws DomainCategorizerException |
void | initialize () throws DomainCategorizerException |
Static Private Member Functions | |
static void | addItem (Map< String, String > mapping, String line, int lineNumber) |
static Map< String, String > | loadMapping () throws IOException |
Private Attributes | |
Map< String, String > | mapping = null |
Static Private Attributes | |
static final String | CSV_DELIMITER = "," |
static final String | DOMAIN_TYPE_CSV = "default_domain_categories.csv" |
static final Logger | logger = Logger.getLogger(DefaultDomainCategorizer.class.getName()) |
The default domain category provider that makes use of the default csv resource. This implementation is used if no other DomainCategorizer can determine a category for a host/domain entry.
CSV entries describing these domain types are compiled from sources. webmail: https://github.com/mailcheck/mailcheck/wiki/List-of-Popular-Domains disposable mail: https://www.npmjs.com/package/disposable-email-domains messaging: https://www.raymond.cc/blog/list-of-web-messengers-for-your-convenience/
NOTE: The (at)SuppressWarnings("try") on the class is to suppress warnings relating to the fact that the close method can throw an InterruptedException since Exception can encompass the InterruptedException. See the following github issue and bugs for more information: https://github.com/joyent/java-manta/issues/322#issuecomment-326391239, https://bugs.openjdk.java.net/browse/JDK-8155591, https://bugs.eclipse.org/bugs/show_bug.cgi?id=350279.
Definition at line 57 of file DefaultDomainCategorizer.java.
|
staticprivate |
Adds a mapping of domain suffix to category based on the csv line found in the file.
mapping | The suffix to category mapping. |
line | The line to be parsed. |
lineNumber | The line number of this csv line. |
Definition at line 97 of file DefaultDomainCategorizer.java.
void org.sleuthkit.autopsy.recentactivity.DefaultDomainCategorizer.close | ( | ) | throws Exception |
These providers close methods are explicitly called when ingest is finished. Conceivably, the same instance of this class may have this method called multiple times and should handle that possibility gracefully.
Exception |
Implements org.sleuthkit.autopsy.url.analytics.DomainCategorizer.
Definition at line 165 of file DefaultDomainCategorizer.java.
DomainCategory org.sleuthkit.autopsy.recentactivity.DefaultDomainCategorizer.getCategory | ( | String | domain, |
String | host | ||
) | throws DomainCategorizerException |
Provides the DomainCategory for a given domain/host or null if none can be determined.
domain | The domain of the url. |
host | The host of the url. |
Implements org.sleuthkit.autopsy.url.analytics.DomainCategorizer.
Definition at line 142 of file DefaultDomainCategorizer.java.
void org.sleuthkit.autopsy.recentactivity.DefaultDomainCategorizer.initialize | ( | ) | throws DomainCategorizerException |
Initializes this provider in preparation to handle 'getCategory' requests during ingest. Conceivably, the same instance of this class may have this called multiple times and should handle that possibility gracefully.
DomainCategorizerException |
Implements org.sleuthkit.autopsy.url.analytics.DomainCategorizer.
Definition at line 131 of file DefaultDomainCategorizer.java.
|
staticprivate |
Loads the domain suffixes from the csv resource file into a mapping of domain suffix to category name.
IOException |
Definition at line 70 of file DefaultDomainCategorizer.java.
|
staticprivate |
Definition at line 59 of file DefaultDomainCategorizer.java.
|
staticprivate |
Definition at line 60 of file DefaultDomainCategorizer.java.
|
staticprivate |
Definition at line 61 of file DefaultDomainCategorizer.java.
|
private |
Definition at line 128 of file DefaultDomainCategorizer.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.