public abstract class AuthenticationBase extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
corsDisabled |
| 构造器和说明 |
|---|
AuthenticationBase(SecurityContext securityContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
appendSecurityConfig(List<framework.security.FunctionPermission> functionPermissionList)
将配置文件中的配置项附加到功能列表
|
AuthenticationData |
authCheck(AuthenticationHandler handler)
执行授权检查
|
protected framework.security.Account |
basicParser(String token)
Token解析器
|
protected AuthenticationData |
checkCors(AuthenticationHandler handler) |
protected List<FunctionPermissionHandler> |
convertFunctionPermissionHandler(List<framework.security.FunctionPermission> functionPermissionList)
将功能函数列表转换为处理器列表
|
protected framework.security.token.AuthTokenInfo |
createNewTokenOfCookieUpdate(framework.security.token.AuthTokenInfo tokenInfo)
创建用于更新cookie中token的新token
|
protected FunctionPermissionHandler |
findFunctionMatcher(AuthenticationHandler handler)
查找功能匹配器
|
protected FunctionPermissionHandler |
findFunctionMatcher(String method,
String path)
查找功能匹配器
|
protected boolean |
hasAnonymous(AuthenticationHandler handler,
FunctionPermissionHandler functionPermissionHandler)
未授权
|
protected boolean |
hasPermissions(AuthenticationHandler handler,
List<String> permissions,
FunctionPermissionHandler functionPermissionHandler)
权限检查
|
protected List<framework.security.FunctionPermission> |
loadFunctionPermissionList()
加载系统配置的功能权限列表
|
protected void |
tokenBalance(framework.security.token.AuthTokenInfo tokenInfo,
AuthenticationHandler handler) |
protected framework.security.token.AuthTokenInfo |
tokenParser(String token)
Token解析器
|
protected void |
tokenReminder(framework.security.token.AuthTokenInfo tokenInfo,
AuthenticationHandler handler)
过期提醒判定
|
protected void |
updateTokenToCookie(framework.security.token.AuthTokenInfo tokenInfo,
AuthenticationHandler handler)
令牌更新
|
protected boolean |
validateSid(framework.security.token.AuthTokenInfo tokenInfo) |
public AuthenticationBase(SecurityContext securityContext)
protected List<FunctionPermissionHandler> convertFunctionPermissionHandler(List<framework.security.FunctionPermission> functionPermissionList)
functionPermissionList - protected void appendSecurityConfig(List<framework.security.FunctionPermission> functionPermissionList)
functionPermissionList - public AuthenticationData authCheck(AuthenticationHandler handler) throws AuthenticationCheckerException
handler - AuthenticationCheckerExceptionprotected void updateTokenToCookie(framework.security.token.AuthTokenInfo tokenInfo,
AuthenticationHandler handler)
tokenInfo - handler - protected framework.security.token.AuthTokenInfo createNewTokenOfCookieUpdate(framework.security.token.AuthTokenInfo tokenInfo)
tokenInfo - protected boolean validateSid(framework.security.token.AuthTokenInfo tokenInfo)
protected AuthenticationData checkCors(AuthenticationHandler handler)
protected void tokenBalance(framework.security.token.AuthTokenInfo tokenInfo,
AuthenticationHandler handler)
protected void tokenReminder(framework.security.token.AuthTokenInfo tokenInfo,
AuthenticationHandler handler)
tokenInfo - handler - protected boolean hasAnonymous(AuthenticationHandler handler, FunctionPermissionHandler functionPermissionHandler)
handler - functionPermissionHandler - protected boolean hasPermissions(AuthenticationHandler handler, List<String> permissions, FunctionPermissionHandler functionPermissionHandler)
handler - permissions - functionPermissionHandler - protected framework.security.token.AuthTokenInfo tokenParser(String token)
token - protected framework.security.Account basicParser(String token)
token - protected FunctionPermissionHandler findFunctionMatcher(AuthenticationHandler handler)
protected FunctionPermissionHandler findFunctionMatcher(String method, String path)
protected List<framework.security.FunctionPermission> loadFunctionPermissionList()
Copyright © 2025. All rights reserved.