diff --git a/authentication/esignet-integration-impl/pom.xml b/authentication/esignet-integration-impl/pom.xml
index 7a170521c91..e426fa38e19 100644
--- a/authentication/esignet-integration-impl/pom.xml
+++ b/authentication/esignet-integration-impl/pom.xml
@@ -35,14 +35,14 @@
io.mosip.esignet
esignet-integration-api
- 1.0.0-SNAPSHOT
+ 1.2.0-SNAPSHOT
provided
io.mosip.kernel
kernel-keymanager-service
- 1.2.1-SNAPSHOT
+ 1.2.0.1-B2
provided
lib
diff --git a/authentication/esignet-integration-impl/src/main/java/io/mosip/authentication/esignet/integration/service/IdaVCIssuancePluginImpl.java b/authentication/esignet-integration-impl/src/main/java/io/mosip/authentication/esignet/integration/service/IdaVCIssuancePluginImpl.java
index a4b13244659..848b7280a62 100644
--- a/authentication/esignet-integration-impl/src/main/java/io/mosip/authentication/esignet/integration/service/IdaVCIssuancePluginImpl.java
+++ b/authentication/esignet-integration-impl/src/main/java/io/mosip/authentication/esignet/integration/service/IdaVCIssuancePluginImpl.java
@@ -52,7 +52,6 @@ public class IdaVCIssuancePluginImpl implements VCIssuancePlugin {
public static final String SIGNATURE_HEADER_NAME = "signature";
public static final String AUTHORIZATION_HEADER_NAME = "Authorization";
public static final String OIDC_SERVICE_APP_ID = "OIDC_SERVICE";
- private static Base64.Decoder urlSafeDecoder;
public static final String AES_CIPHER_FAILED = "aes_cipher_failed";
public static final String NO_UNIQUE_ALIAS = "no_unique_alias";
@@ -95,13 +94,14 @@ public class IdaVCIssuancePluginImpl implements VCIssuancePlugin {
@Value("${mosip.esignet.cache.security.secretkey.reference-id}")
private String cacheSecretKeyRefId;
+ private Base64.Decoder urlSafeDecoder = Base64.getUrlDecoder();
+
+
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public VCResult getVerifiableCredentialWithLinkedDataProof(VCRequestDto vcRequestDto, String holderId,
Map identityDetails) {
log.info("Started to created the VCIssuance");
- log.info("Started to build vci-exchange request : {} && clientId : {}",
- identityDetails.get(CLIENT_ID).toString());
try {
Map vciTransaction = vciTransactionHelper
@@ -118,8 +118,8 @@ public VCResult getVerifiableCredentialWithLinkedDataProof(VCRequestDto vcReques
idaVciExchangeRequest.setCredSubjectId(holderId);
idaVciExchangeRequest.setVcFormat(vcRequestDto.getFormat());
vciCred.setCredentialSubject(vcRequestDto.getCredentialSubject());
- vciCred.setType(List.of(
- (vcRequestDto.getTypes().length > 1 ? vcRequestDto.getTypes()[1] : vcRequestDto.getTypes()[0])));
+ vciCred.setType(vcRequestDto.getType());
+ vciCred.setContext(vcRequestDto.getContext());
idaVciExchangeRequest.setCredentialsDefinition(vciCred);
String requestBody = objectMapper.writeValueAsString(idaVciExchangeRequest);
@@ -206,7 +206,7 @@ private String getKeyAlias(String keyAppId, String keyRefId) throws Exception {
throw new Exception(NO_UNIQUE_ALIAS);
}
- public static byte[] b64Decode(String value) {
+ private byte[] b64Decode(String value) {
return urlSafeDecoder.decode(value);
}
}