TokenCredentialManager

constructor(client: OAuth2Client, storage: TokenStorage, defaultIdStore: DefaultCredentialIdStore, onStorageError: Predicate<Exception>? = null)

Parameters

client

The OAuth2Client used for token operations.

storage

The TokenStorage for persisting tokens.

defaultIdStore

Store for the default credential ID.

onStorageError

Optional predicate invoked when a storage operation throws. Return true to retry the failed operation once; return false (or omit) to rethrow. Example: e -> e instanceof java.sql.SQLException