Interface OAuth2Credentials.CredentialsChangedListener (1.24.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
Name Description
credentials OAuth2Credentials

The updated credentials instance

Exceptions
Type Description
IOException

My be thrown by listeners if saving credentials fails.