|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sshtools.j2ssh.agent.SshAgentSocketListener
public class SshAgentSocketListener
Field Summary | |
---|---|
(package private) KeyStore |
keystore
|
(package private) java.lang.String |
location
|
private static org.apache.commons.logging.Log |
log
|
(package private) int |
port
|
(package private) java.net.ServerSocket |
server
|
(package private) StartStopState |
state
|
(package private) java.lang.Thread |
thread
|
Constructor Summary | |
---|---|
SshAgentSocketListener(java.lang.String location,
KeyStore keystore)
Creates a new SshAgentSocketListener object. |
Method Summary | |
---|---|
static int |
configureNewLocation()
Configure a new random port for the agent listener. |
protected KeyStore |
getKeystore()
Gets the underlying keystore for this agent listener. |
int |
getPort()
The current port of the agent listener |
StartStopState |
getState()
Get the agent listeners state |
static void |
main(java.lang.String[] args)
The main entry point for the application. |
void |
start()
Starts the agent listener thread |
void |
stop()
Stops the agent listener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.commons.logging.Log log
StartStopState state
KeyStore keystore
java.net.ServerSocket server
int port
java.lang.Thread thread
java.lang.String location
Constructor Detail |
---|
public SshAgentSocketListener(java.lang.String location, KeyStore keystore) throws AgentNotAvailableException
location
- the location of the listening agent. This should be a
random port on the localhost such as localhost:15342keystore
- the keystore for agent operation
AgentNotAvailableException
- if the location specifies an invalid
locationMethod Detail |
---|
public StartStopState getState()
public void start()
public int getPort()
public void stop()
protected KeyStore getKeystore()
public static int configureNewLocation()
public static void main(java.lang.String[] args)
args
- the programs arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |