Exemple #1
0
 public virtual HostKeyRepository GetHostKeyRepository()
 {
     if (known_hosts == null)
     {
         known_hosts = new KnownHosts(this);
     }
     return(known_hosts);
 }
Exemple #2
0
 /// <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);
         }
     }
 }
Exemple #3
0
 /// <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);
         }
     }
 }
Exemple #4
0
 public virtual void SetHostKeyRepository(HostKeyRepository hkrepo)
 {
     known_hosts = hkrepo;
 }
Exemple #5
0
		public virtual HostKeyRepository GetHostKeyRepository()
		{
			if (known_hosts == null)
			{
				known_hosts = new KnownHosts(this);
			}
			return known_hosts;
		}
Exemple #6
0
		/// <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);
				}
			}
		}
Exemple #7
0
		/// <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);
				}
			}
		}
Exemple #8
0
		public virtual void SetHostKeyRepository(HostKeyRepository hkrepo)
		{
			known_hosts = hkrepo;
		}