com.google.android.gms.auth
Stay organized with collections
Save and categorize content based on your preferences.
Contains classes for authenticating Google accounts.
Classes
AccountChangeEvent
|
AccountChangeEvent instances are Parcelables that
contain data about an event for an account (e.g., the account was added, modified,
etc.). |
AccountChangeEventsRequest
|
Requests for
AccountChangeEvent s. |
AccountChangeEventsResponse
|
Response to a
AccountChangeEventsRequest . |
CookieUtil
|
Helper class to build the cookie String from the
given fields. |
GoogleAuthUtil
|
GoogleAuthUtil provides static
utility methods to acquire OAuth2 tokens for Google accounts; and also to invalidate
OAuth2 tokens. |
Exceptions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-09 UTC."],[[["\u003cp\u003eThe Google Authentication library for Android provides classes for authenticating Google accounts and handling related events.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGoogleAuthUtil\u003c/code\u003e offers methods to obtain and revoke OAuth2 tokens for Google accounts.\u003c/p\u003e\n"],["\u003cp\u003eSeveral exception classes like \u003ccode\u003eGoogleAuthException\u003c/code\u003e and \u003ccode\u003eUserRecoverableAuthException\u003c/code\u003e handle authentication errors, some of which can be resolved through user intervention.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAccountChangeEvent\u003c/code\u003e and related classes provide a mechanism to track changes to Google accounts on the device.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCookieUtil\u003c/code\u003e assists in building cookie strings from specified fields, although its usage may be limited.\u003c/p\u003e\n"]]],[],null,["# com.google.android.gms.auth\n\nContains classes for authenticating Google accounts.\n\n### Classes\n\n|-----------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| [AccountChangeEvent](/android/reference/com/google/android/gms/auth/AccountChangeEvent) | AccountChangeEvent instances are Parcelables that contain data about an event for an account (e.g., the account was added, modified, etc.). |\n| [AccountChangeEventsRequest](/android/reference/com/google/android/gms/auth/AccountChangeEventsRequest) | Requests for `AccountChangeEvent`s. |\n| [AccountChangeEventsResponse](/android/reference/com/google/android/gms/auth/AccountChangeEventsResponse) | Response to a `AccountChangeEventsRequest`. |\n| [CookieUtil](/android/reference/com/google/android/gms/auth/CookieUtil) | Helper class to build the cookie String from the given fields. |\n| [GoogleAuthUtil](/android/reference/com/google/android/gms/auth/GoogleAuthUtil) | `GoogleAuthUtil` provides static utility methods to acquire OAuth2 tokens for Google accounts; and also to invalidate OAuth2 tokens. |\n\n### Exceptions\n\n|-----------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GoogleAuthException](/android/reference/com/google/android/gms/auth/GoogleAuthException) | GoogleAuthExceptions signal Google authentication errors. |\n| [GooglePlayServicesAvailabilityException](/android/reference/com/google/android/gms/auth/GooglePlayServicesAvailabilityException) | GooglePlayServicesAvailabilityExceptions are special instances of [UserRecoverableAuthException](/android/reference/com/google/android/gms/auth/UserRecoverableAuthException)s which are thrown when the expected Google Play services app is not available for some reason. |\n| [UserRecoverableAuthException](/android/reference/com/google/android/gms/auth/UserRecoverableAuthException) | UserRecoverableAuthExceptions signal Google authentication errors that can be recovered with user action, such as a user login. |\n| [UserRecoverableNotifiedException](/android/reference/com/google/android/gms/auth/UserRecoverableNotifiedException) | UserRecoverableNotifiedException signals that there was a Google authentication error which can be recovered with user action and has been handled by publishing a notification for the user to act on. |"]]