// possible to
// configure the console to not use the timeout
if (useTimeout.booleanValue()) {
client.setSoTimeout(3000);
}
Session s = cs.runSession(session, in, out);
Dictionary props = s.getProperties();
if (authorization != null) {
props.put(Session.PROPERTY_AUTHORIZATION,
authorization);
}
props.put(Session.PROPERTY_TCP, new Boolean(
true));
if (exitOnLogout.booleanValue()) {
props.put(Session.PROPERTY_EXIT_ON_LOGOUT,
new Boolean(true));
/*
* Add properties to session to be able to
* exit on login? if (requiredGroup != null) {
* props.put(Session.PROPERTY_REQUIRED_GROUP,
* requiredGroup); } if (forbiddenGroup !=
* null) {
* props.put(Session.PROPERTY_FORBIDDEN_GROUP,
* forbiddenGroup); }
*/
}
sessions.put(s, client);
s.addSessionListener(thisSessionListener);
s.setInterruptString(TELNET_INTERRUPT);
log(LogService.LOG_INFO, "Started " + session);
} catch (IOException e) {
log(LogService.LOG_ERROR,
"Failed to get input or output from socket to console session: "
+ e);