public class AuthenticationHelper
extends java.lang.Object
| 构造器和说明 |
|---|
AuthenticationHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
dealCookie(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
从缓存登录
|
static boolean |
dealLoginInfo(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String username,
java.lang.String password,
boolean isTemplate)
处理登录用户登录信息
|
static boolean |
dealLoginInfo(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String username,
java.lang.String password,
boolean isTemplate,
boolean fromCookie) |
static boolean |
dealMobileLoginInfo(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String username,
java.lang.String password)
处理登录用户登录信息
|
static AuthenticateResult |
doAuthenticate(CommonAuthentication auth,
UserNamePassWordFSAuthenticationProvider authProvider,
boolean isTemplate)
执行用户认证
|
static AuthenticateResult |
doAuthenticate(java.lang.String username,
java.lang.String password,
boolean isTemplate) |
static java.lang.String |
getUsername(javax.servlet.http.HttpServletRequest req)
获取用户名
|
static java.lang.String |
getUserShowName(javax.servlet.http.HttpServletRequest req)
获取FS用户登录后的显示名称
|
static boolean |
isSupportFS()
返回是否支持FS
|
public static void dealCookie(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.lang.Exception
req - HTTP请求res - HTTP响应java.lang.Exception - 异常public static boolean dealLoginInfo(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String username,
java.lang.String password,
boolean isTemplate)
throws java.lang.Exception
req - http请求res - http响应username - 用户名password - 密码isTemplate - 是否是权限控制的请求java.lang.Exceptionpublic static boolean dealLoginInfo(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String username,
java.lang.String password,
boolean isTemplate,
boolean fromCookie)
throws java.lang.Exception
java.lang.Exceptionpublic static boolean dealMobileLoginInfo(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String username,
java.lang.String password)
throws java.lang.Exception
req - http请求res - http响应username - 用户名password - 密码java.lang.Exceptionpublic static AuthenticateResult doAuthenticate(CommonAuthentication auth, UserNamePassWordFSAuthenticationProvider authProvider, boolean isTemplate) throws java.lang.Exception
auth - 认证对象authProvider - 认证方法isTemplate - 是否是权限控制的请求java.lang.Exceptionpublic static AuthenticateResult doAuthenticate(java.lang.String username, java.lang.String password, boolean isTemplate) throws java.lang.Exception
java.lang.Exceptionpublic static boolean isSupportFS()
public static java.lang.String getUserShowName(javax.servlet.http.HttpServletRequest req)
throws java.lang.Exception
req - http请求java.lang.Exceptionpublic static java.lang.String getUsername(javax.servlet.http.HttpServletRequest req)
throws java.lang.Exception
req - HTTP请求java.lang.Exception - 异常