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
SshAgentClients.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJGitSshAgentFactory(ConnectorFactory factory, File homeDir) Creates a newJGitSshAgentFactory. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.sshd.agent.SshAgentcreateClient(org.apache.sshd.common.session.Session session, org.apache.sshd.common.FactoryManager manager) org.apache.sshd.agent.SshAgentServercreateServer(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-JGitSshAgentFactoryto 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:
getChannelForwardingFactoriesin 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:
createClientin 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:
createServerin interfaceorg.apache.sshd.agent.SshAgentFactory- Throws:
IOException
-