Skip to content

Commit

Permalink
Revert "[ES-504] Internal credential object considered for forming th…
Browse files Browse the repository at this point in the history
…e final …"
  • Loading branch information
vishwa-vyom authored Jan 10, 2024
1 parent 8eda9b9 commit dc54951
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ public class SunbirdRCVCIssuancePlugin implements VCIssuancePlugin {

private static final String STATIC_VALUE_MAP_ISSUER_ID = "static-value-map.issuerId";

private static final String CREDENTIAL_OBJECT_KEY = "credential";

@Autowired
Environment env;

Expand Down Expand Up @@ -146,7 +144,7 @@ public VCResult<JsonLDObject> getVerifiableCredentialWithLinkedDataProof(VCReque
Map<String,Object> vcResponseMap =sendCredentialIssueRequest(credentialRequestMap);

VCResult vcResult = new VCResult();
JsonLDObject vcJsonLdObject = JsonLDObject.fromJsonObject(vcResponseMap.get(CREDENTIAL_OBJECT_KEY));
JsonLDObject vcJsonLdObject = JsonLDObject.fromJsonObject(vcResponseMap);
vcResult.setCredential(vcJsonLdObject);
vcResult.setFormat(LINKED_DATA_PROOF_VC_FORMAT);
return vcResult;
Expand Down Expand Up @@ -275,4 +273,11 @@ private void validateContextUrl(Template template,List<String> vcRequestContextL
throw new VCIExchangeException(ErrorConstants.VCI_EXCHANGE_FAILED);
}
}

private static Date calculateNowPlus30Days() {
// Implement your logic to calculate current date + 30 days
Calendar calendar = Calendar.getInstance();
calendar.add(Calendar.DAY_OF_MONTH, 30);
return calendar.getTime();
}
}

0 comments on commit dc54951

Please sign in to comment.