Async input 에 대한 ack msg암호화적용

This commit is contained in:
jaewohong
2026-02-04 11:16:09 +09:00
parent 265cc66b1f
commit 20a341348b
2 changed files with 11 additions and 7 deletions
@@ -147,8 +147,13 @@ public class ApiAdapterController implements HttpAdapterServiceKey {
// 업체별 aync response message 가 다르다.
String asyncMsgStyle = httpProp.getProperty("ASYNC_RTNMSG_TYPE", "");
String responseBody ="";
boolean encryptAsyncAckApply = StringUtils.equalsIgnoreCase(httpProp.getProperty("ASYNC_ENCRYPT_ACK", "N"), "Y");
if (asyncMsgStyle == null || asyncMsgStyle.trim().isEmpty()) {
responseBody = makeResponseBodyMsg();
responseBody = makeResponseBodyMsg();
if ( encryptAsyncAckApply) {
responseBody = service.doPostEncryption(responseBody, transactionProp, servletRequest);
}
} else {
responseBody = asyncMsgStyle;
}