Sleuth Kit Java Bindings (JNI)  4.11.1
Java bindings for using The Sleuth Kit
org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper Class Reference

Inherits org.sleuthkit.datamodel.blackboardutils.ArtifactHelperBase.

Classes

enum  CallMediaType
 
enum  CommunicationDirection
 
enum  MessageReadStatus
 

Public Member Functions

 CommunicationArtifactsHelper (SleuthkitCase caseDb, String moduleName, Content srcContent, Account.Type accountsType, Long ingestJobId) throws TskCoreException
 
 CommunicationArtifactsHelper (SleuthkitCase caseDb, String moduleName, Content srcContent, Account.Type accountsType, Account.Type selfAccountType, String selfAccountId, Long ingestJobId) throws TskCoreException
 
 CommunicationArtifactsHelper (SleuthkitCase caseDb, String moduleName, Content srcContent, Account.Type accountsType) throws TskCoreException
 
 CommunicationArtifactsHelper (SleuthkitCase caseDb, String moduleName, Content srcContent, Account.Type accountsType, Account.Type selfAccountType, String selfAccountId) throws TskCoreException
 
void addAttachments (BlackboardArtifact message, MessageAttachments attachments) throws TskCoreException
 
BlackboardArtifact addCalllog (CommunicationDirection direction, String callerId, String calleeId, long startDateTime, long endDateTime, CallMediaType mediaType) throws TskCoreException, BlackboardException
 
BlackboardArtifact addCalllog (CommunicationDirection direction, String callerId, String calleeId, long startDateTime, long endDateTime, CallMediaType mediaType, Collection< BlackboardAttribute > otherAttributesList) throws TskCoreException, BlackboardException
 
BlackboardArtifact addCalllog (CommunicationDirection direction, String callerId, Collection< String > calleeIdsList, long startDateTime, long endDateTime, CallMediaType mediaType) throws TskCoreException, BlackboardException
 
BlackboardArtifact addCalllog (CommunicationDirection direction, String callerId, Collection< String > calleeIdsList, long startDateTime, long endDateTime, CallMediaType mediaType, Collection< BlackboardAttribute > otherAttributesList) throws TskCoreException, BlackboardException
 
BlackboardArtifact addContact (String contactName, String phoneNumber, String homePhoneNumber, String mobilePhoneNumber, String emailAddr) throws TskCoreException, BlackboardException
 
BlackboardArtifact addContact (String contactName, String phoneNumber, String homePhoneNumber, String mobilePhoneNumber, String emailAddr, Collection< BlackboardAttribute > additionalAttributes) throws TskCoreException, BlackboardException
 
BlackboardArtifact addMessage (String messageType, CommunicationDirection direction, String senderId, String recipientId, long dateTime, MessageReadStatus readStatus, String subject, String messageText, String threadId) throws TskCoreException, BlackboardException
 
BlackboardArtifact addMessage (String messageType, CommunicationDirection direction, String senderId, String recipientId, long dateTime, MessageReadStatus readStatus, String subject, String messageText, String threadId, Collection< BlackboardAttribute > otherAttributesList) throws TskCoreException, BlackboardException
 
BlackboardArtifact addMessage (String messageType, CommunicationDirection direction, String senderId, List< String > recipientIdsList, long dateTime, MessageReadStatus readStatus, String subject, String messageText, String threadId) throws TskCoreException, BlackboardException
 
BlackboardArtifact addMessage (String messageType, CommunicationDirection direction, String senderId, List< String > recipientIdsList, long dateTime, MessageReadStatus readStatus, String subject, String messageText, String threadId, Collection< BlackboardAttribute > otherAttributesList) throws TskCoreException, BlackboardException
 

Detailed Description

A class that helps modules to create communication artifacts: contacts, messages, and call logs.

It creates a 'self' account Account - an account for the owner/user of the application being processed by the module. As an example, for a module analyzing Facebook application, this would be the account associated with the unique Facebook user ID of the device owner.

In the absence of a 'self' account, a 'device' account may be used in its place. A 'device' account is an account meant to represent the owner of the device, and uses the unique device ID as the unique account identifier.

It also creates accounts for contacts, and sender/receivers of the messages, and calls.

And it creates relationships between the self account and the contacts and sender/receiver accounts.

Definition at line 69 of file CommunicationArtifactsHelper.java.

Constructor & Destructor Documentation

org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.CommunicationArtifactsHelper ( SleuthkitCase  caseDb,
String  moduleName,
Content  srcContent,
Account.Type  accountsType,
Long  ingestJobId 
) throws TskCoreException

Constructs an instance of a class that helps modules to create communication artifacts: contacts, messages, and call logs.

This constructor is intended to be used when there is no known application account and a device account should be used instead.

Parameters
caseDbThe case database.
moduleNameThe name of the module creating the artifacts.
srcContentThe source/parent content of the artifacts.
accountsTypeAccount type Account.Type created by this module.
ingestJobIdThe numeric identifier of the ingest job within which the artifacts are being created, may be null.
Exceptions
TskCoreExceptionThe exception is thrown if there is an error querying the case database.

Definition at line 165 of file CommunicationArtifactsHelper.java.

References org.sleuthkit.datamodel.Account.Type.DEVICE.

org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.CommunicationArtifactsHelper ( SleuthkitCase  caseDb,
String  moduleName,
Content  srcContent,
Account.Type  accountsType,
Account.Type  selfAccountType,
String  selfAccountId,
Long  ingestJobId 
) throws TskCoreException

Constructs an instance of a class that helps modules to create communication artifacts: contacts, messages, and call logs.

This constructor is intended to be used when there is sufficent application-specific account information about the device owner to create a 'self' account.

Parameters
caseDbThe case database.
moduleNameThe name of the module creating the artifacts.
srcContentThe source/parent content of the artifacts.
accountsTypeAccount type Account.Type created by this module.
selfAccountTypeSelf account type to be created for this module.
selfAccountIdAccount unique id for the self account.
ingestJobIdThe numeric identifier of the ingest job within which the artifacts are being created, may be null.
Exceptions
TskCoreExceptionThe exception is thrown if there is an error querying the case database.

Definition at line 194 of file CommunicationArtifactsHelper.java.

org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.CommunicationArtifactsHelper ( SleuthkitCase  caseDb,
String  moduleName,
Content  srcContent,
Account.Type  accountsType 
) throws TskCoreException

Constructs an instance of a class that helps modules to create communication artifacts: contacts, messages, and call logs.

This constructor is intended to be used when there is no known application account and a device account should be used instead.

Parameters
caseDbThe case database.
moduleNameThe name of the module creating the artifacts.
srcContentThe source/parent content of the artifacts.
accountsTypeAccount type Account.Type created by this module.
Exceptions
TskCoreExceptionThe exception is thrown if there is an error updating the case database.
Deprecated:
Use CommunicationArtifactsHelper(SleuthkitCase caseDb, String moduleName, Content srcContent, Account.Type accountsType, Long ingestJobId) instead.

Definition at line 221 of file CommunicationArtifactsHelper.java.

org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.CommunicationArtifactsHelper ( SleuthkitCase  caseDb,
String  moduleName,
Content  srcContent,
Account.Type  accountsType,
Account.Type  selfAccountType,
String  selfAccountId 
) throws TskCoreException

Constructs an instance of a class that helps modules to create communication artifacts: contacts, messages, and call logs.

This constructor is intended to be used when there is sufficent application-specific account information about the device owner to create a 'self' account.

Parameters
caseDbThe case database.
moduleNameThe name of the module creating the artifacts.
srcContentThe source/parent content of the artifacts.
accountsTypeAccount type Account.Type created by this module.
selfAccountTypeSelf account type to be created for this module.
selfAccountIdAccount unique id for the self account.
Exceptions
TskCoreExceptionThe exception is thrown if there is an error updating the case database.
Deprecated:
Use CommunicationArtifactsHelper(SleuthkitCase caseDb, String moduleName, Content srcContent, Account.Type accountsType, Account.Type selfAccountType, String selfAccountId, Long ingestJobId) instead.

Definition at line 248 of file CommunicationArtifactsHelper.java.

Member Function Documentation

void org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addAttachments ( BlackboardArtifact  message,
MessageAttachments  attachments 
) throws TskCoreException

Adds attachments to a message.

Parameters
messageMessage artifact.
attachmentsAttachments to add to the message.
Exceptions
TskCoreExceptionIf there is an error in adding attachments

Definition at line 933 of file CommunicationArtifactsHelper.java.

References org.sleuthkit.datamodel.SleuthkitCase.getAbstractFileById(), org.sleuthkit.datamodel.AbstractContent.getSleuthkitCase(), and org.sleuthkit.datamodel.blackboardutils.attributes.BlackboardJsonAttrUtil.toAttribute().

BlackboardArtifact org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addCalllog ( CommunicationDirection  direction,
String  callerId,
String  calleeId,
long  startDateTime,
long  endDateTime,
CallMediaType  mediaType 
) throws TskCoreException, BlackboardException

Adds a TSK_CALLLOG artifact.

Also creates an account instance for the caller/callee, and creates a relationship between the self account and the caller account as well between the self account and the callee account.

Parameters
directionCall direction, UNKNOWN if not available.
callerIdCaller id, may be null.
calleeIdCallee id, may be null.

At least one of the two must be provided - the caller Id, or a callee id.

Parameters
startDateTimeStart date/time, 0 if not available.
endDateTimeEnd date/time, 0 if not available.
mediaTypeMedia type.
Returns
Call log artifact.
Exceptions
TskCoreExceptionIf there is an error creating the artifact.
BlackboardExceptionIf there is a problem posting the artifact.

Definition at line 702 of file CommunicationArtifactsHelper.java.

Referenced by org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addCalllog().

BlackboardArtifact org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addCalllog ( CommunicationDirection  direction,
String  callerId,
String  calleeId,
long  startDateTime,
long  endDateTime,
CallMediaType  mediaType,
Collection< BlackboardAttribute otherAttributesList 
) throws TskCoreException, BlackboardException

Adds a TSK_CALLLOG artifact.

Also creates an account instance for the caller/callee, and creates a relationship between the self account and the caller account as well between the self account and the callee account.

Parameters
directionCall direction, UNKNOWN if not available.
callerIdCaller id, may be null.
calleeIdCallee id, may be null.

At least one of the two must be provided - the caller Id, or a callee id.

Parameters
startDateTimeStart date/time, 0 if not available.
endDateTimeEnd date/time, 0 if not available.
mediaTypeMedia type.
otherAttributesListOther attributes.
Returns
Call log artifact.
Exceptions
TskCoreExceptionIf there is an error creating the artifact.
BlackboardExceptionIf there is a problem posting the artifact.

Definition at line 733 of file CommunicationArtifactsHelper.java.

References org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addCalllog().

BlackboardArtifact org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addCalllog ( CommunicationDirection  direction,
String  callerId,
Collection< String >  calleeIdsList,
long  startDateTime,
long  endDateTime,
CallMediaType  mediaType 
) throws TskCoreException, BlackboardException

Adds a TSK_CALLLOG artifact.

Also creates an account instance for the caller/callees, and creates a relationship between the self account and the caller account as well between the self account and each callee account.

Parameters
directionCall direction, UNKNOWN if not available.
callerIdCaller id, may be null.
calleeIdsListCallee list, may be an empty list.

At least one of the two must be provided - the caller Id, or a callee id.

Parameters
startDateTimeStart date/time, 0 if not available.
endDateTimeEnd date/time, 0 if not available.
mediaTypeCall media type, UNKNOWN if not available.
Returns
Call log artifact.
Exceptions
TskCoreExceptionIf there is an error creating the artifact.
BlackboardExceptionIf there is a problem posting the artifact.

Definition at line 769 of file CommunicationArtifactsHelper.java.

References org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addCalllog().

BlackboardArtifact org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addCalllog ( CommunicationDirection  direction,
String  callerId,
Collection< String >  calleeIdsList,
long  startDateTime,
long  endDateTime,
CallMediaType  mediaType,
Collection< BlackboardAttribute otherAttributesList 
) throws TskCoreException, BlackboardException

Adds a TSK_CALLLOG artifact.

Also creates an account instance for the caller and each of the callees, and creates relationships between caller and callees.

Parameters
directionCall direction, UNKNOWN if not available.
callerIdCaller id, required for incoming call.
calleeIdsListCallee ids list, required for an outgoing call.

At least one of the two must be provided - the caller Id, or a callee id.

Parameters
startDateTimeStart date/time, 0 if not available.
endDateTimeEnd date/time, 0 if not available.
mediaTypeCall media type, UNKNOWN if not available.
otherAttributesListother attributes, can be an empty list
Returns
Call log artifact.
Exceptions
TskCoreExceptionIf there is an error creating the artifact.
BlackboardExceptionIf there is a problem posting the artifact.

Definition at line 804 of file CommunicationArtifactsHelper.java.

References org.sleuthkit.datamodel.BlackboardArtifact.addAttributes(), org.sleuthkit.datamodel.Relationship.Type.CALL_LOG, org.sleuthkit.datamodel.AccountFileInstance.getAccount(), org.sleuthkit.datamodel.Account.getTypeSpecificID(), org.sleuthkit.datamodel.Content.newDataArtifact(), org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DATETIME_END, org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DATETIME_START, org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PHONE_NUMBER, org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PHONE_NUMBER_FROM, and org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PHONE_NUMBER_TO.

BlackboardArtifact org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addContact ( String  contactName,
String  phoneNumber,
String  homePhoneNumber,
String  mobilePhoneNumber,
String  emailAddr 
) throws TskCoreException, BlackboardException

Creates and adds a TSK_CONTACT artifact to the case, with specified attributes. Also creates an account instance of specified type for the contact with the specified ID.

Parameters
contactNameContact name, required.
phoneNumberPrimary phone number for contact, may be empty or null.
homePhoneNumberHome phone number, may be empty or null.
mobilePhoneNumberMobile phone number, may be empty or null.
emailAddrEmail address for the contact, may be empty or null.

At least one phone number or email address is required.

Returns
Contact artifact created.
Exceptions
TskCoreExceptionIf there is an error creating the artifact.
BlackboardExceptionIf there is a problem posting the artifact.

Definition at line 273 of file CommunicationArtifactsHelper.java.

BlackboardArtifact org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addContact ( String  contactName,
String  phoneNumber,
String  homePhoneNumber,
String  mobilePhoneNumber,
String  emailAddr,
Collection< BlackboardAttribute additionalAttributes 
) throws TskCoreException, BlackboardException

Creates and adds a TSK_CONTACT artifact to the case, with specified attributes. Also creates an account instance for the contact with the specified ID.

Parameters
contactNameContact name, may be empty or null.
phoneNumberPrimary phone number for contact, may be empty or null.
homePhoneNumberHome phone number, may be empty or null.
mobilePhoneNumberMobile phone number, may be empty or null.
emailAddrEmail address for the contact, may be empty or null.

At least one phone number or email address or an Id is required. An Id may be passed in as a TSK_ID attribute in additionalAttributes.

Parameters
additionalAttributesAdditional attributes for contact, may be an empty list.
Returns
contact artifact created.
Exceptions
TskCoreExceptionIf there is an error creating the artifact.
BlackboardExceptionIf there is a problem posting the artifact.

Definition at line 306 of file CommunicationArtifactsHelper.java.

References org.sleuthkit.datamodel.Account.Type.EMAIL, org.sleuthkit.datamodel.Content.newDataArtifact(), org.sleuthkit.datamodel.Account.Type.PHONE, org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_EMAIL, org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_NAME, org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PHONE_NUMBER, org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PHONE_NUMBER_HOME, and org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PHONE_NUMBER_MOBILE.

BlackboardArtifact org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addMessage ( String  messageType,
CommunicationDirection  direction,
String  senderId,
String  recipientId,
long  dateTime,
MessageReadStatus  readStatus,
String  subject,
String  messageText,
String  threadId 
) throws TskCoreException, BlackboardException

Adds a TSK_MESSAGE artifact.

Also creates an account instance for the sender/receiver, and creates a relationship between the self account and the sender/receiver account.

Parameters
messageTypeMessage type, required.
directionMessage direction, UNKNOWN if not available.
senderIdSender address id, may be null.
recipientIdRecipient id, may be null.
dateTimeDate/time of message, 0 if not available.
readStatusMessage read status, UNKNOWN if not available.
subjectMessage subject, may be empty or null.
messageTextMessage body, may be empty or null.
threadIdMessage thread id, may be empty or null.
Returns
Message artifact.
Exceptions
TskCoreExceptionIf there is an error creating the artifact.
BlackboardExceptionIf there is a problem posting the artifact.

Definition at line 445 of file CommunicationArtifactsHelper.java.

Referenced by org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addMessage().

BlackboardArtifact org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addMessage ( String  messageType,
CommunicationDirection  direction,
String  senderId,
String  recipientId,
long  dateTime,
MessageReadStatus  readStatus,
String  subject,
String  messageText,
String  threadId,
Collection< BlackboardAttribute otherAttributesList 
) throws TskCoreException, BlackboardException

Adds a TSK_MESSAGE artifact.

Also creates an account instance for the sender/receiver, and creates a relationship between the self account and the sender/receiver account.

Parameters
messageTypeMessage type, required.
directionMessage direction, UNKNOWN if not available.
senderIdSender id, may be null.
recipientIdRecipient id, may be null.
dateTimeDate/time of message, 0 if not available.
readStatusMessage read status, UNKNOWN if not available.
subjectMessage subject, may be empty or null.
messageTextMessage body, may be empty or null.
threadIdMessage thread id, may be empty or null.
otherAttributesListAdditional attributes, may be an empty list.
Returns
Message artifact.
Exceptions
TskCoreExceptionIf there is an error creating the artifact.
BlackboardExceptionIf there is a problem posting the artifact.

Definition at line 480 of file CommunicationArtifactsHelper.java.

References org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addMessage().

BlackboardArtifact org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addMessage ( String  messageType,
CommunicationDirection  direction,
String  senderId,
List< String >  recipientIdsList,
long  dateTime,
MessageReadStatus  readStatus,
String  subject,
String  messageText,
String  threadId 
) throws TskCoreException, BlackboardException

Adds a TSK_MESSAGE artifact.

Also creates an account instance for the sender/receiver, and creates a relationship between the self account and the sender/receiver accounts.

Parameters
messageTypeMessage type, required.
directionMessage direction, UNKNOWN if not available.
senderIdSender id, may be null.
recipientIdsListRecipient ids list, may be null or empty list.
dateTimeDate/time of message, 0 if not available.
readStatusMessage read status, UNKNOWN if not available.
subjectMessage subject, may be empty or null.
messageTextMessage body, may be empty or null.
threadIdMessage thread id, may be empty or null.
Returns
Message artifact.
Exceptions
TskCoreExceptionIf there is an error creating the artifact.
BlackboardExceptionIf there is a problem posting the artifact.

Definition at line 518 of file CommunicationArtifactsHelper.java.

References org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addMessage().

BlackboardArtifact org.sleuthkit.datamodel.blackboardutils.CommunicationArtifactsHelper.addMessage ( String  messageType,
CommunicationDirection  direction,
String  senderId,
List< String >  recipientIdsList,
long  dateTime,
MessageReadStatus  readStatus,
String  subject,
String  messageText,
String  threadId,
Collection< BlackboardAttribute otherAttributesList 
) throws TskCoreException, BlackboardException

Adds a TSK_MESSAGE artifact.

Also creates accounts for the sender/receivers, and creates relationships between the sender/receivers account.

Parameters
messageTypeMessage type, required.
directionMessage direction, UNKNOWN if not available.
senderIdSender id, may be null.
recipientIdsListRecipient list, may be null or empty an list.
dateTimeDate/time of message, 0 if not available.
readStatusMessage read status, UNKNOWN if not available.
subjectMessage subject, may be empty or null.
messageTextMessage body, may be empty or null.
threadIdMessage thread id, may be empty or null.
otherAttributesListOther attributes, may be an empty list.
Returns
Message artifact.
Exceptions
TskCoreExceptionIf there is an error creating the artifact.
BlackboardExceptionIf there is a problem posting the artifact.

Definition at line 553 of file CommunicationArtifactsHelper.java.

References org.sleuthkit.datamodel.AccountFileInstance.getAccount(), org.sleuthkit.datamodel.Account.getTypeSpecificID(), org.sleuthkit.datamodel.Relationship.Type.MESSAGE, org.sleuthkit.datamodel.Content.newDataArtifact(), org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DATETIME, org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_MESSAGE_TYPE, org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PHONE_NUMBER, org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PHONE_NUMBER_FROM, org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PHONE_NUMBER_TO, org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_SUBJECT, org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_TEXT, and org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_THREAD_ID.


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

Copyright © 2011-2021 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.