File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
core/src/main/java/it/pagopa/tech/lollipop/consumer/service/impl Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ repositories {
2222}
2323
2424allprojects {
25- version = ' 1.0.0-RC6 '
25+ version = ' 1.0.0-RC7-hotfix '
2626 group = ' it.pagopa.tech.lollipop-consumer-java-sdk'
2727 sourceCompatibility = ' 11'
2828 targetCompatibility = ' 11'
Original file line number Diff line number Diff line change 1- /* (C)2023 */
1+ /* (C)2023-2025 */
22package it .pagopa .tech .lollipop .consumer .service .impl ;
33
44import com .nimbusds .jose .JOSEException ;
@@ -222,7 +222,7 @@ protected List<IdpCertData> getIdpCertData(Document assertionDoc)
222222 ErrorRetrievingIdpCertDataException .ErrorCode .ENTITY_ID_FIELD_NOT_FOUND ,
223223 "Missing entity id field in the retrieved saml assertion" );
224224 }
225- instant = parseInstantToMillis (instant );
225+ instant = parseInstantToUnixTimestamp (instant );
226226 try {
227227 entityId = entityId .trim ();
228228 List <IdpCertData > idpCertData = idpCertProvider .getIdpCertData (instant , entityId );
@@ -436,11 +436,12 @@ private String getPublicKey(String publicKey) {
436436 return publicKey ;
437437 }
438438
439- private String parseInstantToMillis (String instant ) {
439+ private String parseInstantToUnixTimestamp (String instant ) {
440440 try {
441441 instant =
442442 Long .toString (
443- ISODateTimeFormat .dateTimeParser ().parseDateTime (instant ).getMillis ());
443+ ISODateTimeFormat .dateTimeParser ().parseDateTime (instant ).getMillis ()
444+ / 1000 );
444445 } catch (UnsupportedOperationException | IllegalArgumentException e ) {
445446 String msg =
446447 String .format (
You can’t perform that action at this time.
0 commit comments