comparison src/ch/ethz/ssh2/Session.java @ 287:db9b028016de ganymed

start conversion from trilead to ganymed
author Carl Byington <carl@five-ten-sg.com>
date Fri, 18 Jul 2014 19:52:08 -0700
parents 91a31873c42a
children 9ae4ed7bb523
comparison
equal deleted inserted replaced
286:4656869af8fe 287:db9b028016de
334 } 334 }
335 335
336 cm.requestSubSystem(cn, name); 336 cm.requestSubSystem(cn, name);
337 } 337 }
338 338
339 /**
340 * Request authentication agent forwarding.
341 * @param agent object that implements the callbacks
342 *
343 * @throws IOException in case of any problem or when the session is closed
344 */
345
346 public synchronized boolean requestAuthAgentForwarding(AuthAgentCallback agent) throws IOException {
347 synchronized (this) {
348 /*
349 * The following is just a nicer error, we would catch it anyway
350 * later in the channel code
351 */
352 if (flag_closed)
353 throw new IOException("This session is closed.");
354 }
355
356 return cm.requestChannelAgentForwarding(cn, agent);
357 }
358
339 public int getState() 359 public int getState()
340 { 360 {
341 return cn.getState(); 361 return cn.getState();
342 } 362 }
343 363