Skip to content

Commit 761b5fa

Browse files
authored
Merge pull request #103 from docusign/2.9.0
version 2.9.0 of the Java SDK
2 parents c514686 + b03c84c commit 761b5fa

File tree

6 files changed

+23
-13
lines changed

6 files changed

+23
-13
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
# DocuSign Java Client Changelog
22
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
33

4+
## [v2.9.0] - eSignature API v18.4.02 - 2019-02-27
5+
### Added
6+
- Support for the **latest DocuSign API** (18.4.02.00).
7+
- Support for HTTP(S) proxy through System Properties. The supported proxy parameters are:
8+
- For HTTPS (recommended): https.proxyHost, https.proxyPort, https.proxyUser and https.proxyPassword
9+
- For HTTP: http.proxyHost, http.proxyPort, http.proxyUser and http.proxyPassword
10+
### Fixed
11+
- Fixed a problem with the AccountsApi.UpdateBrandLogoByType method that prevented it from uploading brand logos.
12+
- Fixed AuthName comparison. (DCM-3160)
13+
414
## [v2.9.0-RC1] - eSignature API v18.4.02 - 2019-02-15
515
### Added
616
- Support for the **latest DocuSign API** (18.4.02.00).
7-
- Ability to upload a brand logo through updateBrandLogoByType
17+
- Fixed a problem with the AccountsApi.UpdateBrandLogoByType method that prevented it from uploading brand logos.
818
- Support for HTTP(S) proxy through System Properties. The supported proxy parameters are:
919
- For HTTPS (recommended): https.proxyHost, https.proxyPort, https.proxyUser and https.proxyPassword
1020
- For HTTP: http.proxyHost, http.proxyPort, http.proxyUser and http.proxyPassword

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add this dependency to your project's POM:
2121
<dependency>
2222
<groupId>com.docusign</groupId>
2323
<artifactId>docusign-esign-java</artifactId>
24-
<version>2.9.0-RC1</version>
24+
<version>2.9.0</version>
2525
</dependency>
2626
```
2727

@@ -30,7 +30,7 @@ Add this dependency to your project's POM:
3030
Add this dependency to your project's build file:
3131

3232
```groovy
33-
compile "com.docusign:docusign-esign-java:2.9.0-RC1"
33+
compile "com.docusign:docusign-esign-java:2.9.0"
3434
```
3535

3636
#### Dependencies
@@ -73,8 +73,8 @@ android {
7373

7474
This client is available through the following Java package managers:
7575

76-
- [Nexus Repository Manager](https://oss.sonatype.org/#nexus-search;quick~docusign-esign-java) (oss.sonatype.org). You can search for com.docusign or docusign-esign-java. The current version is 2.9.0-RC1.
77-
- [JFrog Bintray](https://bintray.com/dsdevcenter/maven/docusign-esign-java) (bintray.com). You can search for com.docusign or docusign-esign-java. The current version is 2.9.0-RC1.
76+
- [Nexus Repository Manager](https://oss.sonatype.org/#nexus-search;quick~docusign-esign-java) (oss.sonatype.org). You can search for com.docusign or docusign-esign-java. The current version is 2.9.0.
77+
- [JFrog Bintray](https://bintray.com/dsdevcenter/maven/docusign-esign-java) (bintray.com). You can search for com.docusign or docusign-esign-java. The current version is 2.9.0.
7878

7979

8080
Usage

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.docusign'
5-
version = '2.9.0-RC1'
5+
version = '2.9.0'
66

77
buildscript {
88
repositories {

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<artifactId>docusign-esign-java</artifactId>
55
<packaging>jar</packaging>
66
<name>docusign-esign-java</name>
7-
<version>2.9.0-RC-1</version>
7+
<version>2.9.0</version>
88
<description>The official DocuSign eSignature JAVA client is based on version 2 of the DocuSign REST API and provides libraries for JAVA application integration. It is recommended that you use this version of the library for new development.</description>
99
<url>https://www.docusign.com/developer-center</url>
1010

src/main/java/com/docusign/esign/client/ApiClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ public ApiClient(String oAuthBasePath, String[] authNames) {
147147
this.setOAuthBasePath(oAuthBasePath);
148148
for(String authName : authNames) {
149149
Authentication auth;
150-
if (authName == "docusignAccessCode") {
150+
if ("docusignAccessCode".equals(authName)) {
151151
auth = new OAuth(httpClient, OAuthFlow.accessCode, oAuthBasePath + "/oauth/auth", oAuthBasePath + "/oauth/token", "all");
152-
} else if (authName == "docusignApiKey") {
152+
} else if ("docusignApiKey".equals(authName)) {
153153
auth = new ApiKeyAuth("header", "docusignApiKey");
154154
} else {
155155
throw new RuntimeException("auth name \"" + authName + "\" not found in available auth names");
@@ -594,7 +594,7 @@ public OAuth.OAuthToken generateAccessToken(String clientId, String clientSecret
594594
*/
595595
public OAuth.UserInfo getUserInfo(String accessToken) throws IllegalArgumentException, ApiException {
596596
try {
597-
if (accessToken == null || accessToken == "") {
597+
if (accessToken == null || "".equals(accessToken)) {
598598
throw new IllegalArgumentException("Cannot find a valid access token. Make sure OAuth is configured before you try again.");
599599
}
600600

@@ -736,7 +736,7 @@ public OAuth.OAuthToken requestJWTUserToken(String clientId, String userId, java
736736
ObjectMapper mapper = new ObjectMapper();
737737
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
738738
OAuth.OAuthToken oAuthToken = mapper.readValue(response.getEntityInputStream(), OAuth.OAuthToken.class);
739-
if (oAuthToken.getAccessToken() == null || oAuthToken.getAccessToken() == "" || oAuthToken.getExpiresIn() <= 0) {
739+
if (oAuthToken.getAccessToken() == null || "".equals(oAuthToken.getAccessToken()) || oAuthToken.getExpiresIn() <= 0) {
740740
throw new ApiException("Error while requesting an access token: " + response.toString());
741741
}
742742
return oAuthToken;

src/main/java/com/docusign/esign/client/auth/JWTUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static String generateJWTAssertionFromByteArray(byte[] rsaPrivateKey, Str
4949
if (rsaPrivateKey == null || rsaPrivateKey.length == 0) {
5050
throw new IllegalArgumentException("rsaPrivateKey byte array is empty");
5151
}
52-
if (oAuthBasePath == null || oAuthBasePath == "" || clientId == null || clientId == "") {
52+
if (oAuthBasePath == null || "".equals(oAuthBasePath) || clientId == null || "".equals(clientId)) {
5353
throw new IllegalArgumentException("One of the arguments is null or empty");
5454
}
5555

@@ -85,7 +85,7 @@ public static String generateJWTAssertion(String publicKeyFilename, String priva
8585
if (expiresIn <= 0L) {
8686
throw new IllegalArgumentException("expiresIn should be a non-negative value");
8787
}
88-
if (publicKeyFilename == null || publicKeyFilename == "" || privateKeyFilename == null || privateKeyFilename == "" || oAuthBasePath == null || oAuthBasePath == "" || clientId == null || clientId == "" || userId == null || userId == "") {
88+
if (publicKeyFilename == null || "".equals(publicKeyFilename) || privateKeyFilename == null || "".equals(privateKeyFilename) || oAuthBasePath == null || "".equals(oAuthBasePath) || clientId == null || "".equals(clientId) || userId == null || "".equals(userId)) {
8989
throw new IllegalArgumentException("One of the arguments is null or empty");
9090
}
9191

0 commit comments

Comments
 (0)