Sleuth Kit Java Bindings (JNI)
4.12.1
Java bindings for using The Sleuth Kit
|
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< HostAddress > | getHostAddress (HostAddress.HostAddressType type, String address) throws TskCoreException |
HostAddress | getHostAddress (long id) throws TskCoreException |
List< HostAddress > | getHostAddressesAssignedTo (Host host) throws TskCoreException |
List< HostAddress > | getHostAddressesUsedByContent (Content content) throws TskCoreException |
List< HostAddress > | getHostAddressesUsedOnDataSource (Content dataSource) throws TskCoreException |
List< HostAddress > | getIpAddress (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 |
Responsible for creating/updating/retrieving host addresses.
Definition at line 40 of file HostAddressManager.java.
void org.sleuthkit.datamodel.HostAddressManager.addHostNameAndIpMapping | ( | HostAddress | dnsNameAddress, |
HostAddress | ipAddress, | ||
Long | time, | ||
Content | source | ||
) | throws TskCoreException |
Adds a row to the ipAddress table.
dnsNameAddress | The DNS name. |
ipAddress | An IP address associated with the DNS name. |
time | Timestamp when this relationship was true. |
source | The source. |
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.
dnsNameAddress | The DNS name. |
ipAddress | An IP address associated with the DNS name. |
time | Timestamp when this relationship was true. |
source | The source. |
caseDbTransaction | The transaction in the scope of which the operation is to be performed, managed by the caller. Null is not permitted. |
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.
content | The content/item using the address. |
hostAddress | The 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.
host | Host. |
hostAddress | Address. |
time | Time at which the mapping was valid. |
source | Content from where this mapping was derived. |
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 |
Gets an address record with given type and address.
type | Address type. |
address | Address. |
TskCoreException |
Definition at line 90 of file HostAddressManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseReadLock(), org.sleuthkit.datamodel.HostAddressManager.getHostAddress(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseReadLock().
Referenced by org.sleuthkit.datamodel.SleuthkitCase.getContentById(), org.sleuthkit.datamodel.HostAddressManager.getHostAddress(), org.sleuthkit.datamodel.HostAddressManager.getHostAddressesAssignedTo(), org.sleuthkit.datamodel.HostAddressManager.getIpAddress(), and org.sleuthkit.datamodel.HostAddressManager.newHostAddress().
HostAddress org.sleuthkit.datamodel.HostAddressManager.getHostAddress | ( | long | id | ) | throws TskCoreException |
Gets an address for the given object id.
id | Object id. |
TskCoreException |
Definition at line 319 of file HostAddressManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseReadLock(), org.sleuthkit.datamodel.HostAddressManager.getHostAddress(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseReadLock().
List<HostAddress> org.sleuthkit.datamodel.HostAddressManager.getHostAddressesAssignedTo | ( | Host | host | ) | throws TskCoreException |
Get all the addresses that have been assigned to the given host.
host | Host to get addresses for. |
Definition at line 286 of file HostAddressManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseReadLock(), org.sleuthkit.datamodel.HostAddressManager.getHostAddress(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseReadLock().
List<HostAddress> org.sleuthkit.datamodel.HostAddressManager.getHostAddressesUsedByContent | ( | Content | content | ) | throws TskCoreException |
Get all the addresses that have been used by the given content.
content | Content to get addresses used for. |
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.
dataSource | Data source to get addresses used for. |
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.
hostname | HOSTNAME name to look for. |
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 |
Returns ObjectId of HostAddress if it exists.
Note: This api call uses a database connection. Do not invoke within a transaction.
type | |
address |
TskCoreException |
Definition at line 508 of file HostAddressManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseReadLock(), org.sleuthkit.datamodel.HostAddress.HostAddressType.DNS_AUTO, org.sleuthkit.datamodel.HostAddress.HostAddressType.fromID(), org.sleuthkit.datamodel.HostAddress.getId(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseReadLock().
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.
addressObjectId |
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.
type | Address type. |
address | Address (case-insensitive). |
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().
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.