public class OpenSSHConfig extends Object implements ConfigRepository
ConfigRepository
ConfigRepository.Config
defaultConfig, 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 configIOException
public static OpenSSHConfig parseFile(String file) throws IOException
file
- OpenSSH's config fileIOException
public ConfigRepository.Config getConfig(String host)
ConfigRepository
getConfig
in interface ConfigRepository
host
- 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.