类 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

      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 an OAuth2ClientCredentialsAuthenticationToken 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

      public Object getPrincipal()
    • getCredentials

      public Object getCredentials()
    • getScopes

      public Set<String> getScopes()
      Returns the requested scope(s).
      返回:
      the requested scope(s), or an empty Set if not available
    • getAdditionalParameters

      public Map<String,Object> getAdditionalParameters()
      Returns the additional parameters.
      返回:
      the additional parameters