Package org.eclipse.jgit.transport
Class JschConfigSessionFactory.JschBugFixingConfigRepository.JschBugFixingConfig
- java.lang.Object
-
- org.eclipse.jgit.transport.JschConfigSessionFactory.JschBugFixingConfigRepository.JschBugFixingConfig
-
- All Implemented Interfaces:
com.jcraft.jsch.ConfigRepository.Config
- Enclosing class:
- JschConfigSessionFactory.JschBugFixingConfigRepository
private static class JschConfigSessionFactory.JschBugFixingConfigRepository.JschBugFixingConfig extends java.lang.Object implements com.jcraft.jsch.ConfigRepository.ConfigAConfigRepository.Configthat 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.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]NO_IDENTITIESprivate com.jcraft.jsch.ConfigRepository.Configreal
-
Constructor Summary
Constructors Constructor Description JschBugFixingConfig(com.jcraft.jsch.ConfigRepository.Config delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetHostname()intgetPort()java.lang.StringgetUser()java.lang.StringgetValue(java.lang.String key)java.lang.String[]getValues(java.lang.String key)
-
-
-
Method Detail
-
getHostname
public java.lang.String getHostname()
- Specified by:
getHostnamein interfacecom.jcraft.jsch.ConfigRepository.Config
-
getUser
public java.lang.String getUser()
- Specified by:
getUserin interfacecom.jcraft.jsch.ConfigRepository.Config
-
getPort
public int getPort()
- Specified by:
getPortin interfacecom.jcraft.jsch.ConfigRepository.Config
-
getValue
public java.lang.String getValue(java.lang.String key)
- Specified by:
getValuein interfacecom.jcraft.jsch.ConfigRepository.Config
-
getValues
public java.lang.String[] getValues(java.lang.String key)
- Specified by:
getValuesin interfacecom.jcraft.jsch.ConfigRepository.Config
-
-