Skip to content

Commit efddc5d

Browse files
committed
Merge branch 'release-1.5.0' into master
2 parents 3f48801 + e20d134 commit efddc5d

27 files changed

+309
-44
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Summary of the changes done in each version.
44

5+
## 1.5.0 (2017-11-30)
6+
7+
### Updated APIs
8+
9+
- Core APIs updated for ZAP version 2.7.0.
10+
511
## 1.4.0 (2017-07-13)
612

713
### Ant Tasks

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Version](https://maven-badges.herokuapp.com/maven-central/org.zaproxy/zap-clientapi/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.zaproxy/zap-clientapi/)
44
[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
55
[![Build Status](https://api.travis-ci.org/zaproxy/zap-api-java.svg?branch=develop)](https://travis-ci.org/zaproxy/zap-api-java)
6+
[![Known Vulnerabilities](https://snyk.io/test/github/zaproxy/zap-api-java/badge.svg)](https://snyk.io/test/github/zaproxy/zap-api-java)
67

78
The Java implementation to access the [OWASP ZAP API](https://github.com/zaproxy/zaproxy/wiki/ApiDetails). For more information
89
about OWASP ZAP consult the (main) [OWASP ZAP project](https://github.com/zaproxy/zaproxy/).
@@ -21,7 +22,7 @@ can be obtained from [Maven Central](http://search.maven.org/) with following co
2122

2223
* GroupId: `org.zaproxy`
2324
* ArtifactId: `zap-clientapi`
24-
* Version: `1.4.0`
25+
* Version: `1.5.0`
2526

2627
Previous releases are also available, more details can be found in [Maven Central](http://search.maven.org/#search|ga|1|org.zaproxy).
2728

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
task wrapper(type: Wrapper) {
2-
gradleVersion = '4.0'
2+
gradleVersion = '4.2.1'
33
}
44

55
apply from: "gradle/compile.gradle"
@@ -10,8 +10,8 @@ subprojects {
1010
apply plugin: 'java'
1111
group = 'org.zaproxy'
1212

13-
version '1.4.0'
14-
ext.versionBC = '1.0.0'
13+
version '1.5.0'
14+
ext.versionBC = '1.3.0'
1515

1616
repositories {
1717
mavenLocal()

gradle/wrapper/gradle-wrapper.jar

2 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-bin.zip
6-
distributionSha256Sum=56bd2dde29ba2a93903c557da1745cafd72cdd8b6b0b83c05a40ed7896b79dfe
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.2.1-bin.zip

subprojects/zap-clientapi/src/main/java/org/zaproxy/clientapi/gen/Acsrf.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*
33
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
44
*
5-
* Copyright 2016 the ZAP development team
5+
* Copyright 2017 the ZAP development team
66
*
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.

subprojects/zap-clientapi/src/main/java/org/zaproxy/clientapi/gen/Ascan.java

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*
33
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
44
*
5-
* Copyright 2016 the ZAP development team
5+
* Copyright 2017 the ZAP development team
66
*
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
@@ -56,12 +56,18 @@ public ApiResponse scanProgress(String scanid) throws ClientApiException {
5656
return api.callApi("ascan", "view", "scanProgress", map);
5757
}
5858

59+
/**
60+
* Gets the IDs of the messages sent during the scan with the given ID. A message can be obtained with 'message' core view.
61+
*/
5962
public ApiResponse messagesIds(String scanid) throws ClientApiException {
6063
Map<String, String> map = new HashMap<>();
6164
map.put("scanId", scanid);
6265
return api.callApi("ascan", "view", "messagesIds", map);
6366
}
6467

68+
/**
69+
* Gets the IDs of the alerts raised during the scan with the given ID. An alert can be obtained with 'alert' core view.
70+
*/
6571
public ApiResponse alertsIds(String scanid) throws ClientApiException {
6672
Map<String, String> map = new HashMap<>();
6773
map.put("scanId", scanid);
@@ -453,6 +459,15 @@ public ApiResponse updateScanPolicy(String scanpolicyname, String alertthreshold
453459
return api.callApi("ascan", "action", "updateScanPolicy", map);
454460
}
455461

462+
/**
463+
* Imports a Scan Policy using the given file system path.
464+
*/
465+
public ApiResponse importScanPolicy(String path) throws ClientApiException {
466+
Map<String, String> map = new HashMap<>();
467+
map.put("path", path);
468+
return api.callApi("ascan", "action", "importScanPolicy", map);
469+
}
470+
456471
/**
457472
* Adds a new parameter excluded from the scan, using the specified name. Optionally sets if the new entry applies to a specific URL (default, all URLs) and sets the ID of the type of the parameter (default, ID of any type). The type IDs can be obtained with the view excludedParamTypes.
458473
*/
@@ -495,6 +510,16 @@ public ApiResponse removeExcludedParam(String idx) throws ClientApiException {
495510
return api.callApi("ascan", "action", "removeExcludedParam", map);
496511
}
497512

513+
/**
514+
* Skips the scanner using the given IDs of the scan and the scanner.
515+
*/
516+
public ApiResponse skipScanner(String scanid, String scannerid) throws ClientApiException {
517+
Map<String, String> map = new HashMap<>();
518+
map.put("scanId", scanid);
519+
map.put("scannerId", scannerid);
520+
return api.callApi("ascan", "action", "skipScanner", map);
521+
}
522+
498523
public ApiResponse setOptionAttackPolicy(String string) throws ClientApiException {
499524
Map<String, String> map = new HashMap<>();
500525
map.put("String", string);

subprojects/zap-clientapi/src/main/java/org/zaproxy/clientapi/gen/Authentication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*
33
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
44
*
5-
* Copyright 2016 the ZAP development team
5+
* Copyright 2017 the ZAP development team
66
*
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.

subprojects/zap-clientapi/src/main/java/org/zaproxy/clientapi/gen/Authorization.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*
33
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
44
*
5-
* Copyright 2016 the ZAP development team
5+
* Copyright 2017 the ZAP development team
66
*
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.

subprojects/zap-clientapi/src/main/java/org/zaproxy/clientapi/gen/Autoupdate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*
33
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
44
*
5-
* Copyright 2016 the ZAP development team
5+
* Copyright 2017 the ZAP development team
66
*
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)