public static class ShadowGoogleAuthUtil.GoogleAuthUtilImpl extends Object
Class containing methods with same signatures of the static methods of GoogleAuthUtil
| Constructor and Description |
|---|
GoogleAuthUtilImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearToken(Context context,
String token) |
List<com.google.android.gms.auth.AccountChangeEvent> |
getAccountChangeEvents(Context context,
int eventIndex,
String accountName) |
String |
getAccountId(Context ctx,
String accountName) |
String |
getToken(Context context,
Account account,
String scope) |
String |
getToken(Context context,
Account account,
String scope,
Bundle extras) |
String |
getToken(Context context,
String accountName,
String scope) |
String |
getToken(Context context,
String accountName,
String scope,
Bundle extras) |
String |
getTokenWithNotification(Context context,
Account account,
String scope,
Bundle extras) |
String |
getTokenWithNotification(Context context,
Account account,
String scope,
Bundle extras,
Intent callback) |
String |
getTokenWithNotification(Context context,
Account account,
String scope,
Bundle extras,
String authority,
Bundle syncBundle) |
String |
getTokenWithNotification(Context context,
String accountName,
String scope,
Bundle extras) |
String |
getTokenWithNotification(Context context,
String accountName,
String scope,
Bundle extras,
Intent callback) |
String |
getTokenWithNotification(Context context,
String accountName,
String scope,
Bundle extras,
String authority,
Bundle syncBundle) |
void |
invalidateToken(Context context,
String token) |
public void clearToken(Context context, String token) throws com.google.android.gms.auth.GooglePlayServicesAvailabilityException, com.google.android.gms.auth.GoogleAuthException, IOException
com.google.android.gms.auth.GooglePlayServicesAvailabilityExceptioncom.google.android.gms.auth.GoogleAuthExceptionIOExceptionpublic List<com.google.android.gms.auth.AccountChangeEvent> getAccountChangeEvents(Context context, int eventIndex, String accountName) throws com.google.android.gms.auth.GoogleAuthException, IOException
com.google.android.gms.auth.GoogleAuthExceptionIOExceptionpublic String getAccountId(Context ctx, String accountName) throws com.google.android.gms.auth.GoogleAuthException, IOException
com.google.android.gms.auth.GoogleAuthExceptionIOExceptionpublic String getToken(Context context, Account account, String scope) throws IOException, com.google.android.gms.auth.UserRecoverableAuthException, com.google.android.gms.auth.GoogleAuthException
IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthExceptionpublic String getToken(Context context, Account account, String scope, Bundle extras) throws IOException, com.google.android.gms.auth.UserRecoverableAuthException, com.google.android.gms.auth.GoogleAuthException
IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthExceptionpublic String getToken(Context context, String accountName, String scope) throws IOException, com.google.android.gms.auth.UserRecoverableAuthException, com.google.android.gms.auth.GoogleAuthException
IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthExceptionpublic String getToken(Context context, String accountName, String scope, Bundle extras) throws IOException, com.google.android.gms.auth.UserRecoverableAuthException, com.google.android.gms.auth.GoogleAuthException
IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthExceptionpublic String getTokenWithNotification(Context context, Account account, String scope, Bundle extras) throws IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthExceptionpublic String getTokenWithNotification(Context context, Account account, String scope, Bundle extras, Intent callback) throws IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthExceptionpublic String getTokenWithNotification(Context context, Account account, String scope, Bundle extras, String authority, Bundle syncBundle) throws IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthExceptionpublic String getTokenWithNotification(Context context, String accountName, String scope, Bundle extras) throws IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthExceptionpublic String getTokenWithNotification(Context context, String accountName, String scope, Bundle extras, Intent callback) throws IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthExceptionpublic String getTokenWithNotification(Context context, String accountName, String scope, Bundle extras, String authority, Bundle syncBundle) throws IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException