com.maverick.sshd
Class ConnectionManager

java.lang.Object
  extended by com.maverick.sshd.ConnectionManager

public class ConnectionManager
extends java.lang.Object

This class holds the current sessions by TransportProtocol and ConnectionProtocol. The TransportProtocol objects can be used during authentication whilst the ConnectionProtocol objects can be used anytime after authentication. Do not attempt to get a ConnectionProtocol instance before or during user authentication as it is not created until the user has successfully authenticated.

Author:
Lee David Painter

Method Summary
 Connection[] getAllConnections()
           
 Connection getConnectionById(java.lang.String sessionid)
           
static ConnectionManager getInstance()
          Get the only instance of the ConnectionManager
 java.lang.String[] getLoggedOnUsers()
          Get a list of currently logged on users.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConnectionManager getInstance()
Get the only instance of the ConnectionManager

Returns:
ConnectionManager

getConnectionById

public Connection getConnectionById(java.lang.String sessionid)

getAllConnections

public Connection[] getAllConnections()

getLoggedOnUsers

public java.lang.String[] getLoggedOnUsers()
Get a list of currently logged on users.

Returns:
String[]


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.