Package com.dropbox.core
Class DbxAuthFinish
- java.lang.Object
- 
- com.dropbox.core.DbxAuthFinish
 
- 
 public final class DbxAuthFinish extends java.lang.ObjectWhen you successfully complete the authorization process, the Dropbox server returns this information to you.
- 
- 
Field SummaryFields Modifier and Type Field Description static JsonReader<java.lang.String>AccessTokenReaderstatic JsonReader<java.lang.String>BearerTokenTypeReaderstatic JsonReader<DbxAuthFinish>ReaderFor JSON parsing.
 - 
Constructor SummaryConstructors Constructor Description DbxAuthFinish(java.lang.String accessToken, java.lang.Long expiresIn, java.lang.String refreshToken, java.lang.String userId, java.lang.String teamId, java.lang.String accountId, java.lang.String urlState)DbxAuthFinish(java.lang.String accessToken, java.lang.Long expiresIn, java.lang.String refreshToken, java.lang.String userId, java.lang.String teamId, java.lang.String accountId, java.lang.String urlState, java.lang.String scope)DbxAuthFinish(java.lang.String accessToken, java.lang.String userId, java.lang.String accountId, java.lang.String teamId, java.lang.String urlState)Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAccessToken()Returns an access token that can be used to make Dropbox API calls.java.lang.StringgetAccountId()Returns the Dropbox account ID of the user who just approved your app for access to their Dropbox account.java.lang.LonggetExpiresAt()Returns the time whenaccessTokenexpires in millisecond.java.lang.StringgetRefreshToken()Returns an refresh token which can be used to obtain newaccessToken.java.lang.StringgetScope()Return the scopes of current OAuth flow.java.lang.StringgetTeamId()Returns the Dropbox team ID of the team's user who just approved your app for access to their Dropbox account.java.lang.StringgetUrlState()Returns the state data you passed in toDbxWebAuth.start(java.lang.String).java.lang.StringgetUserId()Returns the Dropbox user ID of the user who just approved your app for access to their Dropbox account.
 
- 
- 
- 
Field Detail- 
Readerpublic static final JsonReader<DbxAuthFinish> Reader For JSON parsing.
 - 
BearerTokenTypeReaderpublic static final JsonReader<java.lang.String> BearerTokenTypeReader 
 - 
AccessTokenReaderpublic static final JsonReader<java.lang.String> AccessTokenReader 
 
- 
 - 
Constructor Detail- 
DbxAuthFinish@Deprecated public DbxAuthFinish(java.lang.String accessToken, java.lang.String userId, java.lang.String accountId, java.lang.String teamId, java.lang.String urlState)Deprecated.- Parameters:
- accessToken- OAuth access token
- userId- Dropbox user ID of user that approved access to this app
- urlState- State data passed in to- DbxWebAuth.start(java.lang.String)or- nullif no state was passed
 
 - 
DbxAuthFinishpublic DbxAuthFinish(java.lang.String accessToken, java.lang.Long expiresIn, java.lang.String refreshToken, java.lang.String userId, java.lang.String teamId, java.lang.String accountId, java.lang.String urlState)- Parameters:
- accessToken- OAuth access token.
- expiresIn- Duration time of accessToken in second.
- refreshToken- A token used to obtain new accessToken.
- userId- Dropbox user ID of user that authorized this app.
- teamId- Dropbox team ID of team that authorized this app.
- accountId- Obfusticated user or team id. Keep it safe.
- urlState- State data passed in to- DbxWebAuth.start(java.lang.String)or- nullif no state was passed
 
 - 
DbxAuthFinishpublic DbxAuthFinish(java.lang.String accessToken, java.lang.Long expiresIn, java.lang.String refreshToken, java.lang.String userId, java.lang.String teamId, java.lang.String accountId, java.lang.String urlState, java.lang.String scope)- Parameters:
- accessToken- OAuth access token.
- expiresIn- Duration time of accessToken in second.
- refreshToken- A token used to obtain new accessToken.
- userId- Dropbox user ID of user that authorized this app.
- teamId- Dropbox team ID of team that authorized this app.
- accountId- Obfusticated user or team id. Keep it safe.
- urlState- State data passed in to- DbxWebAuth.start(java.lang.String)or- nullif no state was passed
- scope- A list of scope returned by Dropbox server. Each scope correspond to a group of API endpoints. To call one API endpoint you have to obtains the scope first otherwise you will get HTTP 401.
 
 
- 
 - 
Method Detail- 
getAccessTokenpublic java.lang.String getAccessToken() Returns an access token that can be used to make Dropbox API calls. Pass this in to theDbxClientV2constructor.- Returns:
- OAuth access token used for authorization with Dropbox servers
 
 - 
getExpiresAtpublic java.lang.Long getExpiresAt() Returns the time whenaccessTokenexpires in millisecond. If null then it won't expire. Pass this in to theDbxClientV2constructor.- Returns:
- OAuth access token used for authorization with Dropbox servers
 
 - 
getRefreshTokenpublic java.lang.String getRefreshToken() Returns an refresh token which can be used to obtain newaccessToken. Pass this in to theDbxClientV2constructor.- Returns:
- OAuth access token used for authorization with Dropbox servers
 
 - 
getUserIdpublic java.lang.String getUserId() Returns the Dropbox user ID of the user who just approved your app for access to their Dropbox account. We use user ID to identify user in API V1.- Returns:
- Dropbox user ID of user that approved your app for access to their account
 
 - 
getAccountIdpublic java.lang.String getAccountId() Returns the Dropbox account ID of the user who just approved your app for access to their Dropbox account. We use account ID to identify user in API V2.- Returns:
- Dropbox account ID of user that approved your app for access to their account
 
 - 
getTeamIdpublic java.lang.String getTeamId() Returns the Dropbox team ID of the team's user who just approved your app for access to their Dropbox account. We use team ID to identify team in API V2.- Returns:
- Dropbox team ID of team's that approved your app for access to their account
 
 - 
getScopepublic java.lang.String getScope() Return the scopes of current OAuth flow. Each scope correspond to a group of API endpoints. To call one API endpoint you have to obtains the scope first otherwise you will get HTTP 401.
 - 
getUrlStatepublic java.lang.String getUrlState() Returns the state data you passed in toDbxWebAuth.start(java.lang.String). If you didn't pass anything in, or you usedDbxWebAuthNoRedirect, this will benull.- Returns:
- state data passed into DbxWebAuth.start(java.lang.String), ornullif no state was passed
 
 
- 
 
-