프라퍼티 암호화 기능 추가

This commit is contained in:
eastargh
2026-06-22 13:40:13 +09:00
parent 8f9411f990
commit 0bb00b4fb9
3 changed files with 40 additions and 4 deletions
@@ -19,6 +19,7 @@ import com.eactive.eai.agent.encryption.ReloadEncryptionYNCommand;
import com.eactive.eai.agent.property.ReloadPropertyCommand;
import com.eactive.eai.rms.common.base.OnlBaseAnnotationController;
import com.eactive.eai.rms.common.vo.GridResponse;
import com.eactive.ext.djb.DamoManager;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -151,5 +152,12 @@ public class PropertyController extends OnlBaseAnnotationController {
resultMap.put("merge", lmerge);
return new ModelAndView("excelView", resultMap);
}
@PostMapping(value = "/onl/admin/common/propertyMan.json", params = "cmd=ENCRYPT")
public ResponseEntity<String> encrypt(PropertyUI propertyForm) throws Exception {
String encrypted = DamoManager.getInstance().encrypt(propertyForm.getPrpty2Val());
return ResponseEntity.ok(encrypted);
}
}