message 타입 ObjectNode 대응

This commit is contained in:
curry772
2026-07-21 10:49:39 +09:00
parent 73a50e5db4
commit a77f4d4ef0
@@ -37,12 +37,15 @@ public class EncrytTestFilter implements HttpAdapterFilter {
String jsonStr = null; String jsonStr = null;
if (message instanceof String) { if (message instanceof String) {
jsonStr = (String) message; jsonStr = (String) message;
} else if (message instanceof JSONObject) { } else if (message instanceof ObjectNode) {
rootNode = (ObjectNode) message;
} else if (message instanceof JSONObject) {
jsonStr = ((JSONObject) message).toJSONString(); jsonStr = ((JSONObject) message).toJSONString();
} else { } else {
return message; return message;
} }
rootNode = (ObjectNode) OBJECT_MAPPER.readTree(jsonStr); if(rootNode == null)
rootNode = (ObjectNode) OBJECT_MAPPER.readTree(jsonStr);
// 1. HSM에서 키 가져오기 // 1. HSM에서 키 가져오기
byte[] hsmKeyBytes = null; byte[] hsmKeyBytes = null;