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

Classes

class  AccountsQueryCallback
 
class  CentralRepoAccountType
 

Public Member Functions

boolean equals (Object obj)
 
CentralRepoAccountType getAccountType ()
 
long getId ()
 
String getIdentifier ()
 
int hashCode ()
 

Static Public Member Functions

static Collection< CentralRepoAccountgetAccountsWithIdentifier (String accountIdentifier) throws InvalidAccountIDException, CentralRepoException
 
static Collection< CentralRepoAccountgetAccountsWithIdentifierLike (String accountIdentifierSubstring) throws CentralRepoException
 
static Collection< CentralRepoAccountgetAllAccounts () throws CentralRepoException
 
static String normalizeAccountIdentifier (CentralRepoAccountType crAccountType, String accountIdentifier) throws InvalidAccountIDException
 

Static Private Member Functions

static String normalizeAccountIdentifier (String accountIdentifier) throws InvalidAccountIDException
 

Private Attributes

final long accountId
 
final CentralRepoAccountType accountType
 
final String typeSpecificIdentifier
 

Static Private Attributes

static final String ACCOUNTS_QUERY_CLAUSE
 

Detailed Description

This class abstracts an Account as stored in the CR database.

Definition at line 35 of file CentralRepoAccount.java.

Member Function Documentation

boolean org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.equals ( Object  obj)
static Collection<CentralRepoAccount> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountsWithIdentifier ( String  accountIdentifier) throws InvalidAccountIDException, CentralRepoException
static

Get all accounts with account identifier matching the given identifier.

Parameters
accountIdentifierAccount identifier to look for.
Returns
Collection of all accounts with identifier matching the given identifier, may be empty.
Exceptions
CentralRepoExceptionIf there is an error in getting the accounts.

Definition at line 251 of file CentralRepoAccount.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.ACCOUNTS_QUERY_CLAUSE, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.executeQuery(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getInstance(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.normalizeAccountIdentifier().

Referenced by org.sleuthkit.autopsy.centralrepository.persona.PersonaAccountDialog.okBtnActionPerformed().

static Collection<CentralRepoAccount> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountsWithIdentifierLike ( String  accountIdentifierSubstring) throws CentralRepoException
static

Get all accounts with account identifier matching the given substring.

Parameters
accountIdentifierSubstringAccount identifier substring to look for.
Returns
Collection of all accounts with identifier matching the given substring, may be empty.
Exceptions
CentralRepoExceptionIf there is an error in getting the accounts.

Definition at line 226 of file CentralRepoAccount.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.ACCOUNTS_QUERY_CLAUSE, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.executeQuery(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getInstance().

CentralRepoAccountType org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountType ( )
static Collection<CentralRepoAccount> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAllAccounts ( ) throws CentralRepoException
static

Get all central repo accounts.

Returns
Collection of all accounts with identifier matching the given identifier, may be empty.
Exceptions
CentralRepoExceptionIf there is an error in getting the accounts.

Definition at line 275 of file CentralRepoAccount.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.ACCOUNTS_QUERY_CLAUSE, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.executeQuery(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getInstance().

long org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getId ( )
String org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getIdentifier ( )

Gets unique identifier (assigned by a provider) for the account. Example includes an email address, a phone number, or a website username.

This is the normalized for of the ID.

Returns
type specific account id.

Definition at line 124 of file CentralRepoAccount.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.typeSpecificIdentifier.

Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.equals().

int org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.hashCode ( )
static String org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.normalizeAccountIdentifier ( String  accountIdentifier) throws InvalidAccountIDException
staticprivate

Attempts to normalize an account identifier, after trying to guess the account type.

Parameters
accountIdentifierAccount identifier to be normalized.
Returns
normalized identifier
Exceptions
InvalidAccountIDExceptionIf the account identifier is not valid.

Definition at line 296 of file CentralRepoAccount.java.

Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountsWithIdentifier().

static String org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.normalizeAccountIdentifier ( CentralRepoAccountType  crAccountType,
String  accountIdentifier 
) throws InvalidAccountIDException
static

Normalizes an account identifier, based on the given account type.

Parameters
crAccountTypeAccount type.
accountIdentifierAccount identifier to be normalized.
Returns
Normalized identifier.
Exceptions
InvalidAccountIDExceptionIf the account identifier is invalid.

Definition at line 325 of file CentralRepoAccount.java.

Member Data Documentation

final long org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.accountId
private
final String org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.ACCOUNTS_QUERY_CLAUSE
staticprivate
Initial value:
= "SELECT accounts.id as account_id, "
+ " accounts.account_type_id as account_type_id, accounts.account_unique_identifier as account_unique_identifier,"
+ " account_types.id as account_type_id, "
+ " account_types.type_name as type_name, account_types.display_name as display_name, account_types.correlation_type_id as correlation_type_id "
+ " FROM accounts "
+ " JOIN account_types as account_types on accounts.account_type_id = account_types.id "

Definition at line 207 of file CentralRepoAccount.java.

Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountsWithIdentifier(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountsWithIdentifierLike(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAllAccounts().

final CentralRepoAccountType org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.accountType
private
final String org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.typeSpecificIdentifier
private

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

Copyright © 2012-2021 Basis Technology. Generated on: Fri Aug 6 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.