Skip to content

Commit

Permalink
MOSIP-33013 (#112)
Browse files Browse the repository at this point in the history
* Added logback file

Signed-off-by: dhanendra06 <[email protected]>

* MOSIP-33013

Signed-off-by: dhanendra06 <[email protected]>

---------

Signed-off-by: dhanendra06 <[email protected]>
  • Loading branch information
dhanendra06 authored Jul 11, 2024
1 parent 2ef724c commit 6acb1bf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public void generateDigitalCard(String credential, String credentialType,String
credential = restClient.getForObject(dataShareUrl, String.class);
}
decryptedCredential = encryptionUtil.decryptData(credential);
logger.info("decrypted data: {}",decryptedCredential);
JSONObject jsonObject = new org.json.JSONObject(decryptedCredential);
JSONObject decryptedCredentialJson = jsonObject.getJSONObject("credentialSubject");
rid=getRid(decryptedCredentialJson.get("id"));
Expand All @@ -134,6 +135,7 @@ public void generateDigitalCard(String credential, String credentialType,String
}
if (isPasswordProtected) {
password = getPassword(decryptedCredentialJson);
logger.info("password: {}",password);
}
byte[] pdfBytes=pdfCardServiceImpl.generateCard(decryptedCredentialJson, credentialType,password,additionalAttributes);
digitalCardStatusUpdate(transactionId,pdfBytes,credentialType,rid);
Expand Down

0 comments on commit 6acb1bf

Please sign in to comment.