| | |
| | | import org.apache.http.auth.AuthenticationException; |
| | | |
| | | import javax.servlet.ServletRequest; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | /** |
| | | * 免密登录服务 |
| | |
| | | String getGatewayPort(String serviceId); |
| | | |
| | | /** |
| | | * 免密登录方法 |
| | | * @param username 账号 |
| | | * @return |
| | | * 免密登录,改变当前webservice请求的header |
| | | * @param userName 账号 |
| | | * @param servletRequest |
| | | * @return boolean |
| | | * @throws AuthenticationException |
| | | */ |
| | | boolean passwordFreeLogin(String username, ServletRequest request) throws AuthenticationException; |
| | | boolean pwdFreeLoginByBoolean(String userName, ServletRequest servletRequest) throws AuthenticationException; |
| | | |
| | | /** |
| | | * 免密登录请求发送 |
| | | * @param userName 账号 |
| | | * @return 返回token |
| | | * @throws AuthenticationException |
| | | */ |
| | | String passwordFreeLogin(String userName) throws AuthenticationException; |
| | | |
| | | /** |
| | | * 单点登录 |
| | | * @param servletRequest |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | String ssoFreeLogin(ServletRequest servletRequest) throws Exception; |
| | | |
| | | } |