Save This Page
Home » j2ssh-0.2.9-src » com.sshtools.j2ssh.agent » [javadoc | source]
com.sshtools.j2ssh.agent
public class: SshAgentSocketListener [javadoc | source]
java.lang.Object
   com.sshtools.j2ssh.agent.SshAgentSocketListener
Field Summary
 StartStopState state     
 KeyStore keystore     
 ServerSocket server     
 int port     
 Thread thread     
 String location     
Constructor:
 public SshAgentSocketListener(String location,
    KeyStore keystore) throws AgentNotAvailableException 
    Creates a new SshAgentSocketListener object.
    Parameters:
    location - the location of the listening agent. This should be a random port on the localhost such as localhost:15342
    keystore - the keystore for agent operation
    Throws:
    AgentNotAvailableException - if the location specifies an invalid location
Method from com.sshtools.j2ssh.agent.SshAgentSocketListener Summary:
configureNewLocation,   getKeystore,   getPort,   getState,   main,   start,   stop
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sshtools.j2ssh.agent.SshAgentSocketListener Detail:
 public static int configureNewLocation() 
    Configure a new random port for the agent listener.
 protected KeyStore getKeystore() 
    Gets the underlying keystore for this agent listener.
 public int getPort() 
    The current port of the agent listener
 public StartStopState getState() 
    Get the agent listeners state
 public static  void main(String[] args) 
    The main entry point for the application. This method currently accepts the -start parameter which will look for the sshtools.agent system property. To configure the agent and to get a valid location call with -configure, set the system sshtools.home system property and start.
 public  void start() 
    Starts the agent listener thread
 public  void stop() 
    Stops the agent listener