Autopsy
4.14.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits JPanel, and org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Inherited by org.sleuthkit.autopsy.communications.relationships.MessageDataContent.
Classes | |
class | AttachmentsChildren |
class | TextComponent |
Public Member Functions | |
MessageContentViewer () | |
void | addNotify () |
DataContentViewer | createInstance () |
Component | getComponent () |
String | getTitle () |
String | getToolTip () |
int | isPreferred (Node node) |
boolean | isSupported (Node node) |
final void | resetComponent () |
void | setNode (Node node) |
Private Member Functions | |
void | configureAttachments () throws TskCoreException |
void | configureTextArea (BlackboardAttribute.ATTRIBUTE_TYPE type, int index) throws TskCoreException |
void | displayEmailMsg () |
void | displayMsg () |
void | enableCommonFields () |
BlackboardArtifact | getNodeArtifact (Node node) |
void | initComponents () |
void | viewInNewWindowButtonActionPerformed (java.awt.event.ActionEvent evt) |
Static Private Member Functions | |
static String | cleanseHTML (String htmlInString) |
static Optional< BlackboardArtifact > | getAssociatedArtifact (final BlackboardArtifact artifact) throws TskCoreException |
static String | getAttributeValueSafe (BlackboardArtifact artifact, BlackboardAttribute.ATTRIBUTE_TYPE type) throws TskCoreException |
static boolean | isMessageArtifact (BlackboardArtifact nodeArtifact) |
static String | wrapInHtmlBody (String htmlText) |
Private Attributes | |
BlackboardArtifact | artifact |
javax.swing.JPanel | attachmentsPanel |
javax.swing.JScrollPane | attachmentsScrollPane |
javax.swing.JLabel | ccLabel |
javax.swing.JLabel | ccText |
javax.swing.JLabel | datetimeText |
javax.swing.JLabel | directionText |
final DataResultPanel | drp |
ExplorerManager | drpExplorerManager |
javax.swing.JPanel | envelopePanel |
javax.swing.JLabel | fromLabel |
javax.swing.JLabel | fromText |
javax.swing.JScrollPane | headersScrollPane |
javax.swing.JTextArea | headersTextArea |
javax.swing.JPanel | htmlPane |
final org.sleuthkit.autopsy.contentviewers.HtmlPanel | htmlPanel = new org.sleuthkit.autopsy.contentviewers.HtmlPanel() |
javax.swing.JTabbedPane | msgbodyTabbedPane |
javax.swing.JScrollPane | rtfbodyScrollPane |
javax.swing.JTextPane | rtfbodyTextPane |
javax.swing.JLabel | subjectLabel |
javax.swing.JLabel | subjectText |
final List< JTextComponent > | textAreas |
final TranslatablePanel | textPanel = new TranslatablePanel(new TextComponent()) |
javax.swing.JLabel | toLabel |
javax.swing.JLabel | toText |
javax.swing.JButton | viewInNewWindowButton |
Static Private Attributes | |
static final int | ATTM_TAB_INDEX = 4 |
static final int | HDR_TAB_INDEX = 0 |
static final int | HTML_TAB_INDEX = 2 |
static final Logger | LOGGER = Logger.getLogger(MessageContentViewer.class.getName()) |
static final int | RTF_TAB_INDEX = 3 |
static final long | serialVersionUID = 1L |
static final int | TEXT_TAB_INDEX = 1 |
static final BlackboardAttribute.Type | TSK_ASSOCIATED_TYPE = new BlackboardAttribute.Type(TSK_ASSOCIATED_ARTIFACT) |
Shows SMS/MMS/EMail messages
Definition at line 89 of file MessageContentViewer.java.
org.sleuthkit.autopsy.contentviewers.MessageContentViewer.MessageContentViewer | ( | ) |
Creates new MessageContentViewer
Definition at line 147 of file MessageContentViewer.java.
References org.sleuthkit.autopsy.contentviewers.Utilities.configureTextPaneAsRtf(), and org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstanceUninitialized().
void org.sleuthkit.autopsy.contentviewers.MessageContentViewer.addNotify | ( | ) |
Definition at line 175 of file MessageContentViewer.java.
References org.sleuthkit.autopsy.corecomponents.DataResultPanel.getExplorerManager(), and org.sleuthkit.autopsy.corecomponents.DataResultPanel.open().
|
staticprivate |
Cleans out input HTML string
htmlInString | The HTML string to cleanse |
Definition at line 737 of file MessageContentViewer.java.
|
private |
Definition at line 631 of file MessageContentViewer.java.
References org.sleuthkit.autopsy.corecomponents.DataResultPanel.setNode().
|
private |
Configure the text area at the given index to show the content of the given type.
type | The ATTRIBUT_TYPE to show in the indexed tab. |
index | The index of the text area to configure. |
TskCoreException |
Definition at line 600 of file MessageContentViewer.java.
DataContentViewer org.sleuthkit.autopsy.contentviewers.MessageContentViewer.createInstance | ( | ) |
Create and return a new instance of your viewer. The reason that this is needed is because the specific viewer modules will be found via NetBeans Lookup and the type will only be DataContentViewer. This method is used to get an instance of your specific type.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 469 of file MessageContentViewer.java.
|
private |
Definition at line 672 of file MessageContentViewer.java.
|
private |
Definition at line 699 of file MessageContentViewer.java.
|
private |
Definition at line 623 of file MessageContentViewer.java.
|
staticprivate |
Get the artifact associated with the given artifact, if there is one.
artifact | The artifact to get the associated artifact from. Must not be null |
TskCoreException | If there is a critical error querying the DB. |
Definition at line 448 of file MessageContentViewer.java.
|
staticprivate |
Definition at line 724 of file MessageContentViewer.java.
Component org.sleuthkit.autopsy.contentviewers.MessageContentViewer.getComponent | ( | ) |
Return the Swing Component to display. Implementations of this method that extend JPanel and do a 'return this;'. Otherwise return an internal instance of the JPanel.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 474 of file MessageContentViewer.java.
|
private |
Returns the artifact represented by node.
If the node lookup has an artifact, that artifact is returned. However, if the node lookup is a file, then we look for a TSK_ASSOCIATED_OBJECT artifact on the file, and if a message artifact is found associated with the file, that artifact is returned.
node | Node to check. |
Definition at line 548 of file MessageContentViewer.java.
References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().
String org.sleuthkit.autopsy.contentviewers.MessageContentViewer.getTitle | ( | ) |
Returns the title of this viewer to display in the tab.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 458 of file MessageContentViewer.java.
String org.sleuthkit.autopsy.contentviewers.MessageContentViewer.getToolTip | ( | ) |
Returns a short description of this viewer to use as a tool tip for its tab.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 464 of file MessageContentViewer.java.
|
private |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
Definition at line 191 of file MessageContentViewer.java.
|
staticprivate |
Is the given artifact one that can be shown in this viewer?
nodeArtifact | An artifact that might be a message. Must not be null. |
Definition at line 531 of file MessageContentViewer.java.
Referenced by org.sleuthkit.autopsy.contentviewers.MessageContentViewer.isSupported().
int org.sleuthkit.autopsy.contentviewers.MessageContentViewer.isPreferred | ( | Node | node | ) |
Checks whether the given viewer is preferred for the Node. This is a bit subjective, but the idea is that Autopsy wants to display the most relevant tab. The more generic the viewer, the lower the return value should be. This will only be called on viewers that support the given node (i.e., isSupported() has already returned true).
The following are some examples of the current levels in use. If the selected node is an artifact, the level may be determined by both the artifact and its associated file.
Level 7 - Based on the artifact, if any, in the selected node and specific to an artifact type or types. Current content viewers that can return level 7 are the Messages tab (only supported for email and SMS) and the Text tab when the selected node is a Keyword Search hit.
Level 6 - Based on the artifact, if any, in the selected node but not restricted to particular types. The current content viewer that can return level 6 is the Results tab. It returns this level for most artifact types, unless the associated file is assumed to be of greater interest (for example, a Hash Set Hit will not be level 6 because the file itself is of greater interest).
Level 5 - Based on the file in the selected node and very specific to the file type. The current content viewer that will return level 5 is the Application tab, which supports media files (such as images) and certain types of databases.
Level 4 - Based on the file in the selected node but fairly general. Currently this is the level returned by the Text tab if Keyword Search has been run (unless the node is a Keyword Search hit or a Credit Card account). This is the default tab for most files.
Level 3 - Based on the artifact, if any, in the selected node where the artifact is thought to be of less interest than the associated file. This level is returned by the Results tab for artifacts like Hash Set Hits.
Level 1 - Very general and should always be available. The Hex, Text, and Metadata tabs are all this level
Level 0 - For cases where the content viewer should never be displayed by default.
node | Node to check for preference |
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 577 of file MessageContentViewer.java.
boolean org.sleuthkit.autopsy.contentviewers.MessageContentViewer.isSupported | ( | Node | node | ) |
Checks whether the given node is supported by the viewer. This will be used to enable or disable the tab for the viewer.
node | Node to check for support |
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 503 of file MessageContentViewer.java.
References org.sleuthkit.autopsy.contentviewers.MessageContentViewer.isMessageArtifact().
final void org.sleuthkit.autopsy.contentviewers.MessageContentViewer.resetComponent | ( | ) |
Resets the contents of the viewer / component.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 479 of file MessageContentViewer.java.
References org.sleuthkit.autopsy.corecomponents.DataResultPanel.setNode().
void org.sleuthkit.autopsy.contentviewers.MessageContentViewer.setNode | ( | Node | selectedNode | ) |
Autopsy will call this when this panel is focused with the file that should be analyzed. When called with null, must clear all references to previous nodes.
selectedNode | the node which is used to determine what is displayed in this viewer |
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 403 of file MessageContentViewer.java.
Referenced by org.sleuthkit.autopsy.communications.relationships.MessagesPanel.MessagesPanel().
|
private |
Definition at line 374 of file MessageContentViewer.java.
|
staticprivate |
Definition at line 668 of file MessageContentViewer.java.
|
private |
Artifact currently being displayed
Definition at line 139 of file MessageContentViewer.java.
|
private |
Definition at line 380 of file MessageContentViewer.java.
|
private |
Definition at line 381 of file MessageContentViewer.java.
|
staticprivate |
Definition at line 131 of file MessageContentViewer.java.
|
private |
Definition at line 382 of file MessageContentViewer.java.
|
private |
Definition at line 383 of file MessageContentViewer.java.
|
private |
Definition at line 384 of file MessageContentViewer.java.
|
private |
Definition at line 385 of file MessageContentViewer.java.
|
private |
Definition at line 140 of file MessageContentViewer.java.
|
private |
Definition at line 141 of file MessageContentViewer.java.
|
private |
Definition at line 386 of file MessageContentViewer.java.
|
private |
Definition at line 387 of file MessageContentViewer.java.
|
private |
Definition at line 388 of file MessageContentViewer.java.
|
staticprivate |
Definition at line 127 of file MessageContentViewer.java.
|
private |
Definition at line 389 of file MessageContentViewer.java.
|
private |
Definition at line 390 of file MessageContentViewer.java.
|
staticprivate |
Definition at line 129 of file MessageContentViewer.java.
|
private |
Definition at line 391 of file MessageContentViewer.java.
|
private |
Definition at line 134 of file MessageContentViewer.java.
|
staticprivate |
Definition at line 124 of file MessageContentViewer.java.
|
private |
Definition at line 392 of file MessageContentViewer.java.
|
staticprivate |
Definition at line 130 of file MessageContentViewer.java.
|
private |
Definition at line 393 of file MessageContentViewer.java.
|
private |
Definition at line 394 of file MessageContentViewer.java.
|
staticprivate |
Definition at line 123 of file MessageContentViewer.java.
|
private |
Definition at line 395 of file MessageContentViewer.java.
|
private |
Definition at line 396 of file MessageContentViewer.java.
|
staticprivate |
Definition at line 128 of file MessageContentViewer.java.
|
private |
Definition at line 133 of file MessageContentViewer.java.
|
private |
Definition at line 135 of file MessageContentViewer.java.
|
private |
Definition at line 397 of file MessageContentViewer.java.
|
private |
Definition at line 398 of file MessageContentViewer.java.
|
staticprivate |
Definition at line 125 of file MessageContentViewer.java.
|
private |
Definition at line 399 of file MessageContentViewer.java.
Copyright © 2012-2020 Basis Technology. Generated on: Wed Apr 8 2020
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.