public class SpnegoAuthenticationProtocolHandler
extends org.eclipse.jetty.client.WWWAuthenticationProtocolHandler
AuthenticationProtocolHandler 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 and Description |
|---|
SpnegoAuthenticationProtocolHandler(org.eclipse.jetty.client.HttpClient client) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
org.eclipse.jetty.client.api.Response.Listener |
getResponseListener() |
accept, getAuthenticateHeader, getAuthenticationAttribute, getAuthenticationURI, getAuthorizationHeaderpublic SpnegoAuthenticationProtocolHandler(org.eclipse.jetty.client.HttpClient client)
public String getName()
getName in interface org.eclipse.jetty.client.ProtocolHandlergetName in class org.eclipse.jetty.client.WWWAuthenticationProtocolHandlerpublic org.eclipse.jetty.client.api.Response.Listener getResponseListener()
getResponseListener in interface org.eclipse.jetty.client.ProtocolHandlergetResponseListener in class org.eclipse.jetty.client.AuthenticationProtocolHandlerCopyright © 2010–2020 Airlift. All rights reserved.