Interface ProxyDataFactory

All Known Implementing Classes:
DefaultProxyDataFactory

public interface ProxyDataFactory
Interface for obtaining ProxyData to connect through some proxy.
Since:
5.2
  • Method Details

    • get

      ProxyData get(InetSocketAddress remoteAddress)
      Get the ProxyData to connect to a proxy. It should return a new ProxyData instance every time; if the returned ProxyData contains a password, the SshdSession will clear it once it is no longer needed.
      Parameters:
      remoteAddress - to connect to
      Returns:
      the ProxyData or null if a direct connection is to be made