Package com.google.auth.oauth2
Interface OAuth2Credentials.CredentialsChangedListener
- All Known Implementing Classes:
UserAuthorizer.UserCredentialsListener
- Enclosing class:
OAuth2Credentials
public static interface OAuth2Credentials.CredentialsChangedListener
Listener for changes to credentials.
This is called when token content changes, such as when the access token is refreshed. This is typically used by code caching the access token.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onChanged
(OAuth2Credentials credentials) Notifies that the credentials have changed.
-
Method Details
-
onChanged
Notifies that the credentials have changed.This is called when token content changes, such as when the access token is refreshed. This is typically used by code caching the access token.
- Parameters:
credentials
- The updated credentials instance- Throws:
IOException
- My be thrown by listeners if saving credentials fails.
-