类 OAuth2ResourceOwnerPasswordAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
xyz.raylab.authorizationserver.oauth2.authentication.password.OAuth2ResourceOwnerPasswordAuthenticationToken
- 所有已实现的接口:
Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class OAuth2ResourceOwnerPasswordAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
- 另请参阅:
-
构造器概要
构造器构造器说明OAuth2ResourceOwnerPasswordAuthenticationToken(org.springframework.security.oauth2.core.AuthorizationGrantType authorizationGrantType, org.springframework.security.core.Authentication clientPrincipal, Set<String> scopes, Map<String, Object> additionalParameters) Constructs anOAuth2ClientCredentialsAuthenticationTokenusing the provided parameters. -
方法概要
修饰符和类型方法说明Returns the additional parameters.org.springframework.security.oauth2.core.AuthorizationGrantTypeReturns the authorization grant type.Returns the requested scope(s).从类继承的方法 org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
-
构造器详细资料
-
OAuth2ResourceOwnerPasswordAuthenticationToken
public OAuth2ResourceOwnerPasswordAuthenticationToken(org.springframework.security.oauth2.core.AuthorizationGrantType authorizationGrantType, org.springframework.security.core.Authentication clientPrincipal, @Nullable Set<String> scopes, @Nullable Map<String, Object> additionalParameters) Constructs anOAuth2ClientCredentialsAuthenticationTokenusing 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
Returns the requested scope(s).- 返回:
- the requested scope(s), or an empty
Setif not available
-
getAdditionalParameters
Returns the additional parameters.- 返回:
- the additional parameters
-