@Implements(value=com.google.android.gms.auth.GoogleAuthUtil.class) public class ShadowGoogleAuthUtil extends java.lang.Object
Calls to static method of GoogleAuthUtil will be redirected to the provided ShadowGoogleAuthUtil.GoogleAuthUtilImpl implementation. Use provideImpl(GoogleAuthUtilImpl) to set the implementation instance. By default, a ShadowGoogleAuthUtil.GoogleAuthUtilImpl is used in call redirection. Use mocks or subclassing ShadowGoogleAuthUtil.GoogleAuthUtilImpl to achieve desired behaviors.
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ShadowGoogleAuthUtil.GoogleAuthUtilImpl
Class containing methods with same signatures of the static methods of  
GoogleAuthUtil | 
| Constructor and Description | 
|---|
ShadowGoogleAuthUtil()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
clearToken(android.content.Context context,
          java.lang.String token)  | 
static java.util.List<com.google.android.gms.auth.AccountChangeEvent> | 
getAccountChangeEvents(android.content.Context context,
                      int eventIndex,
                      java.lang.String accountName)  | 
static java.lang.String | 
getAccountId(android.content.Context ctx,
            java.lang.String accountName)  | 
static ShadowGoogleAuthUtil.GoogleAuthUtilImpl | 
getImpl()  | 
static java.lang.String | 
getToken(android.content.Context context,
        android.accounts.Account account,
        java.lang.String scope)  | 
static java.lang.String | 
getToken(android.content.Context context,
        android.accounts.Account account,
        java.lang.String scope,
        android.os.Bundle extras)  | 
static java.lang.String | 
getToken(android.content.Context context,
        java.lang.String accountName,
        java.lang.String scope)  | 
static java.lang.String | 
getToken(android.content.Context context,
        java.lang.String accountName,
        java.lang.String scope,
        android.os.Bundle extras)  | 
static java.lang.String | 
getTokenWithNotification(android.content.Context context,
                        android.accounts.Account account,
                        java.lang.String scope,
                        android.os.Bundle extras)  | 
static java.lang.String | 
getTokenWithNotification(android.content.Context context,
                        android.accounts.Account account,
                        java.lang.String scope,
                        android.os.Bundle extras,
                        android.content.Intent callback)  | 
static java.lang.String | 
getTokenWithNotification(android.content.Context context,
                        android.accounts.Account account,
                        java.lang.String scope,
                        android.os.Bundle extras,
                        java.lang.String authority,
                        android.os.Bundle syncBundle)  | 
static java.lang.String | 
getTokenWithNotification(android.content.Context context,
                        java.lang.String accountName,
                        java.lang.String scope,
                        android.os.Bundle extras)  | 
static java.lang.String | 
getTokenWithNotification(android.content.Context context,
                        java.lang.String accountName,
                        java.lang.String scope,
                        android.os.Bundle extras,
                        android.content.Intent callback)  | 
static java.lang.String | 
getTokenWithNotification(android.content.Context context,
                        java.lang.String accountName,
                        java.lang.String scope,
                        android.os.Bundle extras,
                        java.lang.String authority,
                        android.os.Bundle syncBundle)  | 
static void | 
invalidateToken(android.content.Context context,
               java.lang.String token)  | 
static void | 
provideImpl(ShadowGoogleAuthUtil.GoogleAuthUtilImpl impl)  | 
static void | 
reset()  | 
public static ShadowGoogleAuthUtil.GoogleAuthUtilImpl getImpl()
public static void provideImpl(ShadowGoogleAuthUtil.GoogleAuthUtilImpl impl)
@Resetter public static void reset()
@Implementation public static void clearToken(android.content.Context context, java.lang.String token) throws com.google.android.gms.auth.GooglePlayServicesAvailabilityException, com.google.android.gms.auth.GoogleAuthException, java.io.IOException
com.google.android.gms.auth.GooglePlayServicesAvailabilityExceptioncom.google.android.gms.auth.GoogleAuthExceptionjava.io.IOException@Implementation public static java.util.List<com.google.android.gms.auth.AccountChangeEvent> getAccountChangeEvents(android.content.Context context, int eventIndex, java.lang.String accountName) throws com.google.android.gms.auth.GoogleAuthException, java.io.IOException
com.google.android.gms.auth.GoogleAuthExceptionjava.io.IOException@Implementation public static java.lang.String getAccountId(android.content.Context ctx, java.lang.String accountName) throws com.google.android.gms.auth.GoogleAuthException, java.io.IOException
com.google.android.gms.auth.GoogleAuthExceptionjava.io.IOException@Implementation public static java.lang.String getToken(android.content.Context context, android.accounts.Account account, java.lang.String scope) throws java.io.IOException, com.google.android.gms.auth.UserRecoverableAuthException, com.google.android.gms.auth.GoogleAuthException
java.io.IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthException@Implementation public static java.lang.String getToken(android.content.Context context, android.accounts.Account account, java.lang.String scope, android.os.Bundle extras) throws java.io.IOException, com.google.android.gms.auth.UserRecoverableAuthException, com.google.android.gms.auth.GoogleAuthException
java.io.IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthException@Implementation public static java.lang.String getToken(android.content.Context context, java.lang.String accountName, java.lang.String scope) throws java.io.IOException, com.google.android.gms.auth.UserRecoverableAuthException, com.google.android.gms.auth.GoogleAuthException
java.io.IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthException@Implementation public static java.lang.String getToken(android.content.Context context, java.lang.String accountName, java.lang.String scope, android.os.Bundle extras) throws java.io.IOException, com.google.android.gms.auth.UserRecoverableAuthException, com.google.android.gms.auth.GoogleAuthException
java.io.IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthException@Implementation public static java.lang.String getTokenWithNotification(android.content.Context context, android.accounts.Account account, java.lang.String scope, android.os.Bundle extras) throws java.io.IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException
java.io.IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException@Implementation public static java.lang.String getTokenWithNotification(android.content.Context context, android.accounts.Account account, java.lang.String scope, android.os.Bundle extras, android.content.Intent callback) throws java.io.IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException
java.io.IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException@Implementation public static java.lang.String getTokenWithNotification(android.content.Context context, android.accounts.Account account, java.lang.String scope, android.os.Bundle extras, java.lang.String authority, android.os.Bundle syncBundle) throws java.io.IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException
java.io.IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException@Implementation public static java.lang.String getTokenWithNotification(android.content.Context context, java.lang.String accountName, java.lang.String scope, android.os.Bundle extras, android.content.Intent callback) throws java.io.IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException
java.io.IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException@Implementation public static java.lang.String getTokenWithNotification(android.content.Context context, java.lang.String accountName, java.lang.String scope, android.os.Bundle extras) throws java.io.IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException
java.io.IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException@Implementation public static java.lang.String getTokenWithNotification(android.content.Context context, java.lang.String accountName, java.lang.String scope, android.os.Bundle extras, java.lang.String authority, android.os.Bundle syncBundle) throws java.io.IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException
java.io.IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException@Implementation public static void invalidateToken(android.content.Context context, java.lang.String token)