Skip to content

Releases: SK-EID/smart-id-java-client

2.3

06 May 05:26
Compare
Choose a tag to compare

[2.3] - 2023-05-06

Added

  • To request the IP address of the device running Smart-ID app, the following methods were added:
    • AuthenticationRequestBuilder.withShareMdClientIpAddress(boolean)
    • CertificateRequestBuilder.withShareMdClientIpAddress(boolean)
    • SignatureRequestBuilder.withShareMdClientIpAddress(boolean)
  • The IP address returned can be read out using:
    • SmartIdAuthenticationResponse.getDeviceIpAddress()
    • SmartIdCertificate.getDeviceIpAddress()
    • SmartIdSignature.getDeviceIpAddress()

2.2.2

15 Nov 16:50
Compare
Choose a tag to compare

[2.2.2] - 2022-11-14

Changed

  • upgrade jackson, jersey and dependency-check-maven plugin

Documented

  • How to extract date-of-birth from a certificate added as a separate paragraph to readme.
  • Added two tests into SmartIdIntegrationTest that demonstrate fetching and parsing a certificate with date-of-birth
  • Changed demo SSL certificate
  • add correct way of adding trusted certificates in Readme #73

2.2.1

12 Sep 13:00
0736c82
Compare
Choose a tag to compare

[2.2.1] - 2022-09-12

Fixed

  • added jakarta.ws.rs:jakarta.ws.rs-api as a dependency to avoid ClassNotFoundException with spring framework

Changed

  • Updated dependencies

Changes in tests and documentation

  • How to use a proxy server - added documentation to README.md and tests to ReadmeTest.java

2.2

22 Feb 17:07
b7d62bf
Compare
Choose a tag to compare
2.2

Changed

  • Reduced number of external dependencies by removing commons-lang3, commons-io, commons-codec.

Added

2.1.4

14 Jan 12:55
5e31fea
Compare
Choose a tag to compare

Fixed

  • bug where non-Baltic certificates without date-of-birth resulted with an exception

2.1.3

22 Dec 08:03
1b12cb8
Compare
Choose a tag to compare

Fixed

  • Possible NPE fix (in rare cases under load testing the SessionStatus is null)

Changes in tests

  • Changed document number in tests
  • Added a flag (SmartIdIntegrationTest.TEST_AGAINST_SMART_ID_DEMO) to switch off tests that make requests to Smart-ID demo env.

2.1.2

03 Nov 07:16
08f3bc9
Compare
Choose a tag to compare

Changed

  • AuthenticationResponseValidator.constructAuthenticationIdentity() converted into a static method

2.1.1

06 Sep 14:03
29dcf97
Compare
Choose a tag to compare

Fixed

  • Bug fixed in parsing date of birth for Latvian ID-codes.

2.1

07 Jul 15:01
76071c8
Compare
Choose a tag to compare
2.1

Changed

  • Bump junit from 4.12 to 4.13.1 (#48)
  • Start using new testnumbers
  • Add method to get person birthdate (if available) (#54)
  • Add library version number and Java major release number to User-Aget header of outgoing requests (#55)

2.0

23 Nov 08:57
ee678ef
Compare
Choose a tag to compare
2.0

Changed

  • Switch to Smart-ID API 2.0
  • AuthenticationResponseValidator.validate() returns AuthenticationIdentity if validation passes.
    If validation fails then SmartIdResponseValidationException or its subclass CertificateLevelMismatchException (if signer's certificate is below requested level) is thrown.
  • Grouped exceptions thrown by library to reduce need to handle each exception individually. See Readme.md for detail info.
  • Minimum Java level raised to Java 8
  • Relying Party must keep a list of trusted certificates (in plain text or in a trust store).
  • request.setVcChoice() was removed in Smart-ID API 2.0 and replaced by request.setAllowedInteractionsOrder();

Added

  • New parameter allowedInteractionsOrder added to authentication and signing requests. It replaces parameters displayText and requestProperties.vcChoice
  • New parameter interactionFlowUsed added into session status response message.
  • If user refuses then a dedicated exception is thrown that indicates exact screen where user pressed cancel. Thrown exception is subclass of UserRefusedException.

Removed

  • all endpoints using NationalIdentityNumber are now removed as this functionality has been removed from Smart-ID API 2.0
  • errors that the caller cannot recover from are now removed from method throws list.
  • Hard-coded certificates were removed together with methods:
    • SmartIdClient.useDemoEnvSSLCertificates()
    • SmartIdClient.useLiveEnvSSLCertificates()