public class LocalAgentFactory extends Object implements SshAgentFactory
| 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() |
NamedFactory<Channel> |
getChannelForwardingFactory()
The channels are requested by the ssh server when forwarding a client request.
|
public LocalAgentFactory()
public LocalAgentFactory(SshAgent agent)
public SshAgent getAgent()
public NamedFactory<Channel> getChannelForwardingFactory()
SshAgentFactorygetChannelForwardingFactory in interface SshAgentFactorypublic SshAgent createClient(FactoryManager manager) throws IOException
SshAgentFactorycreateClient in interface SshAgentFactorymanager - The FactoryManager instanceSshAgent instanceIOException - If failed to create the clientpublic SshAgentServer createServer(ConnectionService service) throws IOException
SshAgentFactorycreateServer in interface SshAgentFactoryservice - The ConnectionService to useSshAgentServer instanceIOException - If failed to create the serverCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.