Package com.vrondakis.zap
Interface ZapDriver
-
- All Known Implementing Classes:
ZapDriverImpl
public interface ZapDriver
-
-
Field Summary
Fields Modifier and Type Field Description static int
COMPLETED_PERCENTAGE
static int
ZAP_INITIALIZE_TIMEOUT
static int
ZAP_INITIALIZE_WAIT
static long
ZAP_SCAN_SLEEP
static long
ZAP_SCAN_STATUS_PRINT_INTERVAL
-
Method Summary
-
-
-
Field Detail
-
COMPLETED_PERCENTAGE
static final int COMPLETED_PERCENTAGE
- See Also:
- Constant Field Values
-
ZAP_SCAN_SLEEP
static final long ZAP_SCAN_SLEEP
- See Also:
- Constant Field Values
-
ZAP_SCAN_STATUS_PRINT_INTERVAL
static final long ZAP_SCAN_STATUS_PRINT_INTERVAL
- See Also:
- Constant Field Values
-
ZAP_INITIALIZE_TIMEOUT
static final int ZAP_INITIALIZE_TIMEOUT
- See Also:
- Constant Field Values
-
ZAP_INITIALIZE_WAIT
static final int ZAP_INITIALIZE_WAIT
- See Also:
- Constant Field Values
-
-
Method Detail
-
setLogger
void setLogger(PrintStream logger)
-
shutdownZap
void shutdownZap() throws ZapExecutionException
- Throws:
ZapExecutionException
-
setZapMode
void setZapMode(String zapMode) throws ZapExecutionException
- Throws:
ZapExecutionException
-
startZapCrawler
void startZapCrawler(RunZapCrawlerParameters zcp) throws ZapExecutionException, ZapExecutionException
- Throws:
ZapExecutionException
-
zapCrawlerStatus
int zapCrawlerStatus()
-
importUrls
void importUrls(String path) throws ZapExecutionException
- Throws:
ZapExecutionException
-
loadSession
void loadSession(String sessionPath) throws ZapExecutionException
- Throws:
ZapExecutionException
-
loadPolicy
void loadPolicy(String policy) throws ZapExecutionException
- Throws:
ZapExecutionException
-
zapAttack
boolean zapAttack(RunZapAttackStepParameters zsp) throws ZapExecutionException, com.mashape.unirest.http.exceptions.UnirestException, IOException, URISyntaxException
- Throws:
ZapExecutionException
com.mashape.unirest.http.exceptions.UnirestException
IOException
URISyntaxException
-
zapCrawlerSuccess
void zapCrawlerSuccess() throws InterruptedException, ZapExecutionException
-
zapAttackStatus
int zapAttackStatus()
-
startZapProcess
void startZapProcess(String zapHome, FilePath ws, Launcher launcher) throws IOException
- Throws:
IOException
-
enablePassiveScanners
void enablePassiveScanners(List<Integer> ids) throws ZapExecutionException
- Throws:
ZapExecutionException
-
disablePassiveScanners
void disablePassiveScanners(List<Integer> ids) throws ZapExecutionException
- Throws:
ZapExecutionException
-
setZapHost
void setZapHost(String zapHost)
-
setZapPort
void setZapPort(int zapPort)
-
setZapDir
void setZapDir(FilePath dir)
-
setFailBuild
void setFailBuild(int all, int hihg, int med, int low)
-
setZapTimeout
void setZapTimeout(int timeout)
-
getZapTimeout
int getZapTimeout()
-
getZapPort
int getZapPort()
-
getZapDir
FilePath getZapDir()
-
getZapHost
String getZapHost()
-
getZapReport
String getZapReport() throws IOException, com.mashape.unirest.http.exceptions.UnirestException, URISyntaxException
- Throws:
IOException
com.mashape.unirest.http.exceptions.UnirestException
URISyntaxException
-
getZapReportXML
String getZapReportXML() throws IOException, com.mashape.unirest.http.exceptions.UnirestException, URISyntaxException
- Throws:
IOException
com.mashape.unirest.http.exceptions.UnirestException
URISyntaxException
-
zapAliveCheck
void zapAliveCheck() throws ZapExecutionException
- Throws:
ZapExecutionException
-
setZapRootCaFile
void setZapRootCaFile(String rootCaFile)
-
getZapRootCaFile
String getZapRootCaFile()
-
setAdditionalConfigurations
void setAdditionalConfigurations(List<String> additionalConfigurations)
-
zapRecordsToScan
int zapRecordsToScan() throws ZapExecutionException
- Throws:
ZapExecutionException
-
zapAttackProgress
List<PluginProgress> zapAttackProgress()
-
-