Package io.trino.client.auth.kerberos
Class SpnegoHandler
java.lang.Object
io.trino.client.auth.kerberos.SpnegoHandler
- All Implemented Interfaces:
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
Fields inherited from interface okhttp3.Authenticator
Companion, JAVA_NET_AUTHENTICATOR, NONEFields inherited from interface okhttp3.Interceptor
Companion -
Constructor Summary
ConstructorsConstructorDescriptionSpnegoHandler(String servicePrincipalPattern, String remoteServiceName, boolean useCanonicalHostname, GSSContextProvider contextProvider) -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Requestauthenticate(okhttp3.Route route, okhttp3.Response response) okhttp3.Responseintercept(okhttp3.Interceptor.Chain chain)
-
Constructor Details
-
SpnegoHandler
public SpnegoHandler(String servicePrincipalPattern, String remoteServiceName, boolean useCanonicalHostname, GSSContextProvider contextProvider)
-
-
Method Details
-
intercept
- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-
authenticate
public okhttp3.Request authenticate(okhttp3.Route route, okhttp3.Response response) - Specified by:
authenticatein interfaceokhttp3.Authenticator
-