Top Description Fields Constructors Methods
org.apache.sshd.client.config.hosts

public Class DefaultConfigFileHostEntryResolver

extends ConfigFileHostEntryResolver
Class Inheritance
Imports
java.io.IOException, java.nio.file.LinkOption, .Path, java.util.Collections, .List, .Map

Monitors the ~/.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
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final DefaultConfigFileHostEntryResolver
INSTANCE

The default instance that enforces the same permissions regime as OpenSSH

private final boolean

Constructor Summary

AccessConstructor and Description
public
DefaultConfigFileHostEntryResolver(boolean
If true then makes sure that the containing folder has 0700 access and the file 0644

Note

for Windows it does not check these permissions

strict
)

public
DefaultConfigFileHostEntryResolver(Path path, boolean strict, LinkOption... options)

Method Summary

Modifier and TypeMethod and Description
public final boolean

Returns:

If true then makes sure that the containing folder has 0700 access and the file 0644

Note

for Windows it does not check these permissions

isStrict
()

protected List<HostConfigEntry>
Inherited from org.apache.sshd.client.config.hosts.ConfigFileHostEntryResolver:
resolveEffectiveHostresolveEffectiveResolver

Field Detail

INSTANCEback to summary
public static final DefaultConfigFileHostEntryResolver INSTANCE

The default instance that enforces the same permissions regime as OpenSSH

strictback to summary
private final boolean strict

Constructor Detail

DefaultConfigFileHostEntryResolverback to summary
public DefaultConfigFileHostEntryResolver(boolean strict)
Parameters
strict:boolean

If true then makes sure that the containing folder has 0700 access and the file 0644

Note

for Windows it does not check these permissions

See Also
validateStrictConfigFilePermissions(Path, LinkOption...)
DefaultConfigFileHostEntryResolverback to summary
public DefaultConfigFileHostEntryResolver(Path path, boolean strict, LinkOption... options)

Method Detail

isStrictback to summary
public final boolean isStrict()
Returns:boolean

If true then makes sure that the containing folder has 0700 access and the file 0644

Note

for Windows it does not check these permissions

See Also
validateStrictConfigFilePermissions(Path, LinkOption...)
reloadHostConfigEntriesback to summary
protected List<HostConfigEntry> reloadHostConfigEntries(Path path, String host, int port, String username, String proxyJump) throws IOException

Overrides org.apache.sshd.client.config.hosts.ConfigFileHostEntryResolver.reloadHostConfigEntries.

Annotations
@Override