类 OAuth2ResourceOwnerPasswordAuthenticationProvider
java.lang.Object
cn.herodotus.engine.oauth2.authorization.authentication.OAuth2ResourceOwnerPasswordAuthenticationProvider
- 所有已实现的接口:
org.springframework.security.authentication.AuthenticationProvider
public class OAuth2ResourceOwnerPasswordAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
Description: 自定义 OAuth2 密码模式认证 Provider
- 作者:
- : gengwei.zheng
- Date:
- : 2022/2/22 16:02
-
构造器概要
构造器构造器说明OAuth2ResourceOwnerPasswordAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator, org.springframework.security.authentication.AuthenticationManager authenticationManager) Constructs anOAuth2ClientCredentialsAuthenticationProviderusing the provided parameters. -
方法概要
修饰符和类型方法说明org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) boolean
-
构造器详细资料
-
OAuth2ResourceOwnerPasswordAuthenticationProvider
public OAuth2ResourceOwnerPasswordAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator, org.springframework.security.authentication.AuthenticationManager authenticationManager) Constructs anOAuth2ClientCredentialsAuthenticationProviderusing the provided parameters.- 参数:
authorizationService- the authorization servicetokenGenerator- – the token generator
-
-
方法详细资料
-
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
-