public class TokenUpdateRequest extends Object implements Serializable
/auth/token/update API.
The API is used to update an existing access token.
accessTokenAn existing access token.
accessTokenExpiresAtA new date at which the access token will expire in milliseconds since the Unix epoch (1970-01-01). If the
accessTokenExpiresAtrequest parameter is not included in a request or its value is 0 (or negative), the expiration date of the access token is not changed.scopesA new set of scopes assigned to the access token. Scopes that are not supported by the service and those that the client application associated with the access token is not allowed to request are ignored on the server side. If the
scopesrequest parameter is not included in a request or its value isnull, the scopes of the access token are not changed.propertiesA new set of properties assigned to the access token. If the
propertiesrequest parameter is not included in a request or its value isnull, the properties of the access token are not changed.
TokenUpdateResponse,
Serialized Form| Constructor and Description |
|---|
TokenUpdateRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken()
Get the access token to update.
|
long |
getAccessTokenExpiresAt()
Get the new date at which the access token will expire.
|
Property[] |
getProperties()
Get a new set of properties assigned to the access token.
|
String[] |
getScopes()
Get the new set of scopes assigned to the access token.
|
TokenUpdateRequest |
setAccessToken(String accessToken)
Set an existing access token to update.
|
TokenUpdateRequest |
setAccessTokenExpiresAt(long expiresAt)
Set the new date at which the access token will expire.
|
TokenUpdateRequest |
setProperties(Property[] properties)
Set a new set of properties assigned to the access token.
|
TokenUpdateRequest |
setScopes(String[] scopes)
Set a new set of scopes assigned to the access token.
|
public String getAccessToken()
public TokenUpdateRequest setAccessToken(String accessToken)
accessToken - An existing access token to update.this object.public long getAccessTokenExpiresAt()
public TokenUpdateRequest setAccessTokenExpiresAt(long expiresAt)
If 0 or a negative value is given, the expiration date of the access token is not changed.
expiresAt - The new expiration date in milliseconds since the Unix epoch (1970-01-01).this object.public String[] getScopes()
public TokenUpdateRequest setScopes(String[] scopes)
If null is given, the scope set associated with the access token
is not changed.
scopes - A new set of scopes. null means that scopes are not changed.this object.public Property[] getProperties()
public TokenUpdateRequest setProperties(Property[] properties)
If null is given, the property set associated with the access token
is not changed.
properties - A new set of properties. null means that properties are not changed.this object.Copyright © 2017. All rights reserved.