类 OAuth2ResourceOwnerPasswordAuthenticationProvider
java.lang.Object
xyz.raylab.authorizationserver.oauth2.authentication.password.OAuth2ResourceOwnerPasswordAuthenticationProvider
- 所有已实现的接口:
org.springframework.security.authentication.AuthenticationProvider
public class OAuth2ResourceOwnerPasswordAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
-
构造器概要
构造器构造器说明OAuth2ResourceOwnerPasswordAuthenticationProvider(org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator) Constructs anOAuth2ResourceOwnerPasswordAuthenticationProviderNewusing the provided parameters. -
方法概要
修饰符和类型方法说明org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) boolean
-
构造器详细资料
-
OAuth2ResourceOwnerPasswordAuthenticationProvider
public OAuth2ResourceOwnerPasswordAuthenticationProvider(org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator) Constructs anOAuth2ResourceOwnerPasswordAuthenticationProviderNewusing the provided parameters.- 参数:
authenticationManager- the authentication managerauthorizationService- the authorization servicetokenGenerator- the token generator- 从以下版本开始:
- 0.2.3
-
-
方法详细资料
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException - 指定者:
authenticate在接口中org.springframework.security.authentication.AuthenticationProvider- 抛出:
org.springframework.security.core.AuthenticationException
-
supports
- 指定者:
supports在接口中org.springframework.security.authentication.AuthenticationProvider
-