You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the previous v2 related code has been removed and all the code necessary for Smart-ID API v3 is under package smartid.
5
5
Some classes could also be used in v3 and for those classes the package did not change.
6
6
7
+
# Migrating from library v3.1 to v3.2
8
+
9
+
For signing flows are restored legacy RSASSA-PKCS#1 v1.5 algorithms (`SHA256_WITH_RSA_ENCRYPTION`, `SHA384_WITH_RSA_ENCRYPTION`, `SHA512_WITH_RSA_ENCRYPTION`) which are compatible with DigiDoc4j's signing support.
10
+
For that reason:
11
+
-`SignatureAlgorithm` class is split into `AuthenticationSignatureAlgorithm` and `SigningSignatureAlgorithm`.
12
+
-`SignatureValueValidator.validate` last parameter changed from `RsaSsaPssParameters` to `SignatureFactory`
13
+
14
+
Changes needed in authentication flows:
15
+
- change `SignatureAlgorithm` to `AuthenticationSignatureAlgorithm`
16
+
- change `SignatureValueValidator.validate` last parameter from `RsaSsaPssParameters` to `new RsaSsaPssSignatureFactory(RsaSsaPssParameters)`
17
+
18
+
Changes needed in signing flows:
19
+
- change `SignatureAlgorithm` to `SigningSignatureAlgorithm`
20
+
- suggestion for `SignatureValueValidator.validate` last parameter changes:
21
+
- when using only signature algorithm RSASSA_PSS then use `new RsaSsaPssSignatureFactory(RsaSsaPssParameters)`
22
+
- when using only legacy signature algorithms (`SHA256_WITH_RSA_ENCRYPTION`, `SHA384_WITH_RSA_ENCRYPTION`, `SHA512_WITH_RSA_ENCRYPTION`) then use `new RsaSsaPkcs1SignatureFactory(SigningSignatureAlgorithm)`
23
+
- when both RSASSA_PSS and legacy RSA algorithms are used then possible solution is:
The following classes are moved from `ee.sk.smartid` to `ee.sk.smartid.signature` so when used then imports need to be adjusted:
31
+
- `AuthenticationSignatureAlgorithm`
32
+
- `DigestInput`
33
+
- `MaskGenAlgorithm`
34
+
- `RsaSsaPssParameters`
35
+
- `SignableData`
36
+
- `SignableHash`
37
+
- `SignatureValueValidator`
38
+
- `SignatureValueValidatorImpl`
39
+
- `SigningSignatureAlgorithm`
40
+
- `TrailerField`
41
+
42
+
For legacy RSA with DigiDoc4j there is new chapter in README.md: [Legacy algorithms for signing with DigiDoc4j](./README.md#legacy-algorithms-for-signing-with-digidoc4j)
Copy file name to clipboardExpand all lines: pom.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
<groupId>ee.sk.smartid</groupId>
8
8
<artifactId>smart-id-java-client</artifactId>
9
9
<packaging>jar</packaging>
10
-
<version>3.0-SNAPSHOT</version>
10
+
<version>3.2-SNAPSHOT</version>
11
11
12
12
<name>Smart-ID Java client</name>
13
13
<description>Smart-ID Java client is a Java library that can be used for easy integration of the Smart-ID solution to information systems or e-services</description>
0 commit comments