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