Class JGitSshAgentFactory
java.lang.Object
org.eclipse.jgit.internal.transport.sshd.agent.JGitSshAgentFactory
- All Implemented Interfaces:
org.apache.sshd.agent.SshAgentFactory
A factory for creating
SshAgentClient
s.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJGitSshAgentFactory
(ConnectorFactory factory, File homeDir) Creates a newJGitSshAgentFactory
. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.sshd.agent.SshAgent
createClient
(org.apache.sshd.common.session.Session session, org.apache.sshd.common.FactoryManager manager) org.apache.sshd.agent.SshAgentServer
createServer
(org.apache.sshd.common.session.ConnectionService service) List<org.apache.sshd.common.channel.ChannelFactory>
getChannelForwardingFactories
(org.apache.sshd.common.FactoryManager manager)
-
Field Details
-
factory
-
homeDir
-
-
Constructor Details
-
JGitSshAgentFactory
Creates a newJGitSshAgentFactory
.- Parameters:
factory
-JGitSshAgentFactory
to wraphomeDir
- for obtaining the current local user's home directory
-
-
Method Details
-
getChannelForwardingFactories
public List<org.apache.sshd.common.channel.ChannelFactory> getChannelForwardingFactories(org.apache.sshd.common.FactoryManager manager) - Specified by:
getChannelForwardingFactories
in interfaceorg.apache.sshd.agent.SshAgentFactory
-
createClient
public org.apache.sshd.agent.SshAgent createClient(org.apache.sshd.common.session.Session session, org.apache.sshd.common.FactoryManager manager) throws IOException - Specified by:
createClient
in interfaceorg.apache.sshd.agent.SshAgentFactory
- Throws:
IOException
-
createServer
public org.apache.sshd.agent.SshAgentServer createServer(org.apache.sshd.common.session.ConnectionService service) throws IOException - Specified by:
createServer
in interfaceorg.apache.sshd.agent.SshAgentFactory
- Throws:
IOException
-