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.AccessTokenRetriever, org.apache.kafka.common.security.oauthbearer.internals.secured.Initable

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

    Constructors
    Constructor
    Description
    RefreshingAccessTokenRetriever(org.apache.kafka.common.security.oauthbearer.internals.secured.AccessTokenRetriever accessTokenRetriever)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.kafka.common.security.oauthbearer.internals.secured.Initable

    init
  • Constructor Details

    • RefreshingAccessTokenRetriever

      public RefreshingAccessTokenRetriever(org.apache.kafka.common.security.oauthbearer.internals.secured.AccessTokenRetriever accessTokenRetriever)
  • Method Details

    • retrieve

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

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