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 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.