Package com.dropbox.core
Class DbxOAuth1Upgrader
java.lang.Object
com.dropbox.core.DbxOAuth1Upgrader
Lets you convert OAuth 1 access tokens to OAuth 2 access tokens. First call
createOAuth2AccessToken(com.dropbox.core.DbxOAuth1AccessToken) to get an OAuth 2 access token. If that succeeds, call disableOAuth1AccessToken(com.dropbox.core.DbxOAuth1AccessToken) to disable the OAuth 1 access token.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGiven an existing active OAuth 1 access token, make a Dropbox API call to get a new OAuth 2 access token that represents the same user and app.voidTell the Dropbox API server to disable an OAuth 1 access token.
-
Field Details
-
ResponseReader
For JSON parsing.
-
-
Constructor Details
-
DbxOAuth1Upgrader
- Parameters:
appInfo- Your application's Dropbox API information (the app key and secret).
-
-
Method Details
-
createOAuth2AccessToken
Given an existing active OAuth 1 access token, make a Dropbox API call to get a new OAuth 2 access token that represents the same user and app.- Throws:
DbxException
-
disableOAuth1AccessToken
Tell the Dropbox API server to disable an OAuth 1 access token.- Throws:
DbxException
-