public void setKnownHosts(InputStream stream) throws JSchException { if (known_hosts == null) known_hosts = new KnownHosts(this); if (known_hosts instanceof KnownHosts) { synchronized (known_hosts) { ((KnownHosts) known_hosts).setKnownHosts(stream); } } }
public void setKnownHosts(String filename) throws JSchException { if (known_hosts == null) known_hosts = new KnownHosts(this); if (known_hosts instanceof KnownHosts) { synchronized (known_hosts) { ((KnownHosts) known_hosts).setKnownHosts(filename); } } }