Autopsy
4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Public Member Functions | |
AuthTokenResponse | getAuthToken (DecryptedLicenseResponse decrypted) throws CTCloudException |
AuthTokenResponse | getAuthToken (DecryptedLicenseResponse decrypted, Long fileUploadSize) throws CTCloudException |
LicenseResponse | getLicenseInfo (String licenseString) throws CTCloudException |
List< CTCloudBean > | getReputationResults (AuthenticatedRequestData authenticatedRequestData, List< String > md5Hashes) throws CTCloudException |
void | uploadFile (FileUploadRequest fileUploadRequest) throws CTCloudException |
void | uploadMeta (AuthenticatedRequestData authenticatedRequestData, MetadataUploadRequest metaRequest) throws CTCloudException |
Static Public Member Functions | |
static CTApiDAO | getInstance () |
Private Member Functions | |
CTApiDAO () | |
Static Private Member Functions | |
static String | getAppVersion () |
static Map< String, String > | getAuthParams (AuthenticatedRequestData authenticatedRequestData) |
Private Attributes | |
final CTCloudHttpClient | httpClient = CTCloudHttpClient.getInstance() |
Static Private Attributes | |
static final String | AUTH_TOKEN_REQUEST_PATH = "/_ah/api/auth/v2/generate_token" |
static final String | AUTOPSY_PRODUCT = "AUTOPSY" |
static final String | CTCLOUD_SERVER_HASH_PATH = "/_ah/api/reputation/v1/query/file/hash/md5?query_types=CORRELATION,MALWARE" |
static final String | CTCLOUD_UPLOAD_FILE_METADATA_PATH = "/_ah/api/reputation/v1/upload/meta" |
static final CTApiDAO | instance = new CTApiDAO() |
static final String | LICENSE_REQUEST_PATH = "/_ah/api/license/v1/activate" |
Data access layer for handling the CT api.
Definition at line 46 of file CTApiDAO.java.
|
private |
Definition at line 57 of file CTApiDAO.java.
|
staticprivate |
Definition at line 64 of file CTApiDAO.java.
References org.sleuthkit.autopsy.coreutils.Version.getVersion().
Referenced by com.basistech.df.cybertriage.autopsy.ctapi.CTApiDAO.getAuthToken().
|
staticprivate |
Definition at line 104 of file CTApiDAO.java.
References com.basistech.df.cybertriage.autopsy.ctapi.json.AuthenticatedRequestData.getApiKey(), com.basistech.df.cybertriage.autopsy.ctapi.json.AuthenticatedRequestData.getHostId(), and com.basistech.df.cybertriage.autopsy.ctapi.json.AuthenticatedRequestData.getToken().
Referenced by com.basistech.df.cybertriage.autopsy.ctapi.CTApiDAO.getReputationResults(), and com.basistech.df.cybertriage.autopsy.ctapi.CTApiDAO.uploadMeta().
AuthTokenResponse com.basistech.df.cybertriage.autopsy.ctapi.CTApiDAO.getAuthToken | ( | DecryptedLicenseResponse | decrypted | ) | throws CTCloudException |
Definition at line 81 of file CTApiDAO.java.
Referenced by com.basistech.df.cybertriage.autopsy.ctoptions.ctcloud.CTMalwareScannerOptionsPanel.AuthTokenFetcher.doInBackground(), com.basistech.df.cybertriage.autopsy.malwarescan.MalwareScanIngestModule.SharedProcessing.getHashLookupResults(), com.basistech.df.cybertriage.autopsy.malwarescan.MalwareScanIngestModule.SharedProcessing.getNewJobState(), and com.basistech.df.cybertriage.autopsy.malwarescan.MalwareScanIngestModule.SharedProcessing.uploadFile().
AuthTokenResponse com.basistech.df.cybertriage.autopsy.ctapi.CTApiDAO.getAuthToken | ( | DecryptedLicenseResponse | decrypted, |
Long | fileUploadSize | ||
) | throws CTCloudException |
Definition at line 85 of file CTApiDAO.java.
References com.basistech.df.cybertriage.autopsy.ctapi.CTApiDAO.getAppVersion(), com.basistech.df.cybertriage.autopsy.ctapi.json.AuthTokenRequest.setAutopsyVersion(), com.basistech.df.cybertriage.autopsy.ctapi.json.AuthTokenRequest.setBoostLicenseId(), com.basistech.df.cybertriage.autopsy.ctapi.json.AuthTokenRequest.setFileUploadSize(), and com.basistech.df.cybertriage.autopsy.ctapi.json.AuthTokenRequest.setRequestFileUpload().
|
static |
Definition at line 60 of file CTApiDAO.java.
References com.basistech.df.cybertriage.autopsy.ctapi.CTApiDAO.instance.
LicenseResponse com.basistech.df.cybertriage.autopsy.ctapi.CTApiDAO.getLicenseInfo | ( | String | licenseString | ) | throws CTCloudException |
Definition at line 70 of file CTApiDAO.java.
References com.basistech.df.cybertriage.autopsy.ctapi.util.CTHostIDGenerationUtil.generateLicenseHostID(), org.sleuthkit.autopsy.core.UserPreferences.getInferredUserTimeZone(), com.basistech.df.cybertriage.autopsy.ctapi.json.LicenseRequest.setBoostLicenseCode(), com.basistech.df.cybertriage.autopsy.ctapi.json.LicenseRequest.setHostId(), and com.basistech.df.cybertriage.autopsy.ctapi.json.LicenseRequest.setTimeZoneId().
Referenced by com.basistech.df.cybertriage.autopsy.ctoptions.ctcloud.CTMalwareScannerOptionsPanel.LicenseFetcher.doInBackground().
List<CTCloudBean> com.basistech.df.cybertriage.autopsy.ctapi.CTApiDAO.getReputationResults | ( | AuthenticatedRequestData | authenticatedRequestData, |
List< String > | md5Hashes | ||
) | throws CTCloudException |
Definition at line 114 of file CTApiDAO.java.
References com.basistech.df.cybertriage.autopsy.ctapi.CTApiDAO.getAuthParams(), com.basistech.df.cybertriage.autopsy.ctapi.json.CTCloudBeanResponse.getItems(), and com.basistech.df.cybertriage.autopsy.ctapi.json.FileReputationRequest.setHashes().
Referenced by com.basistech.df.cybertriage.autopsy.malwarescan.MalwareScanIngestModule.SharedProcessing.getHashLookupResults().
void com.basistech.df.cybertriage.autopsy.ctapi.CTApiDAO.uploadFile | ( | FileUploadRequest | fileUploadRequest | ) | throws CTCloudException |
Definition at line 96 of file CTApiDAO.java.
Referenced by com.basistech.df.cybertriage.autopsy.malwarescan.MalwareScanIngestModule.SharedProcessing.uploadFile().
void com.basistech.df.cybertriage.autopsy.ctapi.CTApiDAO.uploadMeta | ( | AuthenticatedRequestData | authenticatedRequestData, |
MetadataUploadRequest | metaRequest | ||
) | throws CTCloudException |
Definition at line 100 of file CTApiDAO.java.
References com.basistech.df.cybertriage.autopsy.ctapi.CTApiDAO.getAuthParams().
Referenced by com.basistech.df.cybertriage.autopsy.malwarescan.MalwareScanIngestModule.SharedProcessing.uploadFile().
|
staticprivate |
Definition at line 49 of file CTApiDAO.java.
|
staticprivate |
Definition at line 53 of file CTApiDAO.java.
|
staticprivate |
Definition at line 50 of file CTApiDAO.java.
|
staticprivate |
Definition at line 51 of file CTApiDAO.java.
|
private |
Definition at line 68 of file CTApiDAO.java.
|
staticprivate |
Definition at line 55 of file CTApiDAO.java.
Referenced by com.basistech.df.cybertriage.autopsy.ctapi.CTApiDAO.getInstance().
|
staticprivate |
Definition at line 48 of file CTApiDAO.java.
Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.