类 OAuth2PasswordAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
io.github.lishangbu.avalon.oauth2.authorizationserver.granter.OAuth2PasswordAuthenticationToken
- 所有已实现的接口:
Serializable
,Principal
,org.springframework.security.core.Authentication
,org.springframework.security.core.CredentialsContainer
public class OAuth2PasswordAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
- 另请参阅:
-
构造器概要
构造器构造器说明OAuth2PasswordAuthenticationToken
(org.springframework.security.oauth2.core.AuthorizationGrantType authorizationGrantType, org.springframework.security.core.Authentication clientPrincipal, Set<String> scopes, Map<String, Object> additionalParameters) Constructs anOAuth2ClientCredentialsAuthenticationToken
using the provided parameters. -
方法概要
修饰符和类型方法说明Returns the additional parameters.org.springframework.security.oauth2.core.AuthorizationGrantType
Returns the authorization grant type.Returns the requested scope(s).从类继承的方法 org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
-
构造器详细资料
-
OAuth2PasswordAuthenticationToken
public OAuth2PasswordAuthenticationToken(org.springframework.security.oauth2.core.AuthorizationGrantType authorizationGrantType, org.springframework.security.core.Authentication clientPrincipal, @Nullable Set<String> scopes, @Nullable Map<String, Object> additionalParameters) Constructs anOAuth2ClientCredentialsAuthenticationToken
using the provided parameters.- 参数:
clientPrincipal
- the authenticated client principal
-
-
方法详细资料
-
getGrantType
public org.springframework.security.oauth2.core.AuthorizationGrantType getGrantType()Returns the authorization grant type.- 返回:
- the authorization grant type
-
getPrincipal
-
getCredentials
-
getScopes
-
getAdditionalParameters
-