Package com.dropbox.core.v2.auth
Class DbxAppAuthRequests
- java.lang.Object
-
- com.dropbox.core.v2.auth.DbxAppAuthRequests
-
public class DbxAppAuthRequests extends java.lang.Object
Routes in namespace "auth".
-
-
Constructor Summary
Constructors Constructor Description DbxAppAuthRequests(DbxRawClientV2 client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenFromOAuth1Result
tokenFromOauth1(java.lang.String oauth1Token, java.lang.String oauth1TokenSecret)
Creates an OAuth 2.0 access token from the supplied OAuth 1.0 access token.
-
-
-
Constructor Detail
-
DbxAppAuthRequests
public DbxAppAuthRequests(DbxRawClientV2 client)
-
-
Method Detail
-
tokenFromOauth1
public TokenFromOAuth1Result tokenFromOauth1(java.lang.String oauth1Token, java.lang.String oauth1TokenSecret) throws TokenFromOAuth1ErrorException, DbxException
Creates an OAuth 2.0 access token from the supplied OAuth 1.0 access token.- Parameters:
oauth1Token
- The supplied OAuth 1.0 access token. Must have length of at least 1 and not benull
.oauth1TokenSecret
- The token secret associated with the supplied access token. Must have length of at least 1 and not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.TokenFromOAuth1ErrorException
DbxException
-
-