Exemplo n.º 1
0
        public void addIdentity(String foo, String bar)
        {
            Identity identity = new IdentityFile(foo, this);

            if (bar != null)
            {
                identity.setPassphrase(bar);
            }
            identities.Add(identity);
        }
Exemplo n.º 2
0
        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);
        }