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, getAuthorizationHeader
public SpnegoAuthenticationProtocolHandler(org.eclipse.jetty.client.HttpClient client)
public String getName()
getName
in interface org.eclipse.jetty.client.ProtocolHandler
getName
in class org.eclipse.jetty.client.WWWAuthenticationProtocolHandler
public org.eclipse.jetty.client.api.Response.Listener getResponseListener()
getResponseListener
in interface org.eclipse.jetty.client.ProtocolHandler
getResponseListener
in class org.eclipse.jetty.client.AuthenticationProtocolHandler
Copyright © 2010–2018 Airlift. All rights reserved.