@Component
public class AuthenticationProvider
extends org.springframework.security.authentication.dao.DaoAuthenticationProvider
| 构造器和说明 |
|---|
AuthenticationProvider(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)
重载附加检查
|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication)
重载授权认证,加入验证码校验
|
protected void |
validateCaptcha(String captchaId,
String captcha)
验证码验证
|
createSuccessAuthentication, doAfterPropertiesSet, getPasswordEncoder, getUserDetailsService, retrieveUser, setPasswordEncoder, setUserDetailsPasswordService, setUserDetailsServiceafterPropertiesSet, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setAuthoritiesMapper, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supportspublic AuthenticationProvider(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
authenticate 在接口中 org.springframework.security.authentication.AuthenticationProviderauthenticate 在类中 org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProviderauthentication - org.springframework.security.core.AuthenticationExceptionprotected void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)
throws org.springframework.security.core.AuthenticationException
additionalAuthenticationChecks 在类中 org.springframework.security.authentication.dao.DaoAuthenticationProvideruserDetails - authentication - org.springframework.security.core.AuthenticationExceptionCopyright © 2023. All rights reserved.