Package com.dropbox.core
Class DbxAuthInfo
java.lang.Object
com.dropbox.core.DbxAuthInfo
Used by the example code to remember auth information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonReader<DbxAuthInfo> static final JsonWriter<DbxAuthInfo> -
Constructor Summary
ConstructorsConstructorDescriptionDbxAuthInfo(String accessToken, DbxHost host) Creates a new instance with the given parameters.DbxAuthInfo(String accessToken, Long expiresAt, String refreshToken, DbxHost host) Creates a new instance with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the OAuth access token to use for authorization with Dropbox servers.Return the millisecond when accessToken is going to expire.getHost()Returns Dropbox host configuration used to map requests to the appropriate Dropbox servers.Return the refresh token which can be used to obtain new access token.
-
Field Details
-
Reader
-
Writer
-
-
Constructor Details
-
DbxAuthInfo
Creates a new instance with the given parameters.- Parameters:
accessToken- OAuth access token for authorization with Dropbox servershost- Dropbox host configuration used to select Dropbox servers
-
DbxAuthInfo
Creates a new instance with the given parameters.- Parameters:
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 servers
-
-
Method Details
-
getAccessToken
Returns the OAuth access token to use for authorization with Dropbox servers.- Returns:
- OAuth access token
-
getExpiresAt
Return the millisecond when accessToken is going to expire.- Returns:
- ExpiresAt in millisecond.
-
getRefreshToken
Return the refresh token which can be used to obtain new access token.- Returns:
- Refresh Token.
-
getHost
Returns Dropbox host configuration used to map requests to the appropriate Dropbox servers.- Returns:
- Dropbox host configuration
-