Class DefaultProxyDataFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ProxyData get​(java.net.InetSocketAddress remoteAddress)
      Get the ProxyData to connect to a proxy.
      private ProxyData getData​(java.util.List<java.net.Proxy> proxies, java.net.Proxy.Type type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultProxyDataFactory

        public DefaultProxyDataFactory()
    • Method Detail

      • get

        public ProxyData get​(java.net.InetSocketAddress remoteAddress)
        Description copied from interface: ProxyDataFactory
        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.
        Specified by:
        get in interface ProxyDataFactory
        Parameters:
        remoteAddress - to connect to
        Returns:
        the ProxyData or null if a direct connection is to be made
      • getData

        private ProxyData getData​(java.util.List<java.net.Proxy> proxies,
                                  java.net.Proxy.Type type)