public virtual HostKeyRepository GetHostKeyRepository() { if (known_hosts == null) { known_hosts = new KnownHosts(this); } return(known_hosts); }
/// <exception cref="NSch.JSchException"></exception> public virtual void SetKnownHosts(string filename) { if (known_hosts == null) { known_hosts = new KnownHosts(this); } if (known_hosts is KnownHosts) { lock (known_hosts) { ((KnownHosts)known_hosts).SetKnownHosts(filename); } } }
/// <exception cref="NSch.JSchException"></exception> public virtual void SetKnownHosts(InputStream stream) { if (known_hosts == null) { known_hosts = new KnownHosts(this); } if (known_hosts is KnownHosts) { lock (known_hosts) { ((KnownHosts)known_hosts).SetKnownHosts(stream); } } }
public virtual void SetHostKeyRepository(HostKeyRepository hkrepo) { known_hosts = hkrepo; }
public virtual HostKeyRepository GetHostKeyRepository() { if (known_hosts == null) { known_hosts = new KnownHosts(this); } return known_hosts; }