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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onChanged(OAuth2Credentials credentials)
Notifies that the credentials have changed.
-
-
-
Method Detail
-
onChanged
void onChanged(OAuth2Credentials credentials) throws java.io.IOException
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:
java.io.IOException
- My be thrown by listeners if saving credentials fails.
-
-