类 UsernamePasswordGrantAuthenticationProvider
java.lang.Object
cn.bbwres.biscuit.security.oauth2.grant.AbstractGrantAuthenticationProvider
cn.bbwres.biscuit.security.oauth2.grant.username.UsernamePasswordGrantAuthenticationProvider
- 所有已实现的接口:
org.springframework.security.authentication.AuthenticationProvider
public class UsernamePasswordGrantAuthenticationProvider
extends AbstractGrantAuthenticationProvider
账号密码登录
- 作者:
- zhanglinfeng
-
构造器概要
构造器构造器说明UsernamePasswordGrantAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<?> tokenGenerator, org.springframework.security.authentication.AuthenticationProvider authenticationProvider) -
方法概要
修饰符和类型方法说明protected org.springframework.security.core.AuthenticationauthenticateHandler(org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient, org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken oauth2AuthorizationGrantAuthentication) 认证处理booleanReturnstrueif thisAuthenticationProvidersupports the indicatedAuthenticationobject.从类继承的方法 cn.bbwres.biscuit.security.oauth2.grant.AbstractGrantAuthenticationProvider
authenticate
-
构造器详细资料
-
UsernamePasswordGrantAuthenticationProvider
public UsernamePasswordGrantAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<?> tokenGenerator, org.springframework.security.authentication.AuthenticationProvider authenticationProvider)
-
-
方法详细资料
-
authenticateHandler
protected org.springframework.security.core.Authentication authenticateHandler(org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient, org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken oauth2AuthorizationGrantAuthentication) throws org.springframework.security.core.AuthenticationException 认证处理- 指定者:
authenticateHandler在类中AbstractGrantAuthenticationProvider- 参数:
registeredClient- client 信息oauth2AuthorizationGrantAuthentication- 请求参数- 返回:
- Authentication 认证数据
- 抛出:
org.springframework.security.core.AuthenticationException
-
supports
Returnstrueif thisAuthenticationProvidersupports the indicatedAuthenticationobject.Returning
truedoes not guarantee anAuthenticationProviderwill be able to authenticate the presentedAuthenticationobject. It simply indicates it can support closer evaluation of it. AnAuthenticationProvidercan still returnnullfrom theAbstractGrantAuthenticationProvider.authenticate(Authentication)method to indicate anotherAuthenticationProvidershould be tried.Selection of an
AuthenticationProvidercapable of performing authentication is conducted at runtime theProviderManager.- 参数:
authentication-- 返回:
trueif the implementation can more closely evaluate theAuthenticationclass presented
-