|
|
@ -95,12 +95,12 @@ public class LoginKit { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 刷新用户名对应的token,并输出response |
|
|
|
* 刷新用户名对应的token,并将响应利用web工具封装至res |
|
|
|
* |
|
|
|
* |
|
|
|
* @param oldJwt 老的token |
|
|
|
* @param oldJwt 老的token |
|
|
|
* @param socketIOClient socket客户端 |
|
|
|
* @param socketIOClient socket客户端 |
|
|
|
* @param tokenTimeout 设置的超时时长,仅对非保持登录有用,0<= tokenTimeOut <= LoginConfig.LoginTimeOut |
|
|
|
* @param tokenTimeout 设置的超时时长,仅对非保持登录有用,0<= tokenTimeOut <= LoginConfig.LoginTimeOut |
|
|
|
* @param res HttpServletResponse |
|
|
|
* @param res 刷新后,得到的响应会封装至此HttpServletResponse中 |
|
|
|
* @throws Exception 异常 |
|
|
|
* @throws Exception 异常 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void refreshTokenAndWriteResponse(String oldJwt, long tokenTimeout, SocketIOClient socketIOClient, HttpServletResponse res) throws Exception { |
|
|
|
public static void refreshTokenAndWriteResponse(String oldJwt, long tokenTimeout, SocketIOClient socketIOClient, HttpServletResponse res) throws Exception { |
|
|
|