public class AbstractOAuth2ResourceOwnerAuthenticationToken
extends org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken
Authentication implementation used for the OAuth 2.0 Resource Owner
Grant.OAuth2AuthorizationGrantAuthenticationToken,
OAuth2ResourceOwnerPasswordAuthenticationProvider,
序列化表格| 构造器和说明 |
|---|
AbstractOAuth2ResourceOwnerAuthenticationToken(org.springframework.security.oauth2.core.AuthorizationGrantType authorizationGrantType,
org.springframework.security.core.Authentication clientPrincipal,
Map<String,Object> additionalParameters,
Set<String> scopes)
Constructs an
OAuth2ClientCredentialsAuthenticationToken using the provided
parameters. |
| 限定符和类型 | 方法和说明 |
|---|---|
Set<String> |
getScopes()
Returns the requested scope(s).
|
getAdditionalParameters, getCredentials, getGrantType, getPrincipalpublic AbstractOAuth2ResourceOwnerAuthenticationToken(org.springframework.security.oauth2.core.AuthorizationGrantType authorizationGrantType,
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.