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

Public Member Functions

void addHostNameAndIpMapping (HostAddress dnsNameAddress, HostAddress ipAddress, Long time, Content source) throws TskCoreException
 
void addHostNameAndIpMapping (HostAddress dnsNameAddress, HostAddress ipAddress, Long time, Content source, final SleuthkitCase.CaseDbTransaction caseDbTransaction) throws TskCoreException
 
void addUsage (Content content, HostAddress hostAddress) throws TskCoreException
 
void assignHostToAddress (Host host, HostAddress hostAddress, Long time, Content source) throws TskCoreException
 
Optional< HostAddressgetHostAddress (HostAddress.HostAddressType type, String address) throws TskCoreException
 
HostAddress getHostAddress (long id) throws TskCoreException
 
List< HostAddressgetHostAddressesUsedByContent (Content content) throws TskCoreException
 
List< HostAddressgetHostAddressesUsedOnDataSource (Content dataSource) throws TskCoreException
 
List< HostAddressgetIpAddress (String hostname) throws TskCoreException
 
Optional< Long > hostAddressExists (HostAddress.HostAddressType type, String address) throws TskCoreException
 
boolean hostNameAndIpMappingExists (long addressObjectId) throws TskCoreException
 
HostAddress newHostAddress (HostAddress.HostAddressType type, String address) throws TskCoreException
 

Detailed Description

Responsible for creating/updating/retrieving host addresses.

Definition at line 40 of file HostAddressManager.java.

Member Function Documentation

void org.sleuthkit.datamodel.HostAddressManager.addHostNameAndIpMapping ( HostAddress  dnsNameAddress,
HostAddress  ipAddress,
Long  time,
Content  source 
) throws TskCoreException

Adds a row to the ipAddress table.

Parameters
dnsNameAddressThe DNS name.
ipAddressAn IP address associated with the DNS name.
timeTimestamp when this relationship was true.
sourceThe source.
Exceptions
TskCoreException

Definition at line 370 of file HostAddressManager.java.

References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseWriteLock(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseWriteLock().

Referenced by org.sleuthkit.datamodel.HostAddressManager.addHostNameAndIpMapping().

void org.sleuthkit.datamodel.HostAddressManager.addHostNameAndIpMapping ( HostAddress  dnsNameAddress,
HostAddress  ipAddress,
Long  time,
Content  source,
final SleuthkitCase.CaseDbTransaction  caseDbTransaction 
) throws TskCoreException

Adds a row to the host address dns ip map table.

Parameters
dnsNameAddressThe DNS name.
ipAddressAn IP address associated with the DNS name.
timeTimestamp when this relationship was true.
sourceThe source.
caseDbTransactionThe transaction in the scope of which the operation is to be performed, managed by the caller. Null is not permitted.
Exceptions
TskCoreException

Definition at line 395 of file HostAddressManager.java.

References org.sleuthkit.datamodel.HostAddressManager.addHostNameAndIpMapping(), and org.sleuthkit.datamodel.HostAddress.getAddress().

void org.sleuthkit.datamodel.HostAddressManager.addUsage ( Content  content,
HostAddress  hostAddress 
) throws TskCoreException

Associate the given artifact with a HostAddress.

Parameters
contentThe content/item using the address.
hostAddressThe host address.

Definition at line 630 of file HostAddressManager.java.

References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseWriteLock(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseWriteLock().

void org.sleuthkit.datamodel.HostAddressManager.assignHostToAddress ( Host  host,
HostAddress  hostAddress,
Long  time,
Content  source 
) throws TskCoreException

Add a host to address mapping.

Parameters
hostHost.
hostAddressAddress.
timeTime at which the mapping was valid.
sourceContent from where this mapping was derived.
Exceptions
TskCoreException

Definition at line 250 of file HostAddressManager.java.

References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseWriteLock(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseWriteLock().

Optional<HostAddress> org.sleuthkit.datamodel.HostAddressManager.getHostAddress ( HostAddress.HostAddressType  type,
String  address 
) throws TskCoreException
HostAddress org.sleuthkit.datamodel.HostAddressManager.getHostAddress ( long  id) throws TskCoreException
List<HostAddress> org.sleuthkit.datamodel.HostAddressManager.getHostAddressesUsedByContent ( Content  content) throws TskCoreException

Get all the addresses that have been used by the given content.

Parameters
contentContent to get addresses used for.
Returns
List of addresses, may be empty.
Exceptions
TskCoreException

Definition at line 667 of file HostAddressManager.java.

List<HostAddress> org.sleuthkit.datamodel.HostAddressManager.getHostAddressesUsedOnDataSource ( Content  dataSource) throws TskCoreException

Get all the addresses that have been used by the given data source.

Parameters
dataSourceData source to get addresses used for.
Returns
List of addresses, may be empty.
Exceptions
TskCoreException

Definition at line 683 of file HostAddressManager.java.

List<HostAddress> org.sleuthkit.datamodel.HostAddressManager.getIpAddress ( String  hostname) throws TskCoreException

Gets the IP addresses for a given HOSTNAME name.

Parameters
hostnameHOSTNAME name to look for.
Returns
List of IP Addresses mapped to this dns name. May be empty.
Exceptions
TskCoreException

Definition at line 558 of file HostAddressManager.java.

References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseReadLock(), org.sleuthkit.datamodel.HostAddressManager.getHostAddress(), org.sleuthkit.datamodel.HostAddress.HostAddressType.HOSTNAME, and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseReadLock().

Optional<Long> org.sleuthkit.datamodel.HostAddressManager.hostAddressExists ( HostAddress.HostAddressType  type,
String  address 
) throws TskCoreException
boolean org.sleuthkit.datamodel.HostAddressManager.hostNameAndIpMappingExists ( long  addressObjectId) throws TskCoreException

Returns true if addressObjectId is used as either IP or host name
Note: This api call uses a database connection. Do not invoke within a transaction.

Parameters
addressObjectId
Returns
Exceptions
TskCoreException

Definition at line 461 of file HostAddressManager.java.

References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseReadLock(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseReadLock().

HostAddress org.sleuthkit.datamodel.HostAddressManager.newHostAddress ( HostAddress.HostAddressType  type,
String  address 
) throws TskCoreException

Add a new address with the given type and address. If the address already exists in the database, the existing entry will be returned.

Parameters
typeAddress type.
addressAddress (case-insensitive).
Returns
HostAddress
Exceptions
TskCoreException

Definition at line 178 of file HostAddressManager.java.

References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseWriteLock(), org.sleuthkit.datamodel.HostAddressManager.getHostAddress(), org.sleuthkit.datamodel.HostAddressManager.newHostAddress(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseWriteLock().

Referenced by org.sleuthkit.datamodel.HostAddressManager.newHostAddress().


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.