public class OAuth2Helper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREF_ACCOUNT_NAME |
static java.lang.String |
PREF_AUTH_TOKEN |
static java.lang.String |
TAG |
Constructor and Description |
---|
OAuth2Helper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getErrorMessage()
Clients can retrieve error messages statically.
|
java.lang.String |
getRefreshedAuthToken(android.app.Activity activity,
java.lang.String authTokenType)
Uses account manager to return a fresh authToken of authTokenType
|
static void |
resetAccountCredential(android.app.Activity activity)
Forget the account name and authToken.
|
public static final java.lang.String TAG
public static final java.lang.String PREF_AUTH_TOKEN
public static final java.lang.String PREF_ACCOUNT_NAME
public java.lang.String getRefreshedAuthToken(android.app.Activity activity, java.lang.String authTokenType)
activity
- authTokenType
- a service such as "fusiontables"public static void resetAccountCredential(android.app.Activity activity)
activity
- public static java.lang.String getErrorMessage()