public class OpenSSHConfig extends Object implements ConfigRepository
ConfigRepositoryConfigRepository.ConfigdefaultConfig, nullConfig| Modifier and Type | Method and Description |
|---|---|
ConfigRepository.Config |
getConfig(String host) |
static OpenSSHConfig |
parse(String conf)
Parses the given string, and returns an instance of ConfigRepository.
|
static OpenSSHConfig |
parseFile(String file)
Parses the given file, and returns an instance of ConfigRepository.
|
public static OpenSSHConfig parse(String conf) throws IOException
conf - string, which includes OpenSSH's configIOExceptionpublic static OpenSSHConfig parseFile(String file) throws IOException
file - OpenSSH's config fileIOExceptionpublic ConfigRepository.Config getConfig(String host)
getConfig in interface ConfigRepositoryCopyright © 2017–2019 Eclipse Foundation. All rights reserved.