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.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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
-
Constructor Details
-
OAuth2ResourceOwnerPasswordCredentialsAuthenticationToken
-
-
Method Details
-
getUsername
Returns the resource owner username. -
getPassword
Returns the resource owner password. -
getScopes
Returns the requested scope(s).- Returns:
- the requested scope(s), or an empty
Set
if not available
-