OAuthCredentialsCache (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.grpc.io

Class OAuthCredentialsCache



  • public class OAuthCredentialsCache
    extends Object
    This class caches calls to OAuth2Credentials.refreshAccessToken(). It asynchronously refreshes the token when it becomes stale.
    Version:
    $Id: $Id
    Author:
    sduskis
    • Constructor Detail

      • OAuthCredentialsCache

        public OAuthCredentialsCache(ExecutorService scheduler,
                                     com.google.auth.oauth2.OAuth2Credentials credentials)
        Constructor for RefreshingOAuth2CredentialsInterceptor.
        Parameters:
        scheduler - a ExecutorService object.
        credentials - a OAuth2Credentials object.