Class JGitSshAgentFactory
- java.lang.Object
-
- org.eclipse.jgit.internal.transport.sshd.agent.JGitSshAgentFactory
-
- All Implemented Interfaces:
org.apache.sshd.agent.SshAgentFactory
public class JGitSshAgentFactory extends Object implements org.apache.sshd.agent.SshAgentFactory
A factory for creatingSshAgentClient
s.
-
-
Constructor Summary
Constructors Constructor Description JGitSshAgentFactory(ConnectorFactory factory, File homeDir)
Creates a newJGitSshAgentFactory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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)
-
-
-
Constructor Detail
-
JGitSshAgentFactory
public JGitSshAgentFactory(@NonNull ConnectorFactory factory, File homeDir)
Creates a newJGitSshAgentFactory
.- Parameters:
factory
-JGitSshAgentFactory
to wraphomeDir
- for obtaining the current local user's home directory
-
-
Method Detail
-
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
-
-