Class DbxAppInfo
- java.lang.Object
- 
- com.dropbox.core.util.Dumpable
- 
- com.dropbox.core.DbxAppInfo
 
 
- 
 public class DbxAppInfo extends Dumpable Identifying information about your application.
- 
- 
Field SummaryFields Modifier and Type Field Description static JsonReader<java.lang.String>KeyReaderstatic JsonReader<DbxAppInfo>Readerstatic JsonReader<java.lang.String>SecretReader
 - 
Constructor SummaryConstructors Constructor Description DbxAppInfo(java.lang.String key)DbxAppInfo without secret.DbxAppInfo(java.lang.String key, java.lang.String secret)DbxAppInfo(java.lang.String key, java.lang.String secret, DbxHost host)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcheckKeyArg(java.lang.String key)static voidcheckSecretArg(java.lang.String secret)protected voiddumpFields(DumpWriter out)DbxHostgetHost()Returns the Dropbox host configuration.java.lang.StringgetKey()Returns the Dropbox app key (OAuth calls this the consumer key).static java.lang.StringgetKeyFormatError(java.lang.String key)If they key's format looks correct, returnnull.java.lang.StringgetSecret()Returns the Dropbox app secret (OAuth calls this the consumer secret).static java.lang.StringgetSecretFormatError(java.lang.String key)If they secret's format looks correct, returnnull.static java.lang.StringgetTokenPartError(java.lang.String s)booleanhasSecret()Return if this DbxAppInfo contains app secret.- 
Methods inherited from class com.dropbox.core.util.DumpablegetTypeName, toString, toString, toStringMultiline, toStringMultiline
 
- 
 
- 
- 
- 
Field Detail- 
Readerpublic static final JsonReader<DbxAppInfo> Reader 
 - 
KeyReaderpublic static final JsonReader<java.lang.String> KeyReader 
 - 
SecretReaderpublic static final JsonReader<java.lang.String> SecretReader 
 
- 
 - 
Constructor Detail- 
DbxAppInfopublic DbxAppInfo(java.lang.String key) DbxAppInfo without secret. Should only be used in PKCE flow.- Parameters:
- key- Dropbox app key (see- getKey())
- See Also:
- DbxPKCEWebAuth
 
 - 
DbxAppInfopublic DbxAppInfo(java.lang.String key, java.lang.String secret)- Parameters:
- key- Dropbox app key (see- getKey())
- secret- Dropbox app secret (see- getSecret())
 
 - 
DbxAppInfopublic DbxAppInfo(java.lang.String key, java.lang.String secret, DbxHost host)- Parameters:
- key- Dropbox app key (see- getKey())
- secret- Dropbox app secret (see- getSecret())
- host- Dropbox host configuration (see- getHost())
 
 
- 
 - 
Method Detail- 
getKeypublic java.lang.String getKey() Returns the Dropbox app key (OAuth calls this the consumer key). You can create an app key and secret on the Dropbox developer website.- Returns:
- Dropbox app key
 
 - 
getSecretpublic java.lang.String getSecret() Returns the Dropbox app secret (OAuth calls this the consumer secret). You can create an app key and secret on the Dropbox developer website.Make sure that this is kept a secret. Someone with your app secret can impesonate your application. People sometimes ask for help on the Dropbox API forums and copy/paste their code, which sometimes includes their app secret. Do not do that. - Returns:
- Dropbox app secret
 
 - 
getHostpublic DbxHost getHost() Returns the Dropbox host configuration.This is almost always DbxHost.DEFAULT. Typically this value will only be different for testing purposes.- Returns:
- Dropbox host configuration
 
 - 
hasSecretpublic boolean hasSecret() Return if this DbxAppInfo contains app secret. DbxAppInfo without secret should only be used inDbxPKCEWebAuth.- Returns:
- If this DbxAppInfo contains app secret.
 
 - 
dumpFieldsprotected void dumpFields(DumpWriter out) - Specified by:
- dumpFieldsin class- Dumpable
 
 - 
getKeyFormatErrorpublic static java.lang.String getKeyFormatError(java.lang.String key) If they key's format looks correct, returnnull. Otherwise return a string that describes what the problem is.NOTE: This function only performs some cursory checks on the format of the key. Even if it returns null(which means "no problem"), it doesn't mean that what you passed in is an actual valid Dropbox API app key.
 - 
getSecretFormatErrorpublic static java.lang.String getSecretFormatError(java.lang.String key) If they secret's format looks correct, returnnull. Otherwise return a string that describes what the problem is.NOTE: This function only performs some cursory checks on the format. Even if it returns null(which means "no problem"), it doesn't mean that what you passed in is an actual valid Dropbox API app key.
 - 
getTokenPartErrorpublic static java.lang.String getTokenPartError(java.lang.String s) 
 - 
checkKeyArgpublic static void checkKeyArg(java.lang.String key) 
 - 
checkSecretArgpublic static void checkSecretArg(java.lang.String secret) 
 
- 
 
-