Java library for working with CDOC documents.
This project started with the help of European Regional Development Fund.
- Creation of CDOC documents containing encrypted files
- Decryption of files from CDOC documents
- CDOC 1.0 - AES-128-CBC, only RSA recipients (deprecated)
- CDOC 1.1 - AES-256-GCM, RSA and EC recipients (Recommended)
Take a look at the examples
Using a smart card to decrypt a file while using Java 17 or a later version, an extra JVM argument is required:
--add-exports jdk.crypto.cryptoki/sun.security.pkcs11=ALL-UNNAMED
You can use the library as a dependency from Maven Central
<dependency>
<groupId>org.open-eid.cdoc4j</groupId>
<artifactId>cdoc4j</artifactId>
<version>1.5</version>
</dependency>