File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed
cdoc2-lib/src/test/java/ee/cyber/cdoc2 Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,28 @@ and/or
141141` -Dsmart-id.properties=config/smart-id/smart-id.properties `
142142
143143
144+ ### Encryption with Mobile ID
145+
146+ ```
147+ java -jar target/cdoc2-cli-*.jar create --mobile-id=51307149560 -f /tmp/mobileid.cdoc README.md
148+ ```
149+
150+ Multiple ID codes are allowed to be sent for encryption:
151+
152+ ```
153+ java -jar target/cdoc2-cli-*.jar create -mid=51307149560 -mid=60001017869 -f /tmp/mobileid.cdoc README.md
154+ ```
155+
156+ Key shares or Mobile-ID properties can be sent externally by adding following options (the same
157+ for decryption):
158+
159+ ` -Dkey-shares.properties=config/localhost/key-shares.properties `
160+
161+ and/or
162+
163+ ` -Dmobile-id.properties=config/mobile-id/mobile-id.properties `
164+
165+
144166### Decryption
145167To decrypt:
146168- CDOC2 file ` /tmp/mydoc.cdoc `
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ class MobileIdClientTest {
3030 private static final String OK_1_PHONE_NUMBER = "+37269930366" ;
3131
3232 // OK for "TEST of EID-SK 2016" certificate
33- private static final String OK_2_IDENTITY_CODE = "51307149560 " ;
34- private static final String OK_2_PHONE_NUMBER = "+37269930366 " ;
33+ private static final String OK_2_IDENTITY_CODE = "60001017869 " ;
34+ private static final String OK_2_PHONE_NUMBER = "+37268000769 " ;
3535
3636 private final MobileIdClient mobileIdClient ;
3737
You can’t perform that action at this time.
0 commit comments