xiejun
2024-11-01 0496aed6e04c5084f05ce1035ba9ec38e3d4e9c7
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/IPasswordFreeLoginService.java
@@ -1,5 +1,9 @@
package com.vci.ubcs.code.service;
import org.apache.http.auth.AuthenticationException;
import javax.servlet.ServletRequest;
/**
 * 免密登录服务
 * @author ludc
@@ -8,11 +12,35 @@
public interface IPasswordFreeLoginService {
   /**
    * 免密登录方法
    * @param username 账号
    * 根据服务名获取端口号
    * @param serviceId
    * @return
    */
   boolean passwordFreeLogin(String username);
   String getGatewayPort(String serviceId);
   /**
    * 免密登录,改变当前webservice请求的header
    * @param userName 账号
    * @param servletRequest
    * @return boolean
    * @throws AuthenticationException
    */
   boolean pwdFreeLoginByBoolean(String userName, ServletRequest servletRequest) throws AuthenticationException;
   /**
    * 免密登录请求发送
    * @param userName 账号
    * @return 返回token
    * @throws AuthenticationException
    */
   String passwordFreeLogin(String userName) throws AuthenticationException;
   /**
    * 单点登录
    * @param empCode
    * @return
    * @throws Exception
    */
   String ssoFreeLogin(String empCode) throws Exception;
}