public abstract class AuthTemplate extends Object
| 构造器和说明 |
|---|
AuthTemplate() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
protected void |
handleCheckUserStatus(UserDetailsSupport userSupport)
检查用户状态
|
protected void |
handlePostCheck(AuthFormSupport formSupport,
UserDetailsSupport userSupport)
后置检查
获取用户信息后执行,可用来检查密码是否正确
|
protected void |
handlePreCheck(AuthFormSupport formSupport)
前置检查
获取用户信息前执行,可用来检查token是否正确
|
protected abstract AuthToken |
handleResult(AuthFormSupport formSupport,
UserDetailsSupport userSupport) |
protected abstract UserDetailsSupport |
loadUserDetails(AuthFormSupport formSupport)
获取用户信息
|
public final org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
protected void handlePreCheck(AuthFormSupport formSupport)
获取用户信息前执行,可用来检查token是否正确
protected void handlePostCheck(AuthFormSupport formSupport, UserDetailsSupport userSupport)
获取用户信息后执行,可用来检查密码是否正确
protected void handleCheckUserStatus(UserDetailsSupport userSupport)
protected abstract UserDetailsSupport loadUserDetails(AuthFormSupport formSupport)
protected abstract AuthToken handleResult(AuthFormSupport formSupport, UserDetailsSupport userSupport)
Copyright © 2024. All rights reserved.