public class HttpApiConnector extends Object
| Constructor and Description |
|---|
HttpApiConnector(PrintStream log,
Artifact artifact,
String protecodeScHost,
String protecodeScGroup,
String protecodeScUser,
String protecodeScPass,
boolean doNotCheckCerts) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
init()
Initialize HTTP client
|
com.synopsys.protecode.sc.jenkins.HttpApiConnector.PollResult |
poll(String identifier) |
static String |
sanitizeArtifactFileName(String filename) |
String |
sendFile(Artifact artifact,
Map<String,String> scanMetaData)
Send artifact for scanning
|
public void init()
throws KeyManagementException,
NoSuchAlgorithmException
public String sendFile(Artifact artifact, Map<String,String> scanMetaData) throws IOException, ApiException, NoSuchAlgorithmException
artifact - scanMetaData - IOExceptionNoSuchAlgorithmException - When SHA-1 is not availableApiException - When connection fails
When authentication failspublic com.synopsys.protecode.sc.jenkins.HttpApiConnector.PollResult poll(String identifier)
public void close()
Copyright © 2016–2017. All rights reserved.