public abstract class AbstractSimpleUserDetailsAuthenticationProvider<T extends SimpleAuthenticationToken> extends java.lang.Object implements AuthenticationProvider<T>
| Constructor and Description |
|---|
AbstractSimpleUserDetailsAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
authenticate(SimpleAuthenticationToken token)
进行身份验证
|
protected Authentication |
createSuccessAuthentication(java.lang.Object principal,
Authentication authentication,
UserDetails user) |
abstract UserDetails |
retrieveUser(SimpleAuthenticationToken token) |
void |
setPostAuthenticationChecks(UserDetailsChecker postAuthenticationChecks) |
void |
setPreAuthenticationChecks(UserDetailsChecker preAuthenticationChecks) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportspublic AbstractSimpleUserDetailsAuthenticationProvider()
public abstract UserDetails retrieveUser(SimpleAuthenticationToken token)
public Authentication authenticate(SimpleAuthenticationToken token) throws AuthenticationException
AuthenticationProviderauthenticate in interface AuthenticationProvider<T extends SimpleAuthenticationToken>AuthenticationExceptionprotected Authentication createSuccessAuthentication(java.lang.Object principal, Authentication authentication, UserDetails user)
public void setPreAuthenticationChecks(UserDetailsChecker preAuthenticationChecks)
public void setPostAuthenticationChecks(UserDetailsChecker postAuthenticationChecks)