public class ProtecodeScService extends Object
Constructor and Description |
---|
ProtecodeScService(String credentialsId,
URL host,
hudson.model.Run<?,?> run,
boolean checkCertificate)
The implementation of the BDBA backend
|
Modifier and Type | Method and Description |
---|---|
ConnectionStatus |
connectionOk()
Test the connection with a HEAD call.
|
void |
groups(Listeners.GroupService listener)
Fetch groups for a user
|
void |
poll(Integer scanId,
Listeners.PollService listener) |
void |
scan(String group,
String fileName,
okhttp3.RequestBody requestBody,
Listeners.ScanService listener) |
void |
scanFetchFromUrl(String group,
String url,
Map<String,String> headers,
Listeners.ScanService listener) |
void |
scanResult(String sha1sum,
Listeners.ResultService listener) |
public ProtecodeScService(String credentialsId, URL host, hudson.model.Run<?,?> run, boolean checkCertificate)
credentialsId
- the id of the chosen credentials. This is used when the connection is built.host
- Host URL for BDBA instancerun
- The Jenkins Run instance to be used (for accessing credentials)checkCertificate
- whether to check certificate or notpublic void scan(String group, String fileName, okhttp3.RequestBody requestBody, Listeners.ScanService listener)
public void scanFetchFromUrl(String group, String url, Map<String,String> headers, Listeners.ScanService listener)
public void poll(Integer scanId, Listeners.PollService listener)
public void scanResult(String sha1sum, Listeners.ResultService listener)
public ConnectionStatus connectionOk()
public void groups(Listeners.GroupService listener)
listener
- GroupService instance to handle responsesCopyright © 2016–2023. All rights reserved.