Skip to content

Commit a39d994

Browse files
garg-muditroot
andauthored
Version 5.1.0-v2.1-24.1.01.00 release (#282)
Co-authored-by: root <[email protected]>
1 parent 3baeff8 commit a39d994

File tree

503 files changed

+2119
-533
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

503 files changed

+2119
-533
lines changed

CHANGELOG.md

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

4+
## [v5.1.0] - eSignature API v2.1-24.1.01.00 - 2024-06-25
5+
# Changed
6+
7+
- **Model classes are now serializable.**
8+
- **Resolved an issue** where setting a default SSL socket for the entire JVM caused unintended side effects.
9+
- **Fixed a memory leak** related to the class loader.
10+
- **Addressed dependency vulnerabilities** in the following libraries:
11+
- `bcprov-jdk18on` updated to version 1.78.1
12+
- `com.fasterxml.jackson.core` updated to version 2.17.1
13+
- `org.json` updated to version 20240303
14+
- `jersey` updated to version 3.1.6
415
## [v5.0.0] - eSignature API v2.1-24.1.01.00 - 2024-05-22
516
## Endpoint-Specific Changes
617

README.md

Lines changed: 76 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,50 @@
1-
# The Official DocuSign eSignature Java Client SDK
1+
# The Official Docusign eSignature Java Client SDK
22

33
[![Build status][travis-image]][travis-url]
44
[![Maven Central status][maven-image]][maven-url]
55

6+
The Docusign SDK makes integrating Docusign into your apps and websites a seamless experience.
7+
8+
## Table of Contents
9+
- [Introduction](#introduction)
10+
- [Installation](#installation)
11+
* [Version Information](#versionInformation)
12+
* [Requirements](#requirements)
13+
* [Compatibility](#compatibility)
14+
* [Maven](#maven)
15+
- [Dependencies](#dependencies)
16+
- [API Reference](#apiReference)
17+
- [Code Examples](#codeExamples)
18+
- [OAuth Implementations](#oauthImplementations)
19+
- [Changelog](#changeLog)
20+
- [Support](#support)
21+
- [License](#license)
22+
- [Additional Resources](#additionalResources)
23+
24+
<a id="introduction"></a>
25+
## Introduction
26+
Integrate eSignatures into your application in minutes. The secure and award-winning Docusign eSignature API makes requesting signatures, automating forms, and tracking documents directly from your app easy.
27+
28+
<a id="installation"></a>
29+
## Installation
30+
This client SDK is provided as open source, which enables you to customize its functionality to suit your particular use case. To do so, download or clone the repository. If the SDK’s given functionality meets your integration needs, or if you’re working through our [code examples](https://developers.docusign.com/docs/esign-rest-api/how-to/) from the [Docusign Developer Center](https://developers.docusign.com/), you merely need to install it by following the instructions below.
31+
32+
<a id="versionInformation"></a>
33+
### Version Information
34+
- **API version**: v2.1
35+
- **Latest SDK version (Including prerelease)**:
36+
37+
<a id="requirements"></a>
638
## Requirements
739
* Java 1.9+
8-
* Free [developer account](https://go.docusign.com/sandbox/productshot/?elqCampaignId=16531)
40+
* Free [developer account](https://go.docusign.com/o/sandbox/?postActivateUrl=https://developers.docusign.com/)
941

42+
<a id="compatibility"></a>
1043
## Compatibility
1144
* Java 1.9+
1245

13-
## Installation
14-
This SDK is provided as open source, which enables you to customize its functionality to suit your particular use case. To do so, download or clone the repository. If the SDK’s given functionality meets your integration needs, or if you’re working through our [code examples](https://developers.docusign.com/docs/esign-rest-api/how-to/) from the [DocuSign Developer Center](https://developers.docusign.com/), you merely need to install it by following the instructions below.
15-
16-
**Note:** DocuSign uses Eclipse with Maven for testing purposes.
17-
46+
<a id="maven"></a>
47+
**Note:** Docusign uses Eclipse with Maven for testing purposes.
1848
### Maven:
1949
1. In Eclipse, create a new project by selecting **File > New > Project**.
2050
2. In the New Project Wizard, expand **Maven,** then select **Maven Project.**
@@ -27,44 +57,62 @@ This SDK is provided as open source, which enables you to customize its function
2757
<dependency>
2858
<groupId>com.docusign</groupId>
2959
<artifactId>docusign-esign-java</artifactId>
30-
<version>3.18.0</version>
60+
<version>5.1.0</version>
3161
</dependency>
3262
```
3363
8. If your project is still open, restart Eclipse.
3464
35-
## Dependencies
65+
<a id="dependencies"></a>
66+
## SDK Dependencies
3667
This client has the following external dependencies:
37-
* io.swagger:swagger-annotations:jar:1.5.17
38-
* org.glassfish.jersey.core:jersey-client:jar:2.29.1
39-
* org.glassfish.jersey.media:jersey-media-multipart:jar:2.29.1
40-
* org.glassfish.jersey.media:jersey-media-json-jackson:2.29.1
41-
* com.fasterxml.jackson.core:jackson-core:jar:2.12.1
42-
* com.fasterxml.jackson.core:jackson-annotations:jar:2.12.1
43-
* com.fasterxml.jackson.core:jackson-databind:2.12.1
44-
* junit:junit:jar:4.13.1
45-
* com.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.2
68+
* io.swagger.core.v3:swagger-annotations:2.2.8
69+
* org.glassfish.jersey.core:jersey-client:3.1.6
70+
* org.glassfish.jersey.media:jersey-media-multipart:3.1.6
71+
* org.glassfish.jersey.media:jersey-media-json-jackson:3.1.6
72+
* org.glassfish.jersey.inject:jersey-hk2:3.1.6
73+
* com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-base:2.14.2
74+
* org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.2
4675
* com.auth0:java-jwt:3.4.1
47-
* org.bouncycastle:bcprov-jdk15on:1.60
76+
* org.bouncycastle:bcprov-jdk18on:1.78.1
77+
* com.fasterxml.jackson.dataformat:jackson-dataformat-csv:2.14.2
78+
* com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2
79+
* com.brsanthu:migbase64:2.2
80+
* com.fasterxml.jackson.core:jackson-core:2.17.1
81+
* org.json:json:20240303
4882
83+
84+
<a id="apiReference"></a>
85+
## API Reference
86+
You can refer to the API reference [here](https://developers.docusign.com/docs/esign-rest-api/reference/).
87+
88+
<a id="codeExamples"></a>
4989
## Code examples
50-
You can find on our GitHub a self-executing package of code examples for the eSignature Java SDK, called a [Launcher](https://github.com/docusign/code-examples-java/blob/master/README.md), that demonstrates common use cases. You can also download a version preconfigured for your DocuSign developer account from [Quickstart](https://developers.docusign.com/docs/esign-rest-api/quickstart/). These examples can use either the [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) or [JSON Web Token (JWT)](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-jsonwebtoken) authentication workflows.
90+
Explore our GitHub repository for the [Launcher](https://github.com/docusign/code-examples-java/), a self-executing package housing code examples for the eSignature Java SDK. This package showcases several common use cases and their respective source files. Additionally, you can download a version preconfigured for your Docusign developer account from [Quickstart](https://developers.docusign.com/docs/esign-rest-api/quickstart/). These examples support both the [Authorization Code Grant](https://developers.docusign.com/platform/auth/authcode/) and [JSON Web Token (JWT)](https://developers.docusign.com/platform/auth/jwt/) authentication workflows.
5191
92+
<a id="oauthImplementations"></a>
5293
## OAuth implementations
53-
For details regarding which type of OAuth grant will work best for your DocuSign integration, see [Choose OAuth Type](https://developers.docusign.com/platform/auth/choose/) in the [DocuSign Developer Center](https://developers.docusign.com/).
94+
For details regarding which type of OAuth grant will work best for your Docusign integration, see [Choose OAuth Type](https://developers.docusign.com/platform/auth/choose/) in the [Docusign Developer Center](https://developers.docusign.com/).
95+
96+
For security purposes, Docusign recommends using the [Authorization Code Grant](https://developers.docusign.com/platform/auth/authcode/) flow.
5497
55-
For security purposes, DocuSign recommends using the [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) flow.
98+
<a id="changeLog"></a>
99+
## Changelog
100+
You can refer to the complete changelog [here](https://github.com/docusign/docusign-esign-java-client/blob/master/CHANGELOG.md).
56101
102+
<a id="support"></a>
57103
## Support
58-
Log issues against this client through GitHub. We also have an [active developer community on Stack Overflow](https://stackoverflow.com/questions/tagged/docusignapi).
104+
Log issues against this client SDK through GitHub. You can also reach out to us through [Docusign Community](https://community.docusign.com/developer-59) and [Stack Overflow](https://stackoverflow.com/questions/tagged/docusignapi).
59105
106+
<a id="license"></a>
60107
## License
61-
The DocuSign eSignature Java Client SDK is licensed under the [MIT License](https://github.com/docusign/docusign-java-client/blob/master/LICENSE).
108+
The Docusign eSignature Java Client SDK is licensed under the [MIT License](https://github.com/docusign/docusign-esign-java-client/blob/master/LICENSE).
62109
110+
<a id="additionalResources"></a>
63111
### Additional resources
64-
* [DocuSign Developer Center](https://developers.docusign.com/)
65-
* [DocuSign API on Twitter](https://twitter.com/docusignapi)
66-
* [DocuSign For Developers on LinkedIn](https://www.linkedin.com/showcase/docusign-for-developers/)
67-
* [DocuSign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ)
112+
* [Docusign Developer Center](https://developers.docusign.com/)
113+
* [Docusign API on Twitter](https://twitter.com/docusignapi)
114+
* [Docusign For Developers on LinkedIn](https://www.linkedin.com/showcase/docusign-for-developers/)
115+
* [Docusign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ)
68116
69117
[travis-image]: https://api.travis-ci.com/docusign/docusign-esign-java-client.svg?branch=master
70118
[travis-url]: https://app.travis-ci.com/github/docusign/docusign-esign-java-client

pom.xml

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>docusign-esign-java</artifactId>
66
<packaging>jar</packaging>
77
<name>docusign-esign-java</name>
8-
<version>5.0.0</version>
8+
<version>5.1.0</version>
99
<url>https://developers.docusign.com</url>
1010
<description>The official DocuSign eSignature JAVA client is based on version 2.1 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>
1111

@@ -227,6 +227,21 @@
227227
</execution>
228228
</executions>
229229
</plugin>
230+
<plugin>
231+
<groupId>org.owasp</groupId>
232+
<artifactId>dependency-check-maven</artifactId>
233+
<version>9.2.0</version>
234+
<configuration>
235+
<failBuildOnCVSS>8</failBuildOnCVSS>
236+
</configuration>
237+
<executions>
238+
<execution>
239+
<goals>
240+
<goal>check</goal>
241+
</goals>
242+
</execution>
243+
</executions>
244+
</plugin>
230245
<plugin>
231246
<groupId>org.apache.maven.plugins</groupId>
232247
<artifactId>maven-source-plugin</artifactId>
@@ -354,8 +369,8 @@
354369
</dependency>
355370
<dependency>
356371
<groupId>org.bouncycastle</groupId>
357-
<artifactId>bcprov-jdk15on</artifactId>
358-
<version>1.69</version>
372+
<artifactId>bcprov-jdk18on</artifactId>
373+
<version>1.78.1</version>
359374
</dependency>
360375
<dependency>
361376
<groupId>com.fasterxml.jackson.dataformat</groupId>
@@ -391,11 +406,27 @@
391406
<artifactId>migbase64</artifactId>
392407
<version>2.2</version>
393408
</dependency>
409+
<dependency>
410+
<groupId>org.junit.jupiter</groupId>
411+
<artifactId>junit-jupiter-api</artifactId>
412+
<version>5.10.2</version>
413+
<scope>test</scope>
414+
</dependency>
415+
<dependency>
416+
<groupId>com.fasterxml.jackson.core</groupId>
417+
<artifactId>jackson-core</artifactId>
418+
<version>2.17.1</version>
419+
</dependency>
420+
<dependency>
421+
<groupId>org.json</groupId>
422+
<artifactId>json</artifactId>
423+
<version>20240303</version>
424+
</dependency>
394425
</dependencies>
395426
<properties>
396427
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
397428
<swagger-core-version>2.2.8</swagger-core-version>
398-
<jersey-version>3.0.9</jersey-version>
429+
<jersey-version>3.1.6</jersey-version>
399430
<jackson-version>2.14.2</jackson-version>
400431
<junit-version>4.13.1</junit-version>
401432
<oltu-version>1.0.2</oltu-version>

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public ApiClient() {
9696
String javaVersion = System.getProperty("java.version");
9797

9898
// Set default User-Agent.
99-
setUserAgent("Swagger-Codegen/v2.1/5.0.0/Java/" + javaVersion);
99+
setUserAgent("Swagger-Codegen/v2.1/5.1.0/Java/" + javaVersion);
100100

101101
// Setup authentications (key: authentication name, value: authentication).
102102
authentications = new HashMap<String, Authentication>();
@@ -1656,7 +1656,6 @@ protected Client buildHttpClient(boolean debugging) {
16561656
} catch (final Exception ex) {
16571657
System.err.println("failed to initialize SSL context");
16581658
}
1659-
HttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory());
16601659
}
16611660

16621661
clientConfig.connectorProvider(new ConnectorProvider() {

src/main/java/com/docusign/esign/model/AccessCodeFormat.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@
77
import com.fasterxml.jackson.annotation.JsonCreator;
88
import com.fasterxml.jackson.annotation.JsonValue;
99
import io.swagger.v3.oas.annotations.media.Schema;
10+
import java.io.Serializable;
1011

1112
/**
1213
* Object specifying the format of the string provided to a recipient in order to access an envelope..
1314
*
1415
*/
1516
@Schema(description = "Object specifying the format of the string provided to a recipient in order to access an envelope.")
1617

17-
public class AccessCodeFormat {
18+
public class AccessCodeFormat implements Serializable {
19+
private static final long serialVersionUID = 1L;
20+
1821
@JsonProperty("formatRequired")
1922
private String formatRequired = null;
2023

src/main/java/com/docusign/esign/model/AccountAddress.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@
77
import com.fasterxml.jackson.annotation.JsonCreator;
88
import com.fasterxml.jackson.annotation.JsonValue;
99
import io.swagger.v3.oas.annotations.media.Schema;
10+
import java.io.Serializable;
1011

1112
/**
1213
* Contains information about an account address..
1314
*
1415
*/
1516
@Schema(description = "Contains information about an account address.")
1617

17-
public class AccountAddress {
18+
public class AccountAddress implements Serializable {
19+
private static final long serialVersionUID = 1L;
20+
1821
@JsonProperty("address1")
1922
private String address1 = null;
2023

src/main/java/com/docusign/esign/model/AccountBillingPlan.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@
1010
import com.fasterxml.jackson.annotation.JsonCreator;
1111
import com.fasterxml.jackson.annotation.JsonValue;
1212
import io.swagger.v3.oas.annotations.media.Schema;
13+
import java.io.Serializable;
1314

1415
/**
1516
* Contains information about an account billing plan..
1617
*
1718
*/
1819
@Schema(description = "Contains information about an account billing plan.")
1920

20-
public class AccountBillingPlan {
21+
public class AccountBillingPlan implements Serializable {
22+
private static final long serialVersionUID = 1L;
23+
2124
@JsonProperty("addOns")
2225
private java.util.List<AddOn> addOns = null;
2326

src/main/java/com/docusign/esign/model/AccountBillingPlanResponse.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,17 @@
1616
import com.fasterxml.jackson.annotation.JsonCreator;
1717
import com.fasterxml.jackson.annotation.JsonValue;
1818
import io.swagger.v3.oas.annotations.media.Schema;
19+
import java.io.Serializable;
1920

2021
/**
2122
* Defines an account billing plan response object..
2223
*
2324
*/
2425
@Schema(description = "Defines an account billing plan response object.")
2526

26-
public class AccountBillingPlanResponse {
27+
public class AccountBillingPlanResponse implements Serializable {
28+
private static final long serialVersionUID = 1L;
29+
2730
@JsonProperty("billingAddress")
2831
private AccountAddress billingAddress = null;
2932

src/main/java/com/docusign/esign/model/AccountIdentityInputOption.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66
import com.fasterxml.jackson.annotation.JsonCreator;
77
import com.fasterxml.jackson.annotation.JsonValue;
88
import io.swagger.v3.oas.annotations.media.Schema;
9+
import java.io.Serializable;
910

1011
/**
1112
* AccountIdentityInputOption.
1213
*
1314
*/
1415

15-
public class AccountIdentityInputOption {
16+
public class AccountIdentityInputOption implements Serializable {
17+
private static final long serialVersionUID = 1L;
18+
1619
@JsonProperty("isRequired")
1720
private Boolean isRequired = null;
1821

src/main/java/com/docusign/esign/model/AccountIdentityVerificationResponse.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@
77
import com.fasterxml.jackson.annotation.JsonCreator;
88
import com.fasterxml.jackson.annotation.JsonValue;
99
import io.swagger.v3.oas.annotations.media.Schema;
10+
import java.io.Serializable;
1011

1112
/**
1213
* AccountIdentityVerificationResponse.
1314
*
1415
*/
1516

16-
public class AccountIdentityVerificationResponse {
17+
public class AccountIdentityVerificationResponse implements Serializable {
18+
private static final long serialVersionUID = 1L;
19+
1720
@JsonProperty("identityVerification")
1821
private java.util.List<AccountIdentityVerificationWorkflow> identityVerification = null;
1922

0 commit comments

Comments
 (0)