public static interface OAuth2Credentials.CredentialsChangedListenerListener 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.
Methods
onChanged(OAuth2Credentials credentials)
public abstract void onChanged(OAuth2Credentials credentials)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.
| Parameter | |
|---|---|
| Name | Description |
credentials |
OAuth2CredentialsThe updated credentials instance |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
My be thrown by listeners if saving credentials fails. |