Class JGitSshConfig
- java.lang.Object
-
- org.eclipse.jgit.internal.transport.sshd.JGitSshConfig
-
- All Implemented Interfaces:
org.apache.sshd.client.config.hosts.HostConfigEntryResolver
public class JGitSshConfig extends java.lang.Object implements org.apache.sshd.client.config.hosts.HostConfigEntryResolver
A bridge between a JGitSshConfigStore
and the Apache MINA sshdHostConfigEntryResolver
.
-
-
Field Summary
Fields Modifier and Type Field Description private SshConfigStore
configFile
-
Constructor Summary
Constructors Constructor Description JGitSshConfig(SshConfigStore store)
Creates a newJGitSshConfig
that will read the config from the givenSshConfigStore
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sshd.client.config.hosts.HostConfigEntry
resolveEffectiveHost(java.lang.String host, int port, java.net.SocketAddress localAddress, java.lang.String username, org.apache.sshd.common.AttributeRepository attributes)
-
-
-
Field Detail
-
configFile
private final SshConfigStore configFile
-
-
Constructor Detail
-
JGitSshConfig
public JGitSshConfig(SshConfigStore store)
Creates a newJGitSshConfig
that will read the config from the givenSshConfigStore
.- Parameters:
store
- to use
-
-
Method Detail
-
resolveEffectiveHost
public org.apache.sshd.client.config.hosts.HostConfigEntry resolveEffectiveHost(java.lang.String host, int port, java.net.SocketAddress localAddress, java.lang.String username, org.apache.sshd.common.AttributeRepository attributes) throws java.io.IOException
- Specified by:
resolveEffectiveHost
in interfaceorg.apache.sshd.client.config.hosts.HostConfigEntryResolver
- Throws:
java.io.IOException
-
-