프라퍼티 암호화 기능 추가
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user