private static class JschConfigSessionFactory.JschBugFixingConfigRepository.JschBugFixingConfig
extends java.lang.Object
implements com.jcraft.jsch.ConfigRepository.Config
ConfigRepository.Config that transforms
some values from the config file into the format Jsch 0.1.54 expects.
This is a work-around for bugs in Jsch.
Additionally, this config hides the IdentityFile config entries from Jsch; we manage those ourselves. Otherwise Jsch would cache passwords (or rather, decrypted keys) only for a single session, resulting in multiple password prompts for user operations that use several Jsch sessions.
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String[] |
NO_IDENTITIES |
private com.jcraft.jsch.ConfigRepository.Config |
real |
| Constructor and Description |
|---|
JschBugFixingConfig(com.jcraft.jsch.ConfigRepository.Config delegate) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHostname() |
int |
getPort() |
java.lang.String |
getUser() |
java.lang.String |
getValue(java.lang.String key) |
java.lang.String[] |
getValues(java.lang.String key) |
private static final java.lang.String[] NO_IDENTITIES
private final com.jcraft.jsch.ConfigRepository.Config real
public JschBugFixingConfig(com.jcraft.jsch.ConfigRepository.Config delegate)
public java.lang.String getHostname()
getHostname in interface com.jcraft.jsch.ConfigRepository.Configpublic java.lang.String getUser()
getUser in interface com.jcraft.jsch.ConfigRepository.Configpublic int getPort()
getPort in interface com.jcraft.jsch.ConfigRepository.Configpublic java.lang.String getValue(java.lang.String key)
getValue in interface com.jcraft.jsch.ConfigRepository.Configpublic java.lang.String[] getValues(java.lang.String key)
getValues in interface com.jcraft.jsch.ConfigRepository.Config