Package io.trino.client.auth.external
Class HttpTokenPoller
java.lang.Object
io.trino.client.auth.external.HttpTokenPoller
- All Implemented Interfaces:
TokenPoller
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHttpTokenPoller(okhttp3.OkHttpClient client) HttpTokenPoller(okhttp3.OkHttpClient client, Consumer<okhttp3.OkHttpClient.Builder> refreshableClientConfig) -
Method Summary
Modifier and TypeMethodDescriptionpollForToken(URI tokenUri, Duration timeout) voidtokenReceived(URI tokenUri)
-
Constructor Details
-
HttpTokenPoller
public HttpTokenPoller(okhttp3.OkHttpClient client) -
HttpTokenPoller
public HttpTokenPoller(okhttp3.OkHttpClient client, Consumer<okhttp3.OkHttpClient.Builder> refreshableClientConfig)
-
-
Method Details
-
pollForToken
- Specified by:
pollForTokenin interfaceTokenPoller
-
tokenReceived
- Specified by:
tokenReceivedin interfaceTokenPoller
-