diff --git a/src/main/java/com/eactive/ext/kjb/safedb/SafeDBWrapper.java b/src/main/java/com/eactive/ext/kjb/safedb/SafeDBWrapper.java index b471867..82094ad 100644 --- a/src/main/java/com/eactive/ext/kjb/safedb/SafeDBWrapper.java +++ b/src/main/java/com/eactive/ext/kjb/safedb/SafeDBWrapper.java @@ -86,12 +86,9 @@ public class SafeDBWrapper extends SafeDBBroker { } - public byte[] encrypt(String userId, String table, String column, String data) throws SafeDBWrapperSdkException { + public byte[] encrypt(String userId, String table, String column, String data) throws SafeDBWrapperSdkException { if (isRealSafeDB) { try { -// return (byte[]) super.methodInvoke("encrypt", -// new Class[]{String.class, String.class, String.class, String.class}, -// new Object[]{userId, table, column, data}); log.debug("[SafeDBWrapper] real / userId : {}, table : {}, column : {}, data : {}", userId, table, column, data); return safedb.encrypt(userId, table, column, data.getBytes()); } catch (Exception e) { @@ -110,10 +107,9 @@ public class SafeDBWrapper extends SafeDBBroker { public byte[] decrypt(String userId, String table, String column, String data) throws SafeDBWrapperSdkException { if (isRealSafeDB) { try { -// return (byte[]) super.methodInvoke("decrypt", -// new Class[]{String.class, String.class, String.class, String.class}, -// new Object[]{userId, table, column, data}); + log.debug("[SafeDBWrapper] String : {}", data); byte[] dataBytes = Base64.getDecoder().decode(data); + log.debug("[SafeDBWrapper] Decode data : {}", dataBytes); return safedb.decrypt(userId, table, column, dataBytes); } catch (Exception e) { throw new SafeDBWrapperException("[SafeDBWrapper] Decrypt error: " + e.getMessage(), e);