Class OAuth2ResourceOwnerPasswordCredentialsAuthenticationToken

java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken
io.jmix.authserver.authentication.OAuth2ResourceOwnerPasswordCredentialsAuthenticationToken
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

public class OAuth2ResourceOwnerPasswordCredentialsAuthenticationToken extends org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken
An Authentication implementation used for the OAuth 2.0 Resource Owner Password Credentials Grant.
See Also:
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    OAuth2ResourceOwnerPasswordCredentialsAuthenticationToken(String username, String password, org.springframework.security.core.Authentication clientPrincipal, Set<String> scopes, Map<String,Object> additionalParameters)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the resource owner password.
    Returns the requested scope(s).
    Returns the resource owner username.

    Methods inherited from class org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken

    getAdditionalParameters, getCredentials, getGrantType, getPrincipal

    Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

    equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.security.Principal

    implies
  • Constructor Details

    • OAuth2ResourceOwnerPasswordCredentialsAuthenticationToken

      protected OAuth2ResourceOwnerPasswordCredentialsAuthenticationToken(String username, String password, org.springframework.security.core.Authentication clientPrincipal, @Nullable Set<String> scopes, @Nullable Map<String,Object> additionalParameters)
  • Method Details

    • getUsername

      public String getUsername()
      Returns the resource owner username.
    • getPassword

      public String getPassword()
      Returns the resource owner password.
    • getScopes

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