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(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,
String proxyJump) |
resolveEffectiveHost, resolveEffectiveResolvercheckReloadRequired, exists, getPath, lastModified, resetReloadAttributes, size, toPathResource, toPathResource, toString, updateReloadAttributes, validateStrictConfigFilePermissionspublic 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(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, String proxyJump) throws IOException
reloadHostConfigEntries in class ConfigFileHostEntryResolverIOExceptionCopyright © 2018–2024 The Apache Software Foundation. All rights reserved.