Package io.trino.client.auth.external
Class ExternalAuthenticator
java.lang.Object
io.trino.client.auth.external.ExternalAuthenticator
- All Implemented Interfaces:
okhttp3.Authenticator,okhttp3.Interceptor
public class ExternalAuthenticator
extends Object
implements okhttp3.Authenticator, okhttp3.Interceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface okhttp3.Authenticator
okhttp3.Authenticator.CompanionNested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
FieldsFields inherited from interface okhttp3.Authenticator
Companion, JAVA_NET_AUTHENTICATOR, NONEFields inherited from interface okhttp3.Interceptor
Companion -
Constructor Summary
ConstructorsConstructorDescriptionExternalAuthenticator(RedirectHandler redirect, TokenPoller tokenPoller, KnownToken knownToken, Duration timeout) -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Requestauthenticate(okhttp3.Route route, okhttp3.Response response) okhttp3.Responseintercept(okhttp3.Interceptor.Chain chain)
-
Field Details
-
TOKEN_URI_FIELD
- See Also:
-
REDIRECT_URI_FIELD
- See Also:
-
-
Constructor Details
-
ExternalAuthenticator
public ExternalAuthenticator(RedirectHandler redirect, TokenPoller tokenPoller, KnownToken knownToken, Duration timeout)
-
-
Method Details
-
authenticate
@Nullable public okhttp3.Request authenticate(okhttp3.Route route, okhttp3.Response response) - Specified by:
authenticatein interfaceokhttp3.Authenticator
-
intercept
- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-