public interface EnterpriseClient
| Modifier and Type | Method and Description |
|---|---|
Optional<List<ClientIdNamePair>> |
getClientNameIdPairs(String authToken)
gets an array of all name/id pairs of clients that the authorized user can access
|
Optional<String[]> |
getConfigNames(String authToken)
returns String[] of scan config names
|
Optional<String> |
getEngineGroupIdFromName(String authToken,
String engineGroupName)
fetches the unique id of the engine group given by engineGroupName
|
Optional<String[]> |
getEngineGroupNamesForClient(String authToken)
fetches the names of available engine groups
|
Optional<InputStream> |
getReportZip(String authToken,
String scanId)
provides InputStream for the request report zip
|
Optional<String> |
getScanStatus(String authToken,
String scanId)
gets the current status of the scan identified by scanId
|
String |
getUrl()
returns the full URL for the enterprise rest endpoint
|
Optional<String> |
getVulnerabilitiesSummaryXml(String authToken,
String scanId)
gets the vulnerability summary XML as a String
|
boolean |
hasReport(String authToken,
String scanId)
determines if a scan identified by scanId has a report or not
|
boolean |
isScanFinished(String authToken,
String scanId)
determines if the scan identified by scanId has finished
|
Optional<String> |
login(AuthenticationModel authModel)
calls the /Authentication/Login endpoint with provided details
|
ScanResult |
runScanByConfigName(String authToken,
String configName)
starts a new scan using configuration matching configName
|
boolean |
saveConfig(String authToken,
String name,
URL url,
String engineGroupId)
calls the /Configs/SaveConfig endpoint using the provided data to create or update a configuration
|
boolean |
testAuthentication(AuthenticationModel authModel)
calls the /Authentication/Login endpoint with provided details returning true if credentials are valid
|
String getUrl()
Optional<String> login(AuthenticationModel authModel)
authModel - authentication details such as username, password and optionally clientIdboolean testAuthentication(AuthenticationModel authModel)
authModel - authentication details such as username, password and optionally clientIdOptional<String[]> getEngineGroupNamesForClient(String authToken)
authToken - authorization token required to execute requestOptional<String> getEngineGroupIdFromName(String authToken, String engineGroupName)
authToken - authorization token required to execute requestengineGroupName - name of the engine to get the id ofScanResult runScanByConfigName(String authToken, String configName)
authToken - authorization token required to execute requestconfigName - name of the config to runOptional<String> getScanStatus(String authToken, String scanId)
authToken - authorization token required to execute requestscanId - unique scan identifier of the scanboolean isScanFinished(String authToken, String scanId)
authToken - authorization token required to execute requestscanId - unique scan identifier of the scanboolean hasReport(String authToken, String scanId)
authToken - authorization token required to execute requestscanId - unique scan identifier of the scanOptional<String[]> getConfigNames(String authToken)
authToken - authorization token required to execute requestboolean saveConfig(String authToken, String name, URL url, String engineGroupId)
authToken - authorization token required to execute requestname - name of the scanconfig to saveurl - target URL for the scanengineGroupId - unique engine group id for the engine(s) to be used to execute the scanOptional<String> getVulnerabilitiesSummaryXml(String authToken, String scanId)
authToken - authorization token required to execute requestscanId - unique scan identifier of the scan to provide report forOptional<InputStream> getReportZip(String authToken, String scanId)
authToken - authorization token required to execute requestscanId - unique scan identifier of the scan to provide report forOptional<List<ClientIdNamePair>> getClientNameIdPairs(String authToken)
authToken - authorization token required to execute requestCopyright © 2016–2021. All rights reserved.