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
ConstructorsConstructorDescriptionRefreshingAccessTokenRetriever(org.apache.kafka.common.security.oauthbearer.internals.secured.AccessTokenRetriever accessTokenRetriever) -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
- Specified by:
retrievein interfaceorg.apache.kafka.common.security.oauthbearer.internals.secured.AccessTokenRetriever
-
close
public void close()- Specified by:
closein interfaceorg.apache.kafka.common.security.oauthbearer.internals.secured.AccessTokenRetriever- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-