public class OAuth2ResourceOwnerPasswordAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
Description: 自定义 OAuth2 密码模式认证 Provider
| 构造器和说明 |
|---|
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 an
OAuth2ClientCredentialsAuthenticationProvider using the provided parameters. |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
boolean |
supports(Class<?> authentication) |
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)
OAuth2ClientCredentialsAuthenticationProvider using the provided parameters.authorizationService - the authorization servicetokenGenerator - – the token generatorpublic org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
authenticate 在接口中 org.springframework.security.authentication.AuthenticationProviderorg.springframework.security.core.AuthenticationExceptionpublic boolean supports(Class<?> authentication)
supports 在接口中 org.springframework.security.authentication.AuthenticationProviderCopyright © 2022. All rights reserved.