public class DefaultConfigFileHostEntryResolver extends ConfigFileHostEntryResolver
~/.ssh/config file of the user currently running
the client, re-loading it if necessary. It also (optionally) enforces
the same permissions regime as OpenSSH| Modifier and Type | Field and Description |
|---|---|
static DefaultConfigFileHostEntryResolver |
INSTANCE
The default instance that enforces the same permissions regime as
OpenSSH |
options, STRICTLY_PROHIBITED_FILE_PERMISSIONlogEMPTY| Constructor and Description |
|---|
DefaultConfigFileHostEntryResolver(boolean strict) |
DefaultConfigFileHostEntryResolver(File file,
boolean strict) |
DefaultConfigFileHostEntryResolver(Path path,
boolean strict,
LinkOption... options) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStrict() |
protected List<HostConfigEntry> |
reloadHostConfigEntries(Path path,
String host,
int port,
String username) |
resolveEffectiveHost, resolveEffectiveResolvercheckReloadRequired, exists, getPath, lastModified, resetReloadAttributes, size, toString, updateReloadAttributes, validateStrictConfigFilePermissionsgetSimplifiedLoggerpublic static final DefaultConfigFileHostEntryResolver INSTANCE
OpenSSHpublic DefaultConfigFileHostEntryResolver(boolean strict)
strict - If true then makes sure that the containing folder
has 0700 access and the file 0644. Note: for Windows it
does not check these permissionsModifiableFileWatcher.validateStrictConfigFilePermissions(Path, LinkOption...)public DefaultConfigFileHostEntryResolver(File file, boolean strict)
public DefaultConfigFileHostEntryResolver(Path path, boolean strict, LinkOption... options)
public final boolean isStrict()
true then makes sure that the containing folder
has 0700 access and the file 0644. Note: for Windows it
does not check these permissionsModifiableFileWatcher.validateStrictConfigFilePermissions(Path, LinkOption...)protected List<HostConfigEntry> reloadHostConfigEntries(Path path, String host, int port, String username) throws IOException
reloadHostConfigEntries in class ConfigFileHostEntryResolverIOExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.