public final class DbxAuthInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static JsonReader<DbxAuthInfo> |
Reader |
static JsonWriter<DbxAuthInfo> |
Writer |
| Constructor and Description |
|---|
DbxAuthInfo(java.lang.String accessToken,
DbxHost host)
Creates a new instance with the given parameters.
|
DbxAuthInfo(java.lang.String accessToken,
java.lang.Long expiresAt,
java.lang.String refreshToken,
DbxHost host)
Creates a new instance with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAccessToken()
Returns the OAuth access token to use for authorization with Dropbox servers.
|
java.lang.Long |
getExpiresAt()
Return the millisecond when accessToken is going to expire.
|
DbxHost |
getHost()
Returns Dropbox host configuration used to map requests to the appropriate Dropbox servers.
|
java.lang.String |
getRefreshToken()
Return the refresh token which can be used to obtain new access token.
|
public static final JsonReader<DbxAuthInfo> Reader
public static final JsonWriter<DbxAuthInfo> Writer
public DbxAuthInfo(java.lang.String accessToken,
DbxHost host)
accessToken - OAuth access token for authorization with Dropbox servershost - Dropbox host configuration used to select Dropbox serverspublic DbxAuthInfo(java.lang.String accessToken,
java.lang.Long expiresAt,
java.lang.String refreshToken,
DbxHost host)
accessToken - OAuth access token for authorization with Dropbox serversexpiresAt - When accessToken is going to expire in millisecondrefreshToken - Refresh token which can bu used to obtain new accessTokenhost - Dropbox host configuration used to select Dropbox serverspublic java.lang.String getAccessToken()
public java.lang.Long getExpiresAt()
public java.lang.String getRefreshToken()
public DbxHost getHost()