Class HttpProxyConnector

java.lang.Object
org.apache.sshd.client.session.proxy.AbstractProxyConnector
org.apache.sshd.client.session.proxy.HttpProxyConnector
All Implemented Interfaces:
Closeable, AutoCloseable

public class HttpProxyConnector extends AbstractProxyConnector
Simple HTTP proxy connector supporting Basic and SPNEGO Authentication.
  • Constructor Details

    • HttpProxyConnector

      public HttpProxyConnector(ProxyData proxy, InetSocketAddress remoteAddress, org.apache.sshd.common.util.io.functors.IOFunction<org.apache.sshd.common.util.buffer.Buffer, org.apache.sshd.common.io.IoWriteFuture> send, Function<InetSocketAddress, PasswordAuthentication> passwordAuth)
      Creates a new HttpProxyConnector. The connector supports anonymous proxy connections as well as Basic and Negotiate (SPNEGO) authentication.
      Parameters:
      proxy - ProxyData of the proxy we're connected to
      remoteAddress - InetSocketAddress of the target server to connect to
      send - a function to send data and returning an IoWriteFuture
      passwordAuth - a function to query the user for proxy credentials, if needed, and returning a PasswordAuthentication
  • Method Details