diff --git a/pre-registration/pre-registration-application-service/src/main/java/io/mosip/preregistration/application/service/DemographicService.java b/pre-registration/pre-registration-application-service/src/main/java/io/mosip/preregistration/application/service/DemographicService.java index 0e5a9d733ed..25a67c1d9d1 100644 --- a/pre-registration/pre-registration-application-service/src/main/java/io/mosip/preregistration/application/service/DemographicService.java +++ b/pre-registration/pre-registration-application-service/src/main/java/io/mosip/preregistration/application/service/DemographicService.java @@ -580,6 +580,9 @@ private void prepareDemographicResponse(DemographicMetadataDTO demographicMetada JSONParser jsonParser = new JSONParser(); for (DemographicEntity demographicEntity : demographicEntities) { log.info("sessionId", "idType", "id", "decryption start time : " + DateUtils.getUTCCurrentDateTimeString()); + log.info("sessionId", "idType", "id", "applicationjson : " + new String(demographicEntity.getApplicantDetailJson())); + log.info("sessionId", "idType", "id", "preregId : " + demographicEntity.getPreRegistrationId()); + byte[] decryptedString = cryptoUtil.decrypt(demographicEntity.getApplicantDetailJson(), DateUtils.getUTCCurrentDateTime()); log.info("sessionId", "idType", "id", "decryption end time : " + DateUtils.getUTCCurrentDateTimeString()); diff --git a/pre-registration/pre-registration-core/src/main/java/io/mosip/preregistration/core/util/CryptoUtil.java b/pre-registration/pre-registration-core/src/main/java/io/mosip/preregistration/core/util/CryptoUtil.java index 272dc6491fc..ca0686d08b2 100644 --- a/pre-registration/pre-registration-core/src/main/java/io/mosip/preregistration/core/util/CryptoUtil.java +++ b/pre-registration/pre-registration-core/src/main/java/io/mosip/preregistration/core/util/CryptoUtil.java @@ -102,6 +102,9 @@ public byte[] decrypt(byte[] originalInput, LocalDateTime localDateTime) { try { CryptoManagerRequestDTO dto = new CryptoManagerRequestDTO(); + log.info("sessionId", "idType", "cryptoApplicationId:", cryptoApplcationId); + log.info("sessionId", "idType", "cryptoReferenceId:", cryptoReferenceId); + log.info("sessionId", "idType", "originalInput:", new String(originalInput, StandardCharsets.UTF_8)); dto.setApplicationId(cryptoApplcationId); dto.setData(new String(originalInput, StandardCharsets.UTF_8)); dto.setReferenceId(cryptoReferenceId);