Class RefreshingAccessTokenRetriever

java.lang.Object
io.confluent.security.auth.client.oauth.RefreshingAccessTokenRetriever
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.kafka.common.security.oauthbearer.internals.secured.OAuthBearerConfigurable, org.apache.kafka.common.security.oauthbearer.JwtRetriever

public class RefreshingAccessTokenRetriever extends Object implements org.apache.kafka.common.security.oauthbearer.JwtRetriever
Implementation of AccessTokenReceiver which refreshes the token after 80% of its lifetime is complete.
  • Constructor Details

    • RefreshingAccessTokenRetriever

      public RefreshingAccessTokenRetriever(org.apache.kafka.common.security.oauthbearer.JwtRetriever accessTokenRetriever)
  • Method Details

    • retrieve

      public String retrieve()
      Specified by:
      retrieve in interface org.apache.kafka.common.security.oauthbearer.JwtRetriever
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.apache.kafka.common.security.oauthbearer.internals.secured.OAuthBearerConfigurable