类 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

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