add spring security and token management

This commit is contained in:
dirgantarasiahaan
2023-05-23 19:42:51 +07:00
parent 597d4062c7
commit c76c01a174
35 changed files with 1095 additions and 53 deletions

View File

@@ -0,0 +1,25 @@
package com.iconplus.smartproc.util;
import com.iconplus.smartproc.exception.TechnicalException;
import java.sql.Clob;
import java.sql.SQLException;
public class CommonUtil {
private CommonUtil() {
}
public static String clobToString(Clob input) {
try {
if (input != null) {
return input.getSubString(1, (int) input.length());
} else {
return null;
}
} catch (SQLException exception) {
throw new TechnicalException(Constants.ERR_TTL_40041,
Constants.ERR_TTL_40041,
Constants.ERR_MSG_40041);
}
}
}