Skip to content

Commit fb68686

Browse files
committed
Merge branch 'develop'
2 parents a4b4a76 + a115853 commit fb68686

File tree

77 files changed

+3558
-2054
lines changed

Some content is hidden

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

77 files changed

+3558
-2054
lines changed

.github/workflows/digidoc4j-verify.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea/*
22
target/*
33
*.iml
4+
.mvn/wrapper/maven-wrapper.jar
45
**/.DS_Store

.mvn/settings.xml

Lines changed: 0 additions & 55 deletions
This file was deleted.
-8.35 MB
Binary file not shown.

.mvn/wrapper/maven-wrapper.jar

-49.5 KB
Binary file not shown.

.mvn/wrapper/maven-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip

README.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
![EU Regional Development Fund](digidoc4j/src/main/doc/resources/EL_Regionaalarengu_Fond_horisontaalne-vaike.jpg)
22

3-
# Build status
4-
5-
[![Digidoc4j CI with Maven](https://github.com/open-eid/digidoc4j/actions/workflows/digidoc4j-verify.yml/badge.svg?branch=master)](https://github.com/open-eid/digidoc4j/actions/workflows/digidoc4j-verify.yml)
6-
73
# DigiDoc4j
84
DigiDoc4j is a Java library for digitally signing documents and creating digital signature containers of signed documents.
95

106
# Features
11-
* Creating ASiC-E and BDOC containers
7+
* Creating ASiC-E
128
* Validating ASiC-E, BDOC, ASIC-S and DDOC containers
139
* Creating and validating detached XadES
1410

@@ -31,18 +27,22 @@ DigiDoc4j is a Java library for digitally signing documents and creating digital
3127
* It is recommended not to use special characters in the data file’s name, i.e. it is suggested to use only the characters that are categorized as “unreserved” according to RFC3986 (https://datatracker.ietf.org/doc/html/rfc3986).
3228

3329
# BDOC (Estonian specific implementation of Associated Signature Container Extended) container format
30+
The support for creating BDOC-specific **time-mark** signatures was removed since DigiDoc4j version **5.2.0** in relation to
31+
[discontinuation of **time-mark**-capable OCSP responders in 2023](https://www.id.ee/en/article/ria-stops-supporting-the-creation-of-the-bdoc-tm-digital-signature-format-in-the-software-it-develops/).
32+
3433
* Has **.bdoc** extension
3534
* BDOC is a digital signature format developed in 2014 to replace the old, DDOC (DigiDoc) digital signature format.
3635
* This format has been used as a default digital signature format in Estonia since 2015 until end of 2018.
3736
* BDOC container is based on **ASiC-E** standard.
3837
* Signatures are stored in **XAdES** format.
39-
* Supports signature formats:
38+
* Supports signature formats:
4039
* **LT_TM** (Long Term TimeMark) - signature has **time-mark** ensuring long-term provability of the authenticity of the signature.
40+
**LT_TM** signing support in DigiDoc4j was removed since version **5.2.0**.
4141
* It is based on **XAdES baseline LT** signature format.
4242
* **.bdoc** file is in fact a ZIP container with the signed files, the signatures and the protocol control information and can basically be opened by any program that recognizes the ZIP format.
4343
* It is recommended not to use special characters in the data file’s name, i.e. it is suggested to use only the characters that are categorized as “unreserved” according to RFC3986 (https://datatracker.ietf.org/doc/html/rfc3986).
4444

45-
# ASiC-S (ASiC-E - Associated Signature Container Simple) container format
45+
# ASiC-S (Associated Signature Container Simple) container format
4646
* Has **.asics** or **.scs** extension
4747
* Container associates one data file with either:
4848
- one signature file containing one or more XAdES detached digital signature(s) that apply to it; or
@@ -69,10 +69,10 @@ DigiDoc4j is a Java library for digitally signing documents and creating digital
6969
# Requirements
7070
* Java **8** or higher (since version 4.0.0-RC.1)
7171
* Internet access to external verification services
72-
* OCSP (Online Certificate Status Protocol) - http://ocsp.sk.ee
73-
* EU TSL (European Commission's Trusted Status List) - https://ec.europa.eu/information_society/policy/esignature/trusted-list/tl-mp.xml
74-
* All the EU member states' TL servers referred in the EU TSL. Note that this list may change. (e.g. https://sr.riik.ee/tsl/estonian-tsl.xml, https://sede.minetur.gob.es/Prestadores/TSL/TSL.xml, https://www.viestintavirasto.fi/attachments/TSL-Ficora.xml etc.)
75-
* TSA (Time Stamping Authority) - http://tsa.sk.ee
72+
* OCSP (Online Certificate Status Protocol) - http://ocsp.sk.ee
73+
* EU TSL (European Commission's Trusted Status List) - https://ec.europa.eu/information_society/policy/esignature/trusted-list/tl-mp.xml
74+
* All the EU member states' TL servers referred in the EU TSL. Note that this list may change. (e.g. https://sr.riik.ee/tsl/estonian-tsl.xml, https://sede.minetur.gob.es/Prestadores/TSL/TSL.xml, https://www.viestintavirasto.fi/attachments/TSL-Ficora.xml etc.)
75+
* TSA (Time Stamping Authority) - http://tsa.sk.ee
7676

7777
## Maven
7878
You can use the library as a Maven dependency from the Maven Central (http://mvnrepository.com/artifact/org.digidoc4j/digidoc4j)
@@ -90,7 +90,14 @@ You can use the library as a Maven dependency from the Maven Central (http://mvn
9090
* © Estonian Information System Authority
9191

9292
## Support
93-
Official builds are provided through [releases](https://github.com/open-eid/digidoc4j/releases). If you want support, you need to be using official builds. Contact for assistance by email [[email protected]](mailto:[email protected]).
94-
Additional information can be found in [wiki Q&A](https://github.com/open-eid/digidoc4j/wiki/Questions-&-Answers) and on [ID.ee portal](https://www.id.ee/rubriik/digidoc-teegid/).
93+
Official builds are provided through [releases](https://github.com/open-eid/digidoc4j/releases).
94+
If you want support, you need to be using official builds.
95+
For assistance, contact us by email [[email protected]](mailto:[email protected]).
96+
Additional information can be found in [wiki Q&A](https://github.com/open-eid/digidoc4j/wiki/Questions-&-Answers) and
97+
on [ID.ee portal](https://www.id.ee/en/rubriik/digidoc-libraries/).
98+
99+
For staying up to date with news impacting services and applications that use the DigiDoc4j library,
100+
[join DigiDoc4j library newsletter](https://www.id.ee/en/article/join-dd4j-library-newsletter/).
95101

96-
Source code is provided on "as is" terms with no warranty (see license for more information). Do not file Github issues with generic support requests.
102+
Source code is provided on "as is" terms with no warranty (see license for more information).
103+
Do not file GitHub issues with generic support requests.

RELEASE-NOTES.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
DigiDoc4J Java library release notes
22
------------------------------------
33

4+
Release 5.2.0
5+
------------------
6+
Summary of the major changes since 5.1.0
7+
------------------------------------------
8+
* Disabled the possibility to create signatures with LT_TM and B_EPES profiles
9+
* Fixed OCSP request nonce encoding (in CommonOCSPSource) on signature creation - OCSP nonce, used in
10+
"id-pkix-ocsp-nonce" OCSP extension, is now a DER-encoded OCTET STRING, which is encapsulated as another OCTET STRING
11+
(see https://www.rfc-editor.org/rfc/rfc4366.html#section-3.6 and https://www.rfc-editor.org/rfc/rfc6961.html#section-2.2)
12+
* Deprecated "full report" configuration flag, as enabling it can produce false negative validation results in some cases:
13+
- Deprecated setFullReportNeeded and isFullReport needed methods in Configuration class
14+
- Deprecated -err/-showerrors command line option in DigiDoc4J command line utility
15+
* Updated dependencies
16+
17+
Known issues
18+
------------
19+
* We have noticed a slight increase in TSL loading times due to pivot LOTL support
20+
* We have noticed a decrease in performance with the introduction of properly accessing AIA certificate resources
21+
* Opening a container that contains signatures, triggers TSL loading (TSL lazy loading does not work as expected)
22+
* While upgrading from versions older than 2.1.1 be sure that your integration :
23+
- doesn't use Xalan or XercesImpl dependencies
24+
- uses a patched Java version (JDK8 or higher)
25+
Xalan and XercesImpl were used to patch XML vulnerabilities in older java versions. They should be discarded with higher versions because they override default Java XML security.
26+
If it is not possible to remove Xalan, then you can set your system property to override TransformerFactory : System.setProperty("javax.xml.transform.TransformerFactory","com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl");
27+
428
Release 5.1.0
529
------------------
630
Summary of the major changes since 5.0.0

ddoc4j/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<artifactId>ddoc4j</artifactId>
77
<packaging>jar</packaging>
8-
<version>5.1.0</version>
8+
<version>5.2.0</version>
99

1010
<name>DDoc4J</name>
1111
<description>DDoc4J is Java Library for validating DDOC documents. It's not recommended to use it directly but rather through DigiDoc4J's API.</description>
@@ -14,7 +14,7 @@
1414
<parent>
1515
<artifactId>digidoc4j-parent</artifactId>
1616
<groupId>org.digidoc4j</groupId>
17-
<version>5.1.0</version>
17+
<version>5.2.0</version>
1818
</parent>
1919

2020
<dependencies>

0 commit comments

Comments
 (0)