Class DbxAuthInfo

java.lang.Object
com.dropbox.core.DbxAuthInfo

public final class DbxAuthInfo extends Object
Used by the example code to remember auth information.
  • Field Details

  • Constructor Details

    • DbxAuthInfo

      public DbxAuthInfo(String accessToken, DbxHost host)
      Creates a new instance with the given parameters.
      Parameters:
      accessToken - OAuth access token for authorization with Dropbox servers
      host - Dropbox host configuration used to select Dropbox servers
    • DbxAuthInfo

      public DbxAuthInfo(String accessToken, Long expiresAt, String refreshToken, DbxHost host)
      Creates a new instance with the given parameters.
      Parameters:
      accessToken - OAuth access token for authorization with Dropbox servers
      expiresAt - When accessToken is going to expire in millisecond
      refreshToken - Refresh token which can bu used to obtain new accessToken
      host - Dropbox host configuration used to select Dropbox servers
  • Method Details

    • getAccessToken

      public String getAccessToken()
      Returns the OAuth access token to use for authorization with Dropbox servers.
      Returns:
      OAuth access token
    • getExpiresAt

      public Long getExpiresAt()
      Return the millisecond when accessToken is going to expire.
      Returns:
      ExpiresAt in millisecond.
    • getRefreshToken

      public String getRefreshToken()
      Return the refresh token which can be used to obtain new access token.
      Returns:
      Refresh Token.
    • getHost

      public DbxHost getHost()
      Returns Dropbox host configuration used to map requests to the appropriate Dropbox servers.
      Returns:
      Dropbox host configuration