Package com.dropbox.core
Class DbxAuthInfo
- java.lang.Object
- 
- com.dropbox.core.DbxAuthInfo
 
- 
 public final class DbxAuthInfo extends java.lang.ObjectUsed by the example code to remember auth information.
- 
- 
Field SummaryFields Modifier and Type Field Description static JsonReader<DbxAuthInfo>Readerstatic JsonWriter<DbxAuthInfo>Writer
 - 
Constructor SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAccessToken()Returns the OAuth access token to use for authorization with Dropbox servers.java.lang.LonggetExpiresAt()Return the millisecond when accessToken is going to expire.DbxHostgetHost()Returns Dropbox host configuration used to map requests to the appropriate Dropbox servers.java.lang.StringgetRefreshToken()Return the refresh token which can be used to obtain new access token.
 
- 
- 
- 
Field Detail- 
Readerpublic static final JsonReader<DbxAuthInfo> Reader 
 - 
Writerpublic static final JsonWriter<DbxAuthInfo> Writer 
 
- 
 - 
Constructor Detail- 
DbxAuthInfopublic DbxAuthInfo(java.lang.String accessToken, DbxHost host)Creates a new instance with the given parameters.- Parameters:
- accessToken- OAuth access token for authorization with Dropbox servers
- host- Dropbox host configuration used to select Dropbox servers
 
 - 
DbxAuthInfopublic DbxAuthInfo(java.lang.String accessToken, java.lang.Long expiresAt, java.lang.String refreshToken, DbxHost host)Creates a new instance with the given parameters.- Parameters:
- accessToken- OAuth access token for authorization with Dropbox servers
- expiresAt- When accessToken is going to expire in millisecond
- refreshToken- Refresh token which can bu used to obtain new accessToken
- host- Dropbox host configuration used to select Dropbox servers
 
 
- 
 - 
Method Detail- 
getAccessTokenpublic java.lang.String getAccessToken() Returns the OAuth access token to use for authorization with Dropbox servers.- Returns:
- OAuth access token
 
 - 
getExpiresAtpublic java.lang.Long getExpiresAt() Return the millisecond when accessToken is going to expire.- Returns:
- ExpiresAt in millisecond.
 
 - 
getRefreshTokenpublic java.lang.String getRefreshToken() Return the refresh token which can be used to obtain new access token.- Returns:
- Refresh Token.
 
 - 
getHostpublic DbxHost getHost() Returns Dropbox host configuration used to map requests to the appropriate Dropbox servers.- Returns:
- Dropbox host configuration
 
 
- 
 
-