forked from fanruan/finekit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
895 B
26 lines
895 B
6 years ago
|
package com.fanruan.api.decision.webservice;
|
||
|
|
||
|
import com.fr.decision.webservice.v10.login.LoginService;
|
||
|
import com.fr.third.socketio.SocketIOClient;
|
||
|
|
||
|
/**
|
||
|
* @author lidongy
|
||
|
* @version 10.0
|
||
|
* Created by lidongy on 2019/10/24
|
||
|
*/
|
||
|
public class WebServiceKit {
|
||
|
|
||
|
/**
|
||
|
* 刷新用户名对应的token,如果非保持登录,会使用tokenTimeout参数设置时长
|
||
|
*
|
||
|
* @param oldJwt 老的token
|
||
|
* @param socketIOClient socket客户端
|
||
|
* @param tokenTimeout 设置的超时时长,仅对非保持登录有用,0<= tokenTimeOut <= LoginConfig.LoginTimeOut
|
||
|
* @return 新的token
|
||
|
* @throws Exception 异常
|
||
|
*/
|
||
|
public static Response refreshToken(String oldJwt, long tokenTimeout, SocketIOClient socketIOClient) throws Exception{
|
||
|
return (Response) LoginService.getInstance().refreshToken(oldJwt, tokenTimeout, socketIOClient);
|
||
|
}
|
||
|
}
|