public abstract class AbstractAuthService extends Object implements AuthService
AuthService.LoginDto| 限定符和类型 | 字段和说明 |
|---|---|
protected javax.servlet.http.HttpServletRequest |
request |
| 构造器和说明 |
|---|
AbstractAuthService(javax.servlet.http.HttpServletRequest request) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
authentication(List<String> withoutAuthenticationUrlRegulars)
认证检查
|
javax.servlet.http.HttpServletRequest |
getRequest() |
protected boolean |
pass(String uri,
List<String> withoutAuthenticationUrlRegulars) |
boolean |
skip() |
String |
token() |
String |
userName() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlogin, permissions, roles, userpublic AbstractAuthService(javax.servlet.http.HttpServletRequest request)
request - http 请求public javax.servlet.http.HttpServletRequest getRequest()
public boolean authentication(List<String> withoutAuthenticationUrlRegulars)
AuthServiceauthentication 在接口中 AuthServicewithoutAuthenticationUrlRegulars - 不需要检查的url正则表达式protected boolean pass(String uri, List<String> withoutAuthenticationUrlRegulars)
uri - 请求地址withoutAuthenticationUrlRegulars - 放行url正则public String token()
token 在接口中 AuthServicepublic String userName()
userName 在接口中 AuthServicepublic boolean skip()
skip 在接口中 AuthServiceCopyright © 2019. All rights reserved.