public class SshConfig extends Object
Modifier and Type | Field and Description |
---|---|
static File |
ID_DSA |
static File |
ID_ECDSA |
static File |
ID_RSA |
static File[] |
KNOWN_PRIVATE_KEY_LOCATIONS |
static File |
SSH_DIRECTORY |
Modifier and Type | Method and Description |
---|---|
ProxyConnectionData |
apply(ProxyConnectionData connectionData,
String defaultUserName)
Returns new
ProxyConnectionData object with null values overridden with config variables. |
static SshConfig |
getDefaultSshConfig() |
Collection<Pair<File,Long>> |
getParsedFiles() |
public static final File SSH_DIRECTORY
public static final File ID_RSA
public static final File ID_DSA
public static final File ID_ECDSA
public static final File[] KNOWN_PRIVATE_KEY_LOCATIONS
public SshConfig(File... sshConfigs) throws IOException
sshConfigs
- SSH configs to parse, in order of importanceIOException
public ProxyConnectionData apply(ProxyConnectionData connectionData, @Nullable String defaultUserName) throws IOException, GeneralSecurityException
ProxyConnectionData
object with null values overridden with config variables.
If user name is not supplied in the connection data, it will be overriden with defaultUserNameIOException
GeneralSecurityException
public static SshConfig getDefaultSshConfig() throws IOException
IOException
public Collection<Pair<File,Long>> getParsedFiles()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.