程序包 com.sh.frame
类 EnterController
java.lang.Object
com.sh.spring.SHSpringBase
com.sh.frame.EnterController
- 所有已实现的接口:
SHSpringNoLogin
-
字段概要
从类继承的字段 com.sh.spring.SHSpringBase
BEGIN_DIRECT_FORWARD, BEGIN_RET_TYPE, BEGIN_RET_TYPE_DATA, BEGIN_RET_TYPE_PAGE, ERROR, ERROR_MSG, FAILURE, IFRAME_FORWARD, log4j, MESSAGE, SUCCESS -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringbyteToHexString(byte[] src) 将byte转换为16进制字符串static byte[]static byte[]enter(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidextrnalAuth1(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidextrnalAuth2(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) static byte[]getClientIdWithCookie(jakarta.servlet.http.HttpServletRequest request) static IvParameterSpecgetIv()static byte[]hexStringToBytes(String hexString) 将16进制字符串装换为byte数组voidreturnForward(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String forward, String msgType, String msgStr) voidreturnForward(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String forward, String msgType, String msgStr, UserInfo userInfo) 页面返回值判断,主要是处理当通过ajax请求登陆验证时用从类继承的方法 com.sh.spring.SHSpringBase
begin, dc, finish, getErrorDirectForword, getErrorDirectType, getErrorMsg, getParameterValue, getParameterValues, getRequestFile, getRequestFiles, getSessionValue, request, response, session, setErrorDirectForword, setErrorDirectRet, setErrorMsg, setRequestValue, setSessionValue, userInfo
-
构造器详细资料
-
EnterController
public EnterController()
-
-
方法详细资料
-
enter
@GetMapping({"/","/enterEx"}) public String enter(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Exception - 抛出:
Exception
-
extrnalAuth1
@GetMapping("/extrnalAuth1") public void extrnalAuth1(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) -
extrnalAuth2
@PostMapping("/extrnalAuth2") public void extrnalAuth2(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) -
returnForward
-
returnForward
public void returnForward(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String forward, String msgType, String msgStr, UserInfo userInfo) 页面返回值判断,主要是处理当通过ajax请求登陆验证时用- 参数:
forward-msgType-msgStr-
-
getClientIdWithCookie
-
generatorKey
-
getIv
-
encrypt
public static byte[] encrypt(String src, byte[] key) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException, InvalidAlgorithmParameterException -
decrypt
- 抛出:
Exception
-
byteToHexString
将byte转换为16进制字符串- 参数:
src-- 返回:
-
hexStringToBytes
将16进制字符串装换为byte数组- 参数:
hexString-- 返回:
-