Example #1
0
 /*
  * HostKeyRepository getKnownHosts(){
  *      if(known_hosts==null) known_hosts=new KnownHosts(this);
  *      return known_hosts;
  * }
  */
 public HostKeyRepository getHostKeyRepository()
 {
     if (known_hosts == null)
     {
         known_hosts = new KnownHosts(this);
     }
     return(known_hosts);
 }
Example #2
0
 public void setKnownHosts(StreamReader foo)
 {
     if (known_hosts == null)
     {
         known_hosts = new KnownHosts(this);
     }
     if (known_hosts is KnownHosts)
     {
         lock (known_hosts){
             ((KnownHosts)known_hosts).setKnownHosts(foo);
         }
     }
 }
Example #3
0
 public void setHostKeyRepository(HostKeyRepository foo)
 {
     known_hosts = foo;
 }
Example #4
0
File: JSch.cs Project: itsbth/GLuaR
 public void setKnownHosts(StreamReader foo)
 {
     if(known_hosts==null) known_hosts=new KnownHosts(this);
     if(known_hosts is KnownHosts){
     lock(known_hosts){
     ((KnownHosts)known_hosts).setKnownHosts(foo);
     }
     }
 }
Example #5
0
File: JSch.cs Project: itsbth/GLuaR
 public void setHostKeyRepository(HostKeyRepository foo)
 {
     known_hosts=foo;
 }
Example #6
0
File: JSch.cs Project: itsbth/GLuaR
 /*
 HostKeyRepository getKnownHosts(){
 if(known_hosts==null) known_hosts=new KnownHosts(this);
 return known_hosts;
 }
 */
 public HostKeyRepository getHostKeyRepository()
 {
     if(known_hosts==null) known_hosts=new KnownHosts(this);
     return known_hosts;
 }