public class KryptowireServiceImpl extends Object implements KryptowireService
KryptowireService.AnalysisStatus| Constructor and Description |
|---|
KryptowireServiceImpl(String apiEndpoint,
String apiKey) |
KryptowireServiceImpl(String apiEndpoint,
String apiKey,
org.apache.http.client.HttpClient httpclient) |
| Modifier and Type | Method and Description |
|---|---|
void |
downloadReport(String hash,
String type,
File targetFile) |
String |
getApiEndpoint() |
String |
getApiKey() |
org.json.JSONObject |
getResult(String uuid) |
KryptowireService.AnalysisStatus |
getStatus(String hash) |
boolean |
isCompleted(String hash) |
void |
setApiEndpoint(String apiEndpoint) |
void |
setApiKey(String apiKey) |
org.json.JSONObject |
submit(String platform,
hudson.FilePath filePath) |
public KryptowireServiceImpl(String apiEndpoint, String apiKey, org.apache.http.client.HttpClient httpclient)
public String getApiKey()
public String getApiEndpoint()
public void setApiKey(String apiKey)
public void setApiEndpoint(String apiEndpoint)
public org.json.JSONObject submit(String platform, hudson.FilePath filePath) throws IOException, InterruptedException
submit in interface KryptowireServiceIOExceptionInterruptedExceptionpublic KryptowireService.AnalysisStatus getStatus(String hash) throws IOException, InterruptedException
getStatus in interface KryptowireServiceIOExceptionInterruptedExceptionpublic org.json.JSONObject getResult(String uuid) throws IOException, InterruptedException
getResult in interface KryptowireServiceIOExceptionInterruptedExceptionpublic void downloadReport(String hash, String type, File targetFile) throws IOException, InterruptedException
downloadReport in interface KryptowireServiceIOExceptionInterruptedExceptionpublic boolean isCompleted(String hash) throws IOException, InterruptedException
isCompleted in interface KryptowireServiceIOExceptionInterruptedExceptionCopyright © 2016–2018. All rights reserved.