类 AbstractGrantAuthenticationProvider
java.lang.Object
cn.bbwres.biscuit.security.oauth2.grant.AbstractGrantAuthenticationProvider
- 所有已实现的接口:
org.springframework.security.authentication.AuthenticationProvider
public abstract class AbstractGrantAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
GrantAuthenticationProvider 抽象类
- 作者:
- zhanglinfeng
-
构造器概要
构造器构造器说明AbstractGrantAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<?> tokenGenerator) -
方法概要
修饰符和类型方法说明org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) Performs authentication with the same contract asAuthenticationManager.authenticate(Authentication).protected abstract org.springframework.security.core.AuthenticationauthenticateHandler(org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient, org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken oauth2AuthorizationGrantAuthentication) 认证处理从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.security.authentication.AuthenticationProvider
supports
-
构造器详细资料
-
AbstractGrantAuthenticationProvider
public AbstractGrantAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<?> tokenGenerator)
-
-
方法详细资料
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException Performs authentication with the same contract asAuthenticationManager.authenticate(Authentication).- 指定者:
authenticate在接口中org.springframework.security.authentication.AuthenticationProvider- 参数:
authentication- the authentication request object.- 返回:
- a fully authenticated object including credentials. May return
nullif theAuthenticationProvideris unable to support authentication of the passedAuthenticationobject. In such a case, the nextAuthenticationProviderthat supports the presentedAuthenticationclass will be tried. - 抛出:
org.springframework.security.core.AuthenticationException- if authentication fails.
-
authenticateHandler
protected abstract 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 认证处理- 参数:
registeredClient- client 信息oauth2AuthorizationGrantAuthentication- 请求参数- 返回:
- Authentication 认证数据
- 抛出:
org.springframework.security.core.AuthenticationException
-