Skip to content

Commit

Permalink
Mosip 30687 on demand template extraction (#1203)
Browse files Browse the repository at this point in the history
* MOSIP-30687 partner data changed

Signed-off-by: Neha Farheen <[email protected]>

* MOSIP-30687 partner data changed

Signed-off-by: Neha Farheen <[email protected]>

* MOSIP-30687 changes done for ondemand

Signed-off-by: Neha Farheen <[email protected]>

* MOSIP-30687 changes done  for exception

Signed-off-by: Neha Farheen <[email protected]>

* Changes in error message

Signed-off-by: Neha Farheen <[email protected]>

* Changes in error message

Signed-off-by: Neha Farheen <[email protected]>

* REmoved the error message related changes

Signed-off-by: Neha Farheen <[email protected]>

* MOSIP-31517 On demand changes error message removal

Signed-off-by: Neha Farheen <[email protected]>

* Changes done

Signed-off-by: Neha Farheen <[email protected]>

* otp controller changes

Signed-off-by: Neha Farheen <[email protected]>

* OTP repo changes

Signed-off-by: Neha Farheen <[email protected]>

* OTP repo changes

Signed-off-by: Neha Farheen <[email protected]>

* OTP manager changes done

Signed-off-by: Neha Farheen <[email protected]>

* encoded the encrypted data

Signed-off-by: Neha Farheen <[email protected]>

* ondemand changes

Signed-off-by: Neha Farheen <[email protected]>

* changes in encoding

Signed-off-by: Neha Farheen <[email protected]>

* logger changes

Signed-off-by: Neha Farheen <[email protected]>

---------

Signed-off-by: Neha Farheen <[email protected]>
Co-authored-by: Neha Farheen <[email protected]>
Co-authored-by: 61092365 <61092365@DPQ7NM3>
  • Loading branch information
3 people authored Feb 21, 2024
1 parent 87b4b9f commit 6cf4ba3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,8 @@ public String asymmetricEncryption(byte[] dataToEncrypt, String partnerCertifica
PublicKey publicKey = x509Certificate.getPublicKey();
byte[] encryptedData = cryptoCore.asymmetricEncrypt(publicKey, dataToEncrypt);
mosipLogger.info("AssymetricEncrypted data -- Start" + encryptedData+ " End--AssymetricEncrypted data" );
return CryptoUtil.encodeBase64Url(encryptedData);
return CryptoUtil.encodeBase64(encryptedData);

}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ public OtpResponseDTO generateOTP(@Valid @RequestBody OtpRequestDTO otpRequestDt
String idvidHash = securityManager.hash(otpRequestDto.getIndividualId());
String idType = Objects.nonNull(otpRequestDto.getIndividualIdType()) ? otpRequestDto.getIndividualIdType()
: idTypeUtil.getIdType(otpRequestDto.getIndividualId()).getType();
logger.debug(IdAuthCommonConstants.SESSION_ID, this.getClass().getSimpleName(), GENERATE_OTP,
"IdType...."+ idType);
otpRequestDto.setIndividualIdType(idType);
otpRequestValidator.validateIdvId(otpRequestDto.getIndividualId(), idType, errors, IdAuthCommonConstants.IDV_ID);
DataValidationUtil.validate(errors);
Expand Down

0 comments on commit 6cf4ba3

Please sign in to comment.