Interface AuthTokenProvider


public interface AuthTokenProvider
Supplies authentication tokens generated outside the SDK.

refreshAuthToken() is called from SDK threads. Calling back into the SDK from it is not supported. Calls for one client never overlap, but a provider may be shared by several clients. A call left running by a failed build() can overlap the next call, so implementations must handle concurrent calls.

If the call made by build() fails or takes longer than 30 seconds, build() fails. A call that times out is not interrupted and keeps running in the background. Later failures are retried while the client keeps using its current token. The client is invalidated if Snowflake rejects that token and no replacement arrives in time.

After a 401 or 403, return a different token. A refresh that returns the rejected token, or the current token without a later expiry, is retried with backoff.

  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Method Details