Package io.airlift.http.client.spnego
Class SpnegoAuthenticationProtocolHandler
- java.lang.Object
-
- org.eclipse.jetty.client.AuthenticationProtocolHandler
-
- org.eclipse.jetty.client.WWWAuthenticationProtocolHandler
-
- io.airlift.http.client.spnego.SpnegoAuthenticationProtocolHandler
-
- All Implemented Interfaces:
org.eclipse.jetty.client.ProtocolHandler
public class SpnegoAuthenticationProtocolHandler extends org.eclipse.jetty.client.WWWAuthenticationProtocolHandler
JettyAuthenticationProtocolHandler
requires that the"WWW-Authenticate"
header contains a realm, but the"Negotiate"
scheme will not have one. This hacks around that by adding a new header value for that scheme which contains a dummy realm, allowing the rest of the authentication handling to work as normal. Unfortunately, there is no easier way as all of the related code in that class is private.
-
-
Constructor Summary
Constructors Constructor Description SpnegoAuthenticationProtocolHandler(org.eclipse.jetty.client.HttpClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
org.eclipse.jetty.client.api.Response.Listener
getResponseListener()
-
Methods inherited from class org.eclipse.jetty.client.WWWAuthenticationProtocolHandler
accept, getAuthenticateHeader, getAuthenticationAttribute, getAuthenticationURI, getAuthorizationHeader
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.eclipse.jetty.client.ProtocolHandler
- Overrides:
getName
in classorg.eclipse.jetty.client.WWWAuthenticationProtocolHandler
-
getResponseListener
public org.eclipse.jetty.client.api.Response.Listener getResponseListener()
- Specified by:
getResponseListener
in interfaceorg.eclipse.jetty.client.ProtocolHandler
- Overrides:
getResponseListener
in classorg.eclipse.jetty.client.AuthenticationProtocolHandler
-
-