public class JGitSshConfig extends Object implements org.apache.sshd.client.config.hosts.HostConfigEntryResolver
HostConfigEntryResolver adapted specifically for JGit.
We use our own config file parser and entry resolution since the default
ConfigFileHostEntryResolver has a number of problems:
OpenSshConfigFile.| Constructor and Description |
|---|
JGitSshConfig(File home,
File config,
String localUserName)
Creates a new
OpenSshConfigFile that will read the config from
file config use the given file home as "home" directory. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.sshd.client.config.hosts.HostConfigEntry |
resolveEffectiveHost(String host,
int port,
String username) |
public JGitSshConfig(@NonNull File home, @NonNull File config, @NonNull String localUserName)
OpenSshConfigFile that will read the config from
file config use the given file home as "home" directory.home - user's home directory for the purpose of ~ replacementconfig - file to load.localUserName - user name of the current user on the local host OSpublic org.apache.sshd.client.config.hosts.HostConfigEntry resolveEffectiveHost(String host, int port, String username) throws IOException
resolveEffectiveHost in interface org.apache.sshd.client.config.hosts.HostConfigEntryResolverIOExceptionCopyright © 2018 Eclipse JGit Project. All rights reserved.