Skip to content

Releases: open-eid/cdoc2-java-ref-impl

[1.4.1] Bug fixes, documentation, tests improvements (2024-09-19)

19 Sep 11:34
Compare
Choose a tag to compare

Bug Fixes

  • Fix cdoc2-cli decrypt crash, when using server scenario
  • Fix Junit tests on Windows
  • Fix pkcs11 (smart-card) test properties loading from filesystem

Internal

  • Added cdoc2-lib Usage Guide
  • cdoc2-cli bats tests for server scenario (using docker compose)
  • Update cdoc2-example-app to use cdoc2-lib:2.0.0
  • Added Maven wrapper (mvnw)

Maven package versions

  • cdoc2:1.4.1
  • cdoc2-schema:1.3.1
  • cdoc2-lib:2.0.1
  • cdoc2-client:1.5.1
  • cdoc2-cli:1.5.1

[1.4.0] Key label formatting (2024-09-02)

02 Sep 14:38
f91a917
Compare
Choose a tag to compare

Features

  • Support for machine-readable KeyLabel format
    • When encrypting, then this formatted key label is enabled by default. Can be disabled by setting ee.cyber.cdoc2.key-label.machine-readable-format.enabled=false system property (-D)
    • When decrypting, then both formatted and unformatted key label field versions are supported.

Bug Fixes

  • Fix cdoc2-cli encrypting functionality for SymmetricKey (--secret parameter). Bug was introduced with 1.1.0 release
    • Rewrote symmetric key (secret) and password handling in cdoc2-cli/cdoc2-lib
    • Bumped cdoc2-lib major version to 2.0.0, as broken classes (FormattedOptionParts) were removed and replaced with a new ones (LabeledPassword and LabeledSecret)
    • cdoc2-lib was not broken, when using EncryptionKeyMaterial#fromSecret(SecretKey,String) directly (without FormattedOptionParts)
    • broken example cdoc2 files were removed from test/testvectors and replaced with a correct ones
  • Fix cdoc2-client ApiClient timeouts (cdoc2.client.server.*-timeout were not working)
  • Allow loading pkcs11 (smart-card) test properties from file system (previously only classpath was working)

Internal

  • Third-party dependency updates to latest
  • Added GitHub workflows for building and releasing
  • Resolve issues reported by SonarCloud/SonarQube
  • Update client and server certificates used for unit-tests. Add scripts for future updates

Maven packages released:

v1.3.0 + backport GitHub release workflow

07 Aug 13:01
Compare
Choose a tag to compare

Backport 9560909 to v1.3.0

[1.3.0] '/key-capsules' OAS v2.1.0 support (2024-07-02)

Features

  • Support for '/key-capsules' OAS v2.1.0 in cdoc2-client and cdoc2-cli (added -exp option)
  • cli: Improvements to interactive password asking (Don't ask password twice for decrypt).
    Label is not required, when CDOC2 file contains single password recipient.
  • Add example project to demonstrate usage of cdoc2-java-ref-impl with cdoc4j (convert cdoc -> cdoc2)