public class EvernoteOAuthHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CALLBACK_SCHEME |
protected static Cat |
CAT |
static java.lang.String |
CHINA_PROFILE_NAME
Server matched name for BootstrapProfile that matches china.
|
protected BootstrapProfile |
mBootstrapProfile |
protected java.lang.String |
mConsumerKey |
protected java.lang.String |
mConsumerSecret |
protected java.util.Locale |
mLocale |
protected OAuthService |
mOAuthService |
protected Token |
mRequestToken |
protected EvernoteSession |
mSession |
protected boolean |
mSupportAppLinkedNotebooks |
protected static java.util.regex.Pattern |
NOTE_STORE_REGEX |
protected static java.util.regex.Pattern |
USER_ID_REGEX |
protected static java.util.regex.Pattern |
WEB_API_REGEX |
| Constructor and Description |
|---|
EvernoteOAuthHelper(EvernoteSession session,
java.lang.String consumerKey,
java.lang.String consumerSecret,
boolean supportAppLinkedNotebooks) |
EvernoteOAuthHelper(EvernoteSession session,
java.lang.String consumerKey,
java.lang.String consumerSecret,
boolean supportAppLinkedNotebooks,
java.util.Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createAuthorizationUrl(Token requestToken) |
protected static OAuthService |
createOAuthService(BootstrapProfile bootstrapProfile,
java.lang.String consumerKey,
java.lang.String consumerSecret) |
Token |
createRequestToken() |
java.util.List<BootstrapProfile> |
fetchBootstrapProfiles() |
boolean |
finishAuthorization(android.app.Activity activity,
int resultCode,
android.content.Intent data) |
BootstrapProfile |
getDefaultBootstrapProfile(java.util.List<BootstrapProfile> bootstrapProfiles) |
void |
initialize() |
void |
setBootstrapProfile(BootstrapProfile bootstrapProfile) |
android.content.Intent |
startAuthorization(android.app.Activity activity) |
public static final java.lang.String CHINA_PROFILE_NAME
protected static final java.lang.String CALLBACK_SCHEME
protected static final Cat CAT
protected static final java.util.regex.Pattern NOTE_STORE_REGEX
protected static final java.util.regex.Pattern WEB_API_REGEX
protected static final java.util.regex.Pattern USER_ID_REGEX
protected final EvernoteSession mSession
protected final java.lang.String mConsumerKey
protected final java.lang.String mConsumerSecret
protected final boolean mSupportAppLinkedNotebooks
protected final java.util.Locale mLocale
protected BootstrapProfile mBootstrapProfile
protected OAuthService mOAuthService
protected Token mRequestToken
public EvernoteOAuthHelper(EvernoteSession session, java.lang.String consumerKey, java.lang.String consumerSecret, boolean supportAppLinkedNotebooks)
public EvernoteOAuthHelper(EvernoteSession session, java.lang.String consumerKey, java.lang.String consumerSecret, boolean supportAppLinkedNotebooks, java.util.Locale locale)
public java.util.List<BootstrapProfile> fetchBootstrapProfiles()
throws java.lang.Exception
java.lang.Exceptionpublic BootstrapProfile getDefaultBootstrapProfile(java.util.List<BootstrapProfile> bootstrapProfiles)
public void setBootstrapProfile(BootstrapProfile bootstrapProfile)
public void initialize()
throws java.lang.Exception
java.lang.Exceptionpublic Token createRequestToken()
public java.lang.String createAuthorizationUrl(Token requestToken)
public android.content.Intent startAuthorization(android.app.Activity activity)
public boolean finishAuthorization(android.app.Activity activity,
int resultCode,
android.content.Intent data)
protected static OAuthService createOAuthService(BootstrapProfile bootstrapProfile,
java.lang.String consumerKey,
java.lang.String consumerSecret)