|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.ConnectionManager
public class ConnectionManager
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.
| Method Summary | |
|---|---|
ConnectionProtocol |
getConnection(byte[] sessionid)
Get an instance of the ConnectionProtocol based on session id. |
ConnectionProtocol[] |
getConnections()
Get all the active connections. |
static ConnectionManager |
getInstance()
Get the only instance of the ConnectionManager |
TransportProtocol |
getTransport(byte[] sessionid)
Get an instance of the TransportProtocol based on session id. |
TransportProtocol[] |
getTransports()
Get all the active transports. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ConnectionManager getInstance()
public ConnectionProtocol getConnection(byte[] sessionid)
sessionid - byte[]
public ConnectionProtocol[] getConnections()
public TransportProtocol getTransport(byte[] sessionid)
sessionid - byte[]
public TransportProtocol[] getTransports()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||