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 Type
    Method
    Description
    void
    Notifies that the credentials have changed.
  • Method Details

    • onChanged

      void onChanged(OAuth2Credentials credentials) throws 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:
      IOException - My be thrown by listeners if saving credentials fails.