Package org.robolectric.shadows.gms
Class ShadowGoogleAuthUtil.GoogleAuthUtilImpl
- java.lang.Object
-
- org.robolectric.shadows.gms.ShadowGoogleAuthUtil.GoogleAuthUtilImpl
-
- Enclosing class:
- ShadowGoogleAuthUtil
public static class ShadowGoogleAuthUtil.GoogleAuthUtilImpl extends Object
Class containing methods with same signatures of the static methods ofGoogleAuthUtil
-
-
Constructor Summary
Constructors Constructor Description GoogleAuthUtilImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearToken(Context context, String token)List<com.google.android.gms.auth.AccountChangeEvent>getAccountChangeEvents(Context context, int eventIndex, String accountName)StringgetAccountId(Context ctx, String accountName)StringgetToken(Context context, Account account, String scope)StringgetToken(Context context, Account account, String scope, Bundle extras)StringgetToken(Context context, String accountName, String scope)StringgetToken(Context context, String accountName, String scope, Bundle extras)StringgetTokenWithNotification(Context context, Account account, String scope, Bundle extras)StringgetTokenWithNotification(Context context, Account account, String scope, Bundle extras, Intent callback)StringgetTokenWithNotification(Context context, Account account, String scope, Bundle extras, String authority, Bundle syncBundle)StringgetTokenWithNotification(Context context, String accountName, String scope, Bundle extras)StringgetTokenWithNotification(Context context, String accountName, String scope, Bundle extras, Intent callback)StringgetTokenWithNotification(Context context, String accountName, String scope, Bundle extras, String authority, Bundle syncBundle)voidinvalidateToken(Context context, String token)
-
-
-
Method Detail
-
clearToken
public 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.GooglePlayServicesAvailabilityExceptioncom.google.android.gms.auth.GoogleAuthExceptionIOException
-
getAccountChangeEvents
public 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.GoogleAuthExceptionIOException
-
getAccountId
public String getAccountId(Context ctx, String accountName) throws com.google.android.gms.auth.GoogleAuthException, IOException
- Throws:
com.google.android.gms.auth.GoogleAuthExceptionIOException
-
getToken
public String getToken(Context context, Account account, String scope) throws IOException, com.google.android.gms.auth.UserRecoverableAuthException, com.google.android.gms.auth.GoogleAuthException
- Throws:
IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthException
-
getToken
public 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:
IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthException
-
getToken
public String getToken(Context context, String accountName, String scope) throws IOException, com.google.android.gms.auth.UserRecoverableAuthException, com.google.android.gms.auth.GoogleAuthException
- Throws:
IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthException
-
getToken
public 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:
IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthException
-
getTokenWithNotification
public 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:
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException
-
getTokenWithNotification
public 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:
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException
-
getTokenWithNotification
public 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:
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException
-
getTokenWithNotification
public 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:
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException
-
getTokenWithNotification
public 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:
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException
-
getTokenWithNotification
public 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:
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException
-
-