message 타입 ObjectNode 대응
This commit is contained in:
+5
-2
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user