public void addIdentity(String foo, String bar) { Identity identity = new IdentityFile(foo, this); if (bar != null) { identity.setPassphrase(bar); } identities.Add(identity); }
public Session getSession(String username, String host, int port) { Session s = new Session(this); s.setUserName(username); s.setHost(host); s.setPort(port); pool.Add(s); return(s); }