public class OAuth2ResourceOwnerPasswordAuthenticationProvider extends AbstractOAuth2ResourceOwnerAuthenticationProvider<OAuth2ResourceOwnerPasswordAuthenticationToken>
| 构造器和说明 |
|---|
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.core.userdetails.UserDetailsService userDetailsService)
Constructs an
OAuth2ResourceOwnerPasswordAuthenticationProviderNew using
the provided parameters. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.security.core.Authentication |
getAuthenticatedAuthentication(OAuth2ResourceOwnerPasswordAuthenticationToken resourceOwnerPasswordAuthentication)
根据请求的 authentication 转换为认证后的 authentication
|
void |
setPasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder) |
boolean |
supports(Class<?> authentication) |
authenticatepublic 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.core.userdetails.UserDetailsService userDetailsService)
OAuth2ResourceOwnerPasswordAuthenticationProviderNew using
the provided parameters.userDetailsService - the userDetails serviceauthorizationService - the authorization servicetokenGenerator - the token generatorpublic void setPasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
public boolean supports(Class<?> authentication)
protected org.springframework.security.core.Authentication getAuthenticatedAuthentication(OAuth2ResourceOwnerPasswordAuthenticationToken resourceOwnerPasswordAuthentication)
getAuthenticatedAuthentication 在类中 AbstractOAuth2ResourceOwnerAuthenticationProvider<OAuth2ResourceOwnerPasswordAuthenticationToken>resourceOwnerPasswordAuthentication - 认证前的 authenticationCopyright © 2023. All rights reserved.