public class ClientCredentialsGrantRequest extends AccessTokenRequest
AccessTokenRequest for grant_type=client_credentials.| Modifier and Type | Field and Description |
|---|---|
static String |
CLIENT_CREDENTIALS_GRANT_TYPE |
EXPIRES_IN_FORM, GRANT_TYPE_FORM, GRANT_TYPE_JSON, SCOPE_FORM, SCOPE_JSONX_CORRELATION_ID| Constructor and Description |
|---|
ClientCredentialsGrantRequest() |
| Modifier and Type | Method and Description |
|---|---|
ClientCredentialsGrantRequest |
setExpiresIn(Long expiresIn)
Optionally set the lifetime in seconds of the access token returned by
this request.
|
addFormParam, getAdditionalHeaders, getCorrelationId, getExpiresIn, getGrantType, getScope, setAdditionalHeaders, setCorrelationId, setScope, toFormParams, toJsonpublic static final String CLIENT_CREDENTIALS_GRANT_TYPE
public ClientCredentialsGrantRequest setExpiresIn(Long expiresIn)
While the OAuth2.0 RFC doesn't list this as a request parameter, we add this so the client can request Access Token expirations within the allowable range. See also the response parameter expires_in.
This property is a HERE extension to RFC6749 providing additional data.
setExpiresIn in class AccessTokenRequestexpiresIn - desired lifetime in seconds of the access tokenAccessTokenResponse.getExpiresIn(),
AccessTokenRequest.getExpiresIn()Copyright © 2023 HERE Europe B.V. All Rights Reserved.