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