Class ShadowGoogleAuthUtil

    • Constructor Detail

      • ShadowGoogleAuthUtil

        public ShadowGoogleAuthUtil()
    • Method Detail

      • reset

        @Resetter
        public static void reset()
      • clearToken

        @Implementation
        public static void clearToken​(Context context,
                                      String token)
                               throws com.google.android.gms.auth.GooglePlayServicesAvailabilityException,
                                      com.google.android.gms.auth.GoogleAuthException,
                                      IOException
        Throws:
        com.google.android.gms.auth.GooglePlayServicesAvailabilityException
        com.google.android.gms.auth.GoogleAuthException
        IOException
      • getAccountChangeEvents

        @Implementation
        public static List<com.google.android.gms.auth.AccountChangeEvent> getAccountChangeEvents​(Context context,
                                                                                                  int eventIndex,
                                                                                                  String accountName)
                                                                                           throws com.google.android.gms.auth.GoogleAuthException,
                                                                                                  IOException
        Throws:
        com.google.android.gms.auth.GoogleAuthException
        IOException
      • getToken

        @Implementation
        public static String getToken​(Context context,
                                      Account account,
                                      String scope)
                               throws IOException,
                                      com.google.android.gms.auth.UserRecoverableAuthException,
                                      com.google.android.gms.auth.GoogleAuthException
        Throws:
        IOException
        com.google.android.gms.auth.UserRecoverableAuthException
        com.google.android.gms.auth.GoogleAuthException
      • getToken

        @Implementation
        public static String getToken​(Context context,
                                      Account account,
                                      String scope,
                                      Bundle extras)
                               throws IOException,
                                      com.google.android.gms.auth.UserRecoverableAuthException,
                                      com.google.android.gms.auth.GoogleAuthException
        Throws:
        IOException
        com.google.android.gms.auth.UserRecoverableAuthException
        com.google.android.gms.auth.GoogleAuthException
      • getToken

        @Implementation
        public static String getToken​(Context context,
                                      String accountName,
                                      String scope)
                               throws IOException,
                                      com.google.android.gms.auth.UserRecoverableAuthException,
                                      com.google.android.gms.auth.GoogleAuthException
        Throws:
        IOException
        com.google.android.gms.auth.UserRecoverableAuthException
        com.google.android.gms.auth.GoogleAuthException
      • getToken

        @Implementation
        public static String getToken​(Context context,
                                      String accountName,
                                      String scope,
                                      Bundle extras)
                               throws IOException,
                                      com.google.android.gms.auth.UserRecoverableAuthException,
                                      com.google.android.gms.auth.GoogleAuthException
        Throws:
        IOException
        com.google.android.gms.auth.UserRecoverableAuthException
        com.google.android.gms.auth.GoogleAuthException
      • getTokenWithNotification

        @Implementation
        public static String getTokenWithNotification​(Context context,
                                                      Account account,
                                                      String scope,
                                                      Bundle extras)
                                               throws IOException,
                                                      com.google.android.gms.auth.UserRecoverableNotifiedException,
                                                      com.google.android.gms.auth.GoogleAuthException
        Throws:
        IOException
        com.google.android.gms.auth.UserRecoverableNotifiedException
        com.google.android.gms.auth.GoogleAuthException
      • getTokenWithNotification

        @Implementation
        public static 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
        Throws:
        IOException
        com.google.android.gms.auth.UserRecoverableNotifiedException
        com.google.android.gms.auth.GoogleAuthException
      • getTokenWithNotification

        @Implementation
        public static 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
        Throws:
        IOException
        com.google.android.gms.auth.UserRecoverableNotifiedException
        com.google.android.gms.auth.GoogleAuthException
      • getTokenWithNotification

        @Implementation
        public static 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
        Throws:
        IOException
        com.google.android.gms.auth.UserRecoverableNotifiedException
        com.google.android.gms.auth.GoogleAuthException
      • getTokenWithNotification

        @Implementation
        public static String getTokenWithNotification​(Context context,
                                                      String accountName,
                                                      String scope,
                                                      Bundle extras)
                                               throws IOException,
                                                      com.google.android.gms.auth.UserRecoverableNotifiedException,
                                                      com.google.android.gms.auth.GoogleAuthException
        Throws:
        IOException
        com.google.android.gms.auth.UserRecoverableNotifiedException
        com.google.android.gms.auth.GoogleAuthException
      • getTokenWithNotification

        @Implementation
        public static 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
        Throws:
        IOException
        com.google.android.gms.auth.UserRecoverableNotifiedException
        com.google.android.gms.auth.GoogleAuthException