public class DbxRefreshResult
extends java.lang.Object
DbxCredential.refresh(DbxRequestConfig)
. It contains new
access token and expiration time.Modifier and Type | Field and Description |
---|---|
static JsonReader<DbxRefreshResult> |
Reader
For JSON parsing.
|
Constructor and Description |
---|
DbxRefreshResult(java.lang.String accessToken,
long expiresIn) |
DbxRefreshResult(java.lang.String accessToken,
long expiresIn,
java.lang.String scope) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessToken()
Returns an access token that can be used to make Dropbox API calls.
|
java.lang.Long |
getExpiresAt()
Returns the time when
DbxAuthFinish.accessToken expires in millisecond. |
java.lang.String |
getScope() |
public static final JsonReader<DbxRefreshResult> Reader
public DbxRefreshResult(java.lang.String accessToken, long expiresIn)
accessToken
- OAuth access token.expiresIn
- Duration time of accessToken in second.
was passedpublic DbxRefreshResult(java.lang.String accessToken, long expiresIn, java.lang.String scope)
accessToken
- OAuth access token.expiresIn
- Duration time of accessToken in second.
was passedpublic java.lang.String getAccessToken()
DbxClientV2
constructor.public java.lang.Long getExpiresAt()
DbxAuthFinish.accessToken
expires in millisecond. If null then
it won't expire. Pass this in to the DbxClientV2
constructor.public java.lang.String getScope()