Autopsy  4.13.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.contentviewers.MessageContentViewer Class Reference

Inherits JPanel, and org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.

Inherited by org.sleuthkit.autopsy.communications.relationships.MessageDataContent.


class  AttachmentsChildren

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
javax.swing.JScrollPane textbodyScrollPane
javax.swing.JTextArea textbodyTextArea
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)

Detailed Description

Shows SMS/MMS/EMail messages

Definition at line 85 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.contentviewers.MessageContentViewer.MessageContentViewer ( )

Member Function Documentation

void org.sleuthkit.autopsy.contentviewers.MessageContentViewer.addNotify ( )
static String org.sleuthkit.autopsy.contentviewers.MessageContentViewer.cleanseHTML ( String  htmlInString)

Cleans out input HTML string

htmlInStringThe HTML string to cleanse
The cleansed HTML String

Definition at line 703 of file

void org.sleuthkit.autopsy.contentviewers.MessageContentViewer.configureAttachments ( ) throws TskCoreException
void org.sleuthkit.autopsy.contentviewers.MessageContentViewer.configureTextArea ( BlackboardAttribute.ATTRIBUTE_TYPE  type,
int  index 
) throws TskCoreException

Configure the text area at the given index to show the content of the given type.

typeThe ATTRIBUT_TYPE to show in the indexed tab.
indexThe index of the text area to configure.

Definition at line 568 of file

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.

A new instance of the viewer

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.

Definition at line 437 of file

void org.sleuthkit.autopsy.contentviewers.MessageContentViewer.displayEmailMsg ( )

Definition at line 638 of file

void org.sleuthkit.autopsy.contentviewers.MessageContentViewer.displayMsg ( )

Definition at line 665 of file

void org.sleuthkit.autopsy.contentviewers.MessageContentViewer.enableCommonFields ( )

Definition at line 589 of file

static Optional<BlackboardArtifact> org.sleuthkit.autopsy.contentviewers.MessageContentViewer.getAssociatedArtifact ( final BlackboardArtifact  artifact) throws TskCoreException

Get the artifact associated with the given artifact, if there is one.

artifactThe artifact to get the associated artifact from. Must not be null
TskCoreExceptionIf there is a critical error querying the DB.
An optional containing the artifact associated with the given artifact, if there is one.

Definition at line 416 of file

static String org.sleuthkit.autopsy.contentviewers.MessageContentViewer.getAttributeValueSafe ( BlackboardArtifact  artifact,
BlackboardAttribute.ATTRIBUTE_TYPE  type 
) throws TskCoreException

Definition at line 690 of file

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.

the component which is displayed for this viewer

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.

Definition at line 442 of file

BlackboardArtifact org.sleuthkit.autopsy.contentviewers.MessageContentViewer.getNodeArtifact ( Node  node)

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.

nodeNode to check.
Blackboard artifact for the node, null if there isn't any.

Definition at line 516 of file

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.

the title of DataContentViewer

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.

Definition at line 426 of file

String org.sleuthkit.autopsy.contentviewers.MessageContentViewer.getToolTip ( )

Returns a short description of this viewer to use as a tool tip for its tab.

the tooltip for this TextViewer

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.

Definition at line 432 of file

void org.sleuthkit.autopsy.contentviewers.MessageContentViewer.initComponents ( )

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 146 of file

static boolean org.sleuthkit.autopsy.contentviewers.MessageContentViewer.isMessageArtifact ( BlackboardArtifact  nodeArtifact)

Is the given artifact one that can be shown in this viewer?

nodeArtifactAn artifact that might be a message. Must not be null.
True if the given artifact can be shown as a message in this viewer.

Definition at line 499 of file

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.

nodeNode to check for preference
an int (0-10) higher return means the viewer has higher priority

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.

Definition at line 545 of file

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.

nodeNode to check for support
True if the node can be displayed / processed, else false

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.

Definition at line 471 of file

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 447 of file

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.

selectedNodethe node which is used to determine what is displayed in this viewer

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.

Definition at line 371 of file

Referenced by org.sleuthkit.autopsy.communications.relationships.MessagesPanel.MessagesPanel().

void org.sleuthkit.autopsy.contentviewers.MessageContentViewer.viewInNewWindowButtonActionPerformed ( java.awt.event.ActionEvent  evt)

Definition at line 340 of file

static String org.sleuthkit.autopsy.contentviewers.MessageContentViewer.wrapInHtmlBody ( String  htmlText)

Definition at line 634 of file

Member Data Documentation

BlackboardArtifact org.sleuthkit.autopsy.contentviewers.MessageContentViewer.artifact

Artifact currently being displayed

Definition at line 102 of file

javax.swing.JPanel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.attachmentsPanel

Definition at line 346 of file

javax.swing.JScrollPane org.sleuthkit.autopsy.contentviewers.MessageContentViewer.attachmentsScrollPane

Definition at line 347 of file

final int org.sleuthkit.autopsy.contentviewers.MessageContentViewer.ATTM_TAB_INDEX = 4

Definition at line 95 of file

javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.ccLabel

Definition at line 348 of file

javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.ccText

Definition at line 349 of file

javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.datetimeText

Definition at line 350 of file

javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.directionText

Definition at line 351 of file

final DataResultPanel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.drp

Definition at line 103 of file

ExplorerManager org.sleuthkit.autopsy.contentviewers.MessageContentViewer.drpExplorerManager

Definition at line 104 of file

javax.swing.JPanel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.envelopePanel

Definition at line 352 of file

javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.fromLabel

Definition at line 353 of file

javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.fromText

Definition at line 354 of file

final int org.sleuthkit.autopsy.contentviewers.MessageContentViewer.HDR_TAB_INDEX = 0

Definition at line 91 of file

javax.swing.JScrollPane org.sleuthkit.autopsy.contentviewers.MessageContentViewer.headersScrollPane

Definition at line 355 of file

javax.swing.JTextArea org.sleuthkit.autopsy.contentviewers.MessageContentViewer.headersTextArea

Definition at line 356 of file

final int org.sleuthkit.autopsy.contentviewers.MessageContentViewer.HTML_TAB_INDEX = 2

Definition at line 93 of file

javax.swing.JPanel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.htmlPane

Definition at line 357 of file

final org.sleuthkit.autopsy.contentviewers.HtmlPanel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.htmlPanel = new org.sleuthkit.autopsy.contentviewers.HtmlPanel()

Definition at line 98 of file

final Logger org.sleuthkit.autopsy.contentviewers.MessageContentViewer.LOGGER = Logger.getLogger(MessageContentViewer.class.getName())

Definition at line 88 of file

javax.swing.JTabbedPane org.sleuthkit.autopsy.contentviewers.MessageContentViewer.msgbodyTabbedPane

Definition at line 358 of file

final int org.sleuthkit.autopsy.contentviewers.MessageContentViewer.RTF_TAB_INDEX = 3

Definition at line 94 of file

javax.swing.JScrollPane org.sleuthkit.autopsy.contentviewers.MessageContentViewer.rtfbodyScrollPane

Definition at line 359 of file

javax.swing.JTextPane org.sleuthkit.autopsy.contentviewers.MessageContentViewer.rtfbodyTextPane

Definition at line 360 of file

final long org.sleuthkit.autopsy.contentviewers.MessageContentViewer.serialVersionUID = 1L

Definition at line 87 of file

javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.subjectLabel

Definition at line 361 of file

javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.subjectText

Definition at line 362 of file

final int org.sleuthkit.autopsy.contentviewers.MessageContentViewer.TEXT_TAB_INDEX = 1

Definition at line 92 of file

final List<JTextComponent> org.sleuthkit.autopsy.contentviewers.MessageContentViewer.textAreas

Definition at line 97 of file

javax.swing.JScrollPane org.sleuthkit.autopsy.contentviewers.MessageContentViewer.textbodyScrollPane

Definition at line 363 of file

javax.swing.JTextArea org.sleuthkit.autopsy.contentviewers.MessageContentViewer.textbodyTextArea

Definition at line 364 of file

javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.toLabel

Definition at line 365 of file

javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.MessageContentViewer.toText

Definition at line 366 of file

final BlackboardAttribute.Type org.sleuthkit.autopsy.contentviewers.MessageContentViewer.TSK_ASSOCIATED_TYPE = new BlackboardAttribute.Type(TSK_ASSOCIATED_ARTIFACT)

Definition at line 89 of file

javax.swing.JButton org.sleuthkit.autopsy.contentviewers.MessageContentViewer.viewInNewWindowButton

Definition at line 367 of file

The documentation for this class was generated from the following file:

Copyright © 2012-2019 Basis Technology. Generated on: Tue Jan 7 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.