Package com.dropbox.core.oauth
Class DbxRefreshResult
- java.lang.Object
- 
- com.dropbox.core.oauth.DbxRefreshResult
 
- 
 public class DbxRefreshResult extends java.lang.ObjectThis is the return value ofDbxCredential.refresh(DbxRequestConfig). It contains new access token and expiration time.
- 
- 
Field SummaryFields Modifier and Type Field Description static JsonReader<DbxRefreshResult>ReaderFor JSON parsing.
 - 
Constructor SummaryConstructors Constructor Description DbxRefreshResult(java.lang.String accessToken, long expiresIn)DbxRefreshResult(java.lang.String accessToken, long expiresIn, java.lang.String scope)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAccessToken()Returns an access token that can be used to make Dropbox API calls.java.lang.LonggetExpiresAt()Returns the time whenDbxAuthFinish.accessTokenexpires in millisecond.java.lang.StringgetScope()
 
- 
- 
- 
Field Detail- 
Readerpublic static final JsonReader<DbxRefreshResult> Reader For JSON parsing.
 
- 
 - 
Constructor Detail- 
DbxRefreshResultpublic DbxRefreshResult(java.lang.String accessToken, long expiresIn)- Parameters:
- accessToken- OAuth access token.
- expiresIn- Duration time of accessToken in second. was passed
 
 - 
DbxRefreshResultpublic DbxRefreshResult(java.lang.String accessToken, long expiresIn, java.lang.String scope)- Parameters:
- accessToken- OAuth access token.
- expiresIn- Duration time of accessToken in second. was passed
 
 
- 
 - 
Method Detail- 
getAccessTokenpublic java.lang.String 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
 
 - 
getExpiresAtpublic java.lang.Long 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
 
 - 
getScopepublic java.lang.String getScope() - Returns:
- If you specified a subset of original scope in refresh call, this value shows what permissions the new short lived token has.
 
 
- 
 
-