com.sshtools.j2ssh.agent
Class SshAgentForwardingListener
java.lang.Object
com.sshtools.j2ssh.agent.SshAgentForwardingListener
public class SshAgentForwardingListener
- extends java.lang.Object
- Version:
- $Revision: 1.1 $
- Author:
- $author$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
agents
private static java.util.HashMap agents
server
java.net.ServerSocket server
port
int port
location
java.lang.String location
state
StartStopState state
thread
java.lang.Thread thread
connection
ConnectionProtocol connection
references
java.util.Vector references
sessionId
java.lang.String sessionId
SshAgentForwardingListener
SshAgentForwardingListener(java.lang.String sessionId,
ConnectionProtocol connection)
getConfiguration
public java.lang.String getConfiguration()
- Returns:
addReference
public void addReference(java.lang.Object obj)
- Parameters:
obj
-
removeReference
public void removeReference(java.lang.Object obj)
- Parameters:
obj
-
start
public void start()
throws java.io.IOException
- Throws:
java.io.IOException
getPort
public int getPort()
- Returns:
stop
public void stop()
selectPort
private int selectPort()
getInstance
public static SshAgentForwardingListener getInstance(java.lang.String sessionId,
ConnectionProtocol connection)
throws AgentNotAvailableException
- Parameters:
sessionId
- connection
-
- Returns:
-
- Throws:
AgentNotAvailableException