Class SpnegoAuthenticationProtocolHandler

  • All Implemented Interfaces:
    org.eclipse.jetty.client.ProtocolHandler

    public class SpnegoAuthenticationProtocolHandler
    extends org.eclipse.jetty.client.WWWAuthenticationProtocolHandler
    Jetty 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.
    • Field Summary

      • Fields inherited from class org.eclipse.jetty.client.WWWAuthenticationProtocolHandler

        NAME
      • Fields inherited from class org.eclipse.jetty.client.AuthenticationProtocolHandler

        DEFAULT_MAX_CONTENT_LENGTH, LOG
    • Constructor Detail

      • SpnegoAuthenticationProtocolHandler

        public SpnegoAuthenticationProtocolHandler​(org.eclipse.jetty.client.HttpClient client)
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.eclipse.jetty.client.ProtocolHandler
        Overrides:
        getName in class org.eclipse.jetty.client.WWWAuthenticationProtocolHandler
      • getResponseListener

        public org.eclipse.jetty.client.api.Response.Listener getResponseListener()
        Specified by:
        getResponseListener in interface org.eclipse.jetty.client.ProtocolHandler
        Overrides:
        getResponseListener in class org.eclipse.jetty.client.AuthenticationProtocolHandler