org.apache.sshd.agent.local
Class LocalAgentFactory
java.lang.Object
org.apache.sshd.agent.local.LocalAgentFactory
- All Implemented Interfaces:
- SshAgentFactory
public class LocalAgentFactory
- extends java.lang.Object
- implements SshAgentFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalAgentFactory
public LocalAgentFactory()
LocalAgentFactory
public LocalAgentFactory(SshAgent agent)
getAgent
public SshAgent getAgent()
getChannelForwardingFactory
public NamedFactory<Channel> getChannelForwardingFactory()
- Description copied from interface:
SshAgentFactory
- Retrieve the channel factory used to create channels on the client side.
The channels are requested by the ssh server when forwarding a client request.
The channel will receive agent requests and need to forward them to the agent,
either local or through another proxy.
- Specified by:
getChannelForwardingFactory in interface SshAgentFactory
- Returns:
createClient
public SshAgent createClient(Session session)
throws java.io.IOException
- Description copied from interface:
SshAgentFactory
- Create an SshAgent that can be used on the client side by the authentication
process to send possible keys.
- Specified by:
createClient in interface SshAgentFactory
- Returns:
-
- Throws:
java.io.IOException
createServer
public SshAgentServer createServer(Session session)
throws java.io.IOException
- Description copied from interface:
SshAgentFactory
- Create the server side that will be used by other SSH clients.
It will usually create a channel that will forward the requests
to the original client.
- Specified by:
createServer in interface SshAgentFactory
- Returns:
-
- Throws:
java.io.IOException
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.