public class SshAgentSocketListener extends Object
Constructor and Description |
---|
SshAgentSocketListener(String location,
KeyStore keystore)
Creates a new SshAgentSocketListener object.
|
Modifier and Type | Method and Description |
---|---|
protected KeyStore |
getKeystore()
Gets the underlying keystore for this agent listener.
|
String |
getLocation() |
int |
getPort()
The current port of the agent listener
|
boolean |
getState()
Get the agent listeners state
|
void |
start()
Starts the agent listener thread
|
void |
stop()
Stops the agent listener
|
public SshAgentSocketListener(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 operationAgentNotAvailableException
- if the location specifies an invalid
locationpublic boolean getState()
public void start()
public int getPort()
public void stop()
protected KeyStore getKeystore()
public String getLocation()
Copyright © 2024. All rights reserved.