@Introspected public class ClientCredentialsGrant extends java.lang.Object implements SecureGrant, AsMap
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_GRANT_TYPE |
static java.lang.String |
KEY_SCOPES |
KEY_CLIENT_ID, KEY_CLIENT_SECRET
Constructor and Description |
---|
ClientCredentialsGrant()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClientId() |
java.lang.String |
getClientSecret() |
java.lang.String |
getGrantType() |
java.lang.String |
getScope() |
void |
setClientId(java.lang.String clientId)
Sets the client id in the grant.
|
void |
setClientSecret(java.lang.String clientSecret)
Sets the client secret in the grant.
|
void |
setGrantType(java.lang.String grantType) |
void |
setScope(java.lang.String scope) |
java.util.Map<java.lang.String,java.lang.String> |
toMap() |
public static final java.lang.String KEY_GRANT_TYPE
public static final java.lang.String KEY_SCOPES
@NonNull public java.lang.String getGrantType()
public void setGrantType(@NonNull java.lang.String grantType)
grantType
- Grant type@Nullable public java.lang.String getScope()
public void setScope(@Nullable java.lang.String scope)
scope
- Requested scope values for the access token.@NonNull public java.lang.String getClientId()
public void setClientId(@NonNull java.lang.String clientId)
SecureGrant
setClientId
in interface SecureGrant
clientId
- Application's Client identifier.public void setClientSecret(java.lang.String clientSecret)
SecureGrant
setClientSecret
in interface SecureGrant
clientSecret
- Application's Client clientSecret.public java.lang.String getClientSecret()