public class LocalAgentFactory extends java.lang.Object implements SshAgentFactory
Modifier and Type | Field and Description |
---|---|
private SshAgent |
agent |
static java.util.List<ChannelFactory> |
DEFAULT_FORWARDING_CHANNELS |
Constructor and Description |
---|
LocalAgentFactory() |
LocalAgentFactory(SshAgent agent) |
Modifier and Type | Method and Description |
---|---|
SshAgent |
createClient(FactoryManager manager)
Create an SshAgent that can be used on the client side by the authentication process to send possible keys.
|
SshAgentServer |
createServer(ConnectionService service)
Create the server side that will be used by other SSH clients.
|
SshAgent |
getAgent() |
java.util.List<ChannelFactory> |
getChannelForwardingFactories(FactoryManager manager)
The channels are requested by the ssh server when forwarding a client request.
|
public static final java.util.List<ChannelFactory> DEFAULT_FORWARDING_CHANNELS
private final SshAgent agent
public LocalAgentFactory()
public LocalAgentFactory(SshAgent agent)
public SshAgent getAgent()
public java.util.List<ChannelFactory> getChannelForwardingFactories(FactoryManager manager)
SshAgentFactory
getChannelForwardingFactories
in interface SshAgentFactory
manager
- The FactoryManager
through which the request is madeChannelFactory
-ies used to create channels on the client sidepublic SshAgent createClient(FactoryManager manager) throws java.io.IOException
SshAgentFactory
createClient
in interface SshAgentFactory
manager
- The FactoryManager
instanceSshAgent
instancejava.io.IOException
- If failed to create the clientpublic SshAgentServer createServer(ConnectionService service) throws java.io.IOException
SshAgentFactory
createServer
in interface SshAgentFactory
service
- The ConnectionService
to useSshAgentServer
instancejava.io.IOException
- If failed to create the server