@Service @ConditionalOnMissingBean(value=IAuthenticationChecksService.class) public class AuthenticationChecksServiceImpl extends Object implements IAuthenticationChecksService
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.support.MessageSourceAccessor |
messages |
| Constructor and Description |
|---|
AuthenticationChecksServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)
认证校验
需要自定义登录认证逻辑的时候,可以实现该接口,并加上@Service注解 |
public void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)
IAuthenticationChecksServiceadditionalAuthenticationChecks in interface IAuthenticationChecksServiceuserDetails - 通过UserDetailsService获取到的用户详情authentication - 登录认证时传入的所有参数Copyright © 2019. All rights reserved.