Interface OAuth2Credentials.CredentialsChangedListener (1.3.0)

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.

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
NameDescription
credentialsOAuth2Credentials

The updated credentials instance

Exceptions
TypeDescription
IOException

My be thrown by listeners if saving credentials fails.