public class OpenSSHConfig extends Object implements ConfigRepository
ConfigRepositoryConfigRepository.ConfigdefaultConfig, nullConfig| Modifier and Type | Method and Description |
|---|---|
ConfigRepository.Config |
getConfig(String host)
Returns the configuration for a specific host name (or host name alias).
|
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)
ConfigRepositorygetConfig in interface ConfigRepositoryhost - The host name. Can also be "", which are default settings used for some of the properties.This is an inofficial Javadoc created by PaĆlo Ebermann. Have a look at the official homepage.