public class OAuth2ResourceOwnerPasswordAuthenticationToken extends AbstractOAuth2ResourceOwnerAuthenticationToken
Authentication implementation used for the OAuth 2.0 Resource Owner Password
Grant.AbstractOAuth2ResourceOwnerAuthenticationToken,
OAuth2ResourceOwnerPasswordAuthenticationProvider,
序列化表格| 构造器和说明 |
|---|
OAuth2ResourceOwnerPasswordAuthenticationToken(String username,
org.springframework.security.core.Authentication clientPrincipal,
Map<String,Object> additionalParameters,
Set<String> scopes)
Constructs an
OAuth2ClientCredentialsAuthenticationToken using the provided
parameters. |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getName() |
getScopesgetAdditionalParameters, getCredentials, getGrantType, getPrincipalpublic OAuth2ResourceOwnerPasswordAuthenticationToken(String username, org.springframework.security.core.Authentication clientPrincipal, @Nullable Map<String,Object> additionalParameters, @Nullable Set<String> scopes)
OAuth2ClientCredentialsAuthenticationToken using the provided
parameters.clientPrincipal - the authenticated client principalCopyright © 2023. All rights reserved.