| 构造器和说明 |
|---|
SmsCodeAuthenticationProvider() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication)
执行认证 根据手机号获取用户信息并创建认证令牌
|
boolean |
supports(Class<?> authentication)
判断是否支持指定的认证类型
|
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
authenticate 在接口中 org.springframework.security.authentication.AuthenticationProviderauthentication - 认证请求org.springframework.security.core.AuthenticationException - 当认证失败时抛出public boolean supports(Class<?> authentication)
supports 在接口中 org.springframework.security.authentication.AuthenticationProviderauthentication - 认证类型Copyright © 2025. All rights reserved.