@Introspected public class PasswordGrant extends AbstractClientSecureGrant implements SecureGrant, AsMap
clientId, clientSecret
KEY_CLIENT_ID, KEY_CLIENT_SECRET
Constructor and Description |
---|
PasswordGrant(AuthenticationRequest authenticationRequest,
OauthClientConfiguration clientConfiguration) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGrantType() |
java.lang.String |
getPassword() |
java.lang.String |
getScope() |
java.lang.String |
getUsername() |
void |
setGrantType(java.lang.String grantType) |
void |
setPassword(java.lang.String password) |
void |
setScope(java.lang.String scope) |
void |
setUsername(java.lang.String username) |
java.util.Map<java.lang.String,java.lang.String> |
toMap() |
getClientId, getClientSecret, setClientId, setClientSecret
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setClientId, setClientSecret
public PasswordGrant(AuthenticationRequest authenticationRequest, OauthClientConfiguration clientConfiguration)
authenticationRequest
- The authentication requestclientConfiguration
- The client configuration@NonNull public java.lang.String getGrantType()
getGrantType
in class AbstractClientSecureGrant
public void setGrantType(@NonNull java.lang.String grantType)
setGrantType
in class AbstractClientSecureGrant
grantType
- OAuth 2.0 Grant Type.@NonNull public java.lang.String getUsername()
public void setUsername(@NonNull java.lang.String username)
username
- An username@NonNull public java.lang.String getPassword()
public void setPassword(@NonNull java.lang.String password)
password
- An password@Nullable public java.lang.String getScope()
public void setScope(@NonNull java.lang.String scope)
scope
- Requested scopes separed by spaces@NonNull public java.util.Map<java.lang.String,java.lang.String> toMap()
toMap
in interface AsMap
toMap
in class AbstractClientSecureGrant