From 7bd24c6fc70628f8e61b6de8f17fb5019a1670b2 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Fri, 19 Jan 2024 13:33:10 +0900 Subject: [PATCH] =?UTF-8?q?xit-crypto=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../interfaces/lntris/basic/a/LntrisA03.java | 5 +- .../interfaces/lntris/basic/d/LntrisD03.java | 3 +- .../interfaces/lntris/basic/d/LntrisD05.java | 3 +- .../interfaces/lntris/basic/d/LntrisD06.java | 3 +- src/main/resources/sql/mybatis-config.xml | 1 + src/main/resources/xit-crypto.conf | 50 +++++++++++++++++++ .../basic/a/service/LntrisDServiceTest.java | 2 +- .../resources/spring/context-datasource.xml | 4 +- 8 files changed, 64 insertions(+), 7 deletions(-) create mode 100644 src/main/resources/xit-crypto.conf diff --git a/src/main/java/cokr/xit/interfaces/lntris/basic/a/LntrisA03.java b/src/main/java/cokr/xit/interfaces/lntris/basic/a/LntrisA03.java index 87d002f..1c349e9 100644 --- a/src/main/java/cokr/xit/interfaces/lntris/basic/a/LntrisA03.java +++ b/src/main/java/cokr/xit/interfaces/lntris/basic/a/LntrisA03.java @@ -75,11 +75,14 @@ public class LntrisA03 extends BasicInterface getReqVo() { - return reqVo; + return reqVo != null ? reqVo : (reqVo = new ArrayList<>()); } /**reqVo을(를) 설정한다. diff --git a/src/main/java/cokr/xit/interfaces/lntris/basic/d/LntrisD05.java b/src/main/java/cokr/xit/interfaces/lntris/basic/d/LntrisD05.java index c78af50..1376bf1 100644 --- a/src/main/java/cokr/xit/interfaces/lntris/basic/d/LntrisD05.java +++ b/src/main/java/cokr/xit/interfaces/lntris/basic/d/LntrisD05.java @@ -1,5 +1,6 @@ package cokr.xit.interfaces.lntris.basic.d; +import java.util.ArrayList; import java.util.List; import com.fasterxml.jackson.core.type.TypeReference; @@ -60,7 +61,7 @@ public class LntrisD05 extends BasicInterface getReqVo() { - return reqVo; + return reqVo != null ? reqVo : (reqVo = new ArrayList<>()); } /**reqVo을(를) 설정한다. diff --git a/src/main/java/cokr/xit/interfaces/lntris/basic/d/LntrisD06.java b/src/main/java/cokr/xit/interfaces/lntris/basic/d/LntrisD06.java index 24d87d1..b0e6778 100644 --- a/src/main/java/cokr/xit/interfaces/lntris/basic/d/LntrisD06.java +++ b/src/main/java/cokr/xit/interfaces/lntris/basic/d/LntrisD06.java @@ -1,5 +1,6 @@ package cokr.xit.interfaces.lntris.basic.d; +import java.util.ArrayList; import java.util.List; import com.fasterxml.jackson.core.type.TypeReference; @@ -60,7 +61,7 @@ public class LntrisD06 extends BasicInterface getReqVo() { - return reqVo; + return reqVo != null ? reqVo : (reqVo = new ArrayList<>()); } /**reqVo을(를) 설정한다. diff --git a/src/main/resources/sql/mybatis-config.xml b/src/main/resources/sql/mybatis-config.xml index 44b3157..1f8ec4f 100644 --- a/src/main/resources/sql/mybatis-config.xml +++ b/src/main/resources/sql/mybatis-config.xml @@ -20,6 +20,7 @@ + \ No newline at end of file diff --git a/src/main/resources/xit-crypto.conf b/src/main/resources/xit-crypto.conf new file mode 100644 index 0000000..53f8a92 --- /dev/null +++ b/src/main/resources/xit-crypto.conf @@ -0,0 +1,50 @@ +{ "enabled": true, + "cryptoDefs": [ + { "name": "aria", + "class": "cokr.xit.base.crypto.bean.ARIA", + "settings": { + "key": "Copyright (c) 2015 - (주)엑스아이티", + "algorithm": "SHA-256", + "blockSize": 1024 + } + } +/* + { "name": "echelon", + "class": "cokr.xit.base.crypto.bean.Echelon", + "settings": { + "module": "3rd-party/echelon", + "agentIP": "211.119.124.117", + "agentPort": 29995 + } + }, + { "name": "dguard", + "class": "cokr.xit.base.crypto.bean.DGuard", + "settings": { + "secureID": "xit_agent", + "securePWD": "Agent!@#$5", + "securePIN": "Agent!@#$5", + "propertyPath": "3rd-party/dguard/conf/dguard.conf", + "tableName": "TB_PAYER", + "columnName": "RTPYR_NO" + } + } +*/ + ], + + "targetValues": [ + { "name": "주민등록번호", + "mapKeys": [ + "pyrNo", + "PYR_NO", + "RPRS_PYR_NO" + ], + "objectProperties": [ + "pyrNo", + "request.pyrNo", + "request.rprsPyrNo", + "response.resVo1.pyrNo" + ], + "cryptoDefs": ["aria"] + } + ] +} \ No newline at end of file diff --git a/src/test/java/cokr/xit/interfaces/lntris/basic/a/service/LntrisDServiceTest.java b/src/test/java/cokr/xit/interfaces/lntris/basic/a/service/LntrisDServiceTest.java index 3ea2b70..07724a7 100644 --- a/src/test/java/cokr/xit/interfaces/lntris/basic/a/service/LntrisDServiceTest.java +++ b/src/test/java/cokr/xit/interfaces/lntris/basic/a/service/LntrisDServiceTest.java @@ -16,7 +16,7 @@ import cokr.xit.interfaces.lntris.basic.d.LntrisD07d; import cokr.xit.interfaces.lntris.basic.d.LntrisD07e; import cokr.xit.interfaces.lntris.basic.d.service.LntrisDService; -/**LntrisAService 테스트. +/**LntrisDService 테스트. * *

상세 설명: * diff --git a/src/test/resources/spring/context-datasource.xml b/src/test/resources/spring/context-datasource.xml index 66c3653..78ec5f3 100644 --- a/src/test/resources/spring/context-datasource.xml +++ b/src/test/resources/spring/context-datasource.xml @@ -10,14 +10,14 @@ + - -->