Package com.dropbox.core.oauth
Class DbxRefreshResult
java.lang.Object
com.dropbox.core.oauth.DbxRefreshResult
This is the return value of
DbxCredential.refresh(DbxRequestConfig). It contains new
access token and expiration time.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDbxRefreshResult(String accessToken, long expiresIn) DbxRefreshResult(String accessToken, long expiresIn, String scope) -
Method Summary
Modifier and TypeMethodDescriptionReturns an access token that can be used to make Dropbox API calls.Returns the time whenDbxAuthFinish.accessTokenexpires in millisecond.getScope()
-
Field Details
-
Reader
For JSON parsing.
-
-
Constructor Details
-
DbxRefreshResult
- Parameters:
accessToken- OAuth access token.expiresIn- Duration time of accessToken in second. was passed
-
DbxRefreshResult
- Parameters:
accessToken- OAuth access token.expiresIn- Duration time of accessToken in second. was passed
-
-
Method Details
-
getAccessToken
Returns an access token that can be used to make Dropbox API calls. Pass this in to theDbxClientV2constructor.- Returns:
- OAuth access token used for authorization with Dropbox servers
-
getExpiresAt
Returns the time whenDbxAuthFinish.accessTokenexpires in millisecond. If null then it won't expire. Pass this in to theDbxClientV2constructor.- Returns:
- OAuth access token used for authorization with Dropbox servers
-
getScope
- Returns:
- If you specified a subset of original scope in refresh call, this value shows what permissions the new short lived token has.
-