Class DbxRefreshResult

java.lang.Object
com.dropbox.core.oauth.DbxRefreshResult

public class DbxRefreshResult extends Object
This is the return value of DbxCredential.refresh(DbxRequestConfig). It contains new access token and expiration time.
  • Field Details

  • Constructor Details

    • DbxRefreshResult

      public DbxRefreshResult(String accessToken, long expiresIn)
      Parameters:
      accessToken - OAuth access token.
      expiresIn - Duration time of accessToken in second. was passed
    • DbxRefreshResult

      public DbxRefreshResult(String accessToken, long expiresIn, String scope)
      Parameters:
      accessToken - OAuth access token.
      expiresIn - Duration time of accessToken in second. was passed
  • Method Details

    • getAccessToken

      public String getAccessToken()
      Returns an access token that can be used to make Dropbox API calls. Pass this in to the DbxClientV2 constructor.
      Returns:
      OAuth access token used for authorization with Dropbox servers
    • getExpiresAt

      public Long getExpiresAt()
      Returns the time when DbxAuthFinish.accessToken expires in millisecond. If null then it won't expire. Pass this in to the DbxClientV2 constructor.
      Returns:
      OAuth access token used for authorization with Dropbox servers
    • getScope

      public 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.