@@ -156,7 +156,7 @@ SemanticsIdentifier semanticsIdentifier = new SemanticsIdentifier(
156156 // (PAS-passport, IDC-national identity card or PNO - (national) personal number)
157157 SemanticsIdentifier.IdentityType.PNO,
158158 SemanticsIdentifier.CountryCode.EE, // 2 character ISO 3166-1 alpha-2 country code
159- "10101010005 "); // identifier (according to country and identity type reference)
159+ "30303039914 "); // identifier (according to country and identity type reference)
160160
161161// For security reasons a new hash value must be created for each new authentication request
162162AuthenticationHash authenticationHash = AuthenticationHash.generateRandomHash();
@@ -200,7 +200,7 @@ String verificationCode = authenticationHash.calculateVerificationCode();
200200
201201SmartIdAuthenticationResponse authenticationResponse = client
202202 .createAuthentication()
203- .withDocumentNumber("PNOEE-10101010005-Z1B2 -Q")
203+ .withDocumentNumber("PNOEE-30303039914-5QSV -Q")
204204 .withAuthenticationHash(authenticationHash)
205205 .withCertificateLevel("QUALIFIED")
206206 .withAllowedInteractionsOrder(Collections.singletonList(
@@ -236,7 +236,11 @@ AuthenticationIdentity authIdentity = authenticationResponseValidator.validate(a
236236String givenName = authIdentity.getGivenName(); // e.g. Mari-Liis"
237237String surname = authIdentity.getSurname(); // e.g. "Männik"
238238String identityCode = authIdentity.getIdentityCode(); // e.g. "47101010033"
239- String country = authIdentity.getCountry(); // e.g. "EE"
239+ String country = authIdentity.getCountry(); // e.g. "EE", "LV", "LT"
240+
241+ // Date-of-birth is extracted from certificate attribute or parsed from national identity number
242+ // Value is present for all Estonian and Lithuanian persons but not for all Latvian certificates
243+ Optional<LocalDate> dateOfBirth = authIdentity.getDateOfBirth();
240244```
241245
242246
@@ -250,7 +254,7 @@ To fetch the certificate you can use documentNumber.
250254```
251255SmartIdCertificate responseWithSigningCertificate = client
252256 .getCertificate()
253- .withDocumentNumber("PNOEE-10101010005-Z1B2 -Q") // returned as authentication result
257+ .withDocumentNumber("PNOEE-30303039914-5QSV -Q") // returned as authentication result
254258 .withCertificateLevel("QUALIFIED")
255259 .fetch();
256260
@@ -287,7 +291,7 @@ String verificationCode = hashToSign.calculateVerificationCode();
287291
288292SmartIdSignature smartIdSignature = client
289293 .createSignature()
290- .withDocumentNumber("PNOEE-10101010005-Z1B2 -Q") // returned as authentication result
294+ .withDocumentNumber("PNOEE-30303039914-5QSV -Q") // returned as authentication result
291295 .withSignableHash(hashToSign)
292296 .withCertificateLevel("QUALIFIED")
293297 .withAllowedInteractionsOrder(asList(
@@ -331,7 +335,7 @@ Every Smart-ID app supports this interaction flow and there is no need to provid
331335```
332336SmartIdSignature smartIdSignature = client
333337 .createSignature()
334- .withDocumentNumber("PNOEE-10101010005-Z1B2 -Q")
338+ .withDocumentNumber("PNOEE-30303039914-5QSV -Q")
335339 .withSignableHash(hashToSign)
336340 .withCertificateLevel("QUALIFIED")
337341 .withAllowedInteractionsOrder(Collections.singletonList(
@@ -353,7 +357,7 @@ If user's app doesn't support displaying verification code choice then system fa
353357try {
354358 SmartIdSignature smartIdSignature = client
355359 .createSignature()
356- .withDocumentNumber("PNOEE-10101010005-Z1B2 -Q")
360+ .withDocumentNumber("PNOEE-30303039914-5QSV -Q")
357361 .withSignableHash(hashToSign)
358362 .withCertificateLevel("QUALIFIED")
359363 .withAllowedInteractionsOrder(Arrays.asList(
@@ -376,7 +380,7 @@ If the Smart-ID app in user's smart device doesn't support this feature then the
376380```
377381SmartIdSignature smartIdSignature = client
378382 .createSignature()
379- .withDocumentNumber("PNOEE-10101010005-Z1B2 -Q")
383+ .withDocumentNumber("PNOEE-30303039914-5QSV -Q")
380384 .withSignableHash(hashToSign)
381385 .withCertificateLevel("QUALIFIED")
382386 .withAllowedInteractionsOrder(asList(
@@ -404,7 +408,7 @@ If user picks wrong verification code then the session is cancelled and library
404408```
405409SmartIdSignature smartIdSignature = client
406410 .createSignature()
407- .withDocumentNumber("PNOEE-10101010005-Z1B2 -Q")
411+ .withDocumentNumber("PNOEE-30303039914-5QSV -Q")
408412 .withSignableHash(hashToSign)
409413 .withCertificateLevel("QUALIFIED")
410414 .withAllowedInteractionsOrder(asList(
@@ -435,7 +439,7 @@ If End User's phone doesn't support required flow the library throws `RequiredIn
435439try {
436440 client
437441 .createSignature()
438- .withDocumentNumber("PNOEE-10101010005-Z1B2 -Q")
442+ .withDocumentNumber("PNOEE-30303039914-5QSV -Q")
439443 .withSignableHash(hashToSign)
440444 .withCertificateLevel("QUALIFIED")
441445 .withAllowedInteractionsOrder(Collections.singletonList(
0 commit comments