public class DefaultSVNConnectionOptions extends java.lang.Object implements ISVNConnectionOptions
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String[] |
DEFAULT_PASSWORD_STORE_TYPES |
private SVNCompositeConfigFile |
myConfigFile |
private SVNCompositeConfigFile |
myServersFile |
| Constructor and Description |
|---|
DefaultSVNConnectionOptions(SVNCompositeConfigFile serversFile,
SVNCompositeConfigFile configFile) |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
getAuthStorageEnabledOption(SVNURL url) |
java.util.Collection |
getAuthTypes(SVNURL url) |
private SVNCompositeConfigFile |
getConfigFile() |
int |
getConnectTimeout(SVNURL url) |
private java.lang.String |
getDefaultSSHCommandLine() |
java.lang.String |
getDefaultSSHKeyFile() |
private java.lang.String |
getDefaultSSHOptionValue(java.lang.String optionName,
java.lang.String systemProperty,
java.lang.String fallbackSystemProperty) |
java.lang.String |
getDefaultSSHPassphrase() |
java.lang.String |
getDefaultSSHPassword() |
int |
getDefaultSSHPortNumber() |
java.lang.String |
getDefaultSSHUserName() |
private static java.lang.String |
getGroupName(java.util.Map groups,
java.lang.String host) |
private java.util.Map |
getHostProperties(java.lang.String host) |
private static java.lang.String |
getOptionValue(java.lang.String commandLine,
java.lang.String optionName) |
java.lang.String[] |
getPasswordStorageTypes() |
java.lang.String |
getProxyHost(SVNURL url) |
private java.lang.String |
getProxyOption(SVNURL url,
java.lang.String optionName,
java.lang.String systemProperty) |
java.lang.String |
getProxyPassword(SVNURL url) |
java.lang.String |
getProxyPort(SVNURL url) |
java.lang.String |
getProxyUserName(SVNURL url) |
int |
getReadTimeout(SVNURL url) |
private SVNCompositeConfigFile |
getServersFile() |
java.io.File[] |
getSSLAuthorityFiles(SVNURL url) |
java.lang.String |
getSSLClientCertFile(SVNURL url) |
java.lang.String |
getSSLClientCertPassword(SVNURL url) |
private java.lang.String |
getStorePlainTextPassphraseOption(SVNAuthentication auth) |
private java.lang.String |
getStorePlainTextPasswordOption(SVNAuthentication auth) |
java.lang.String |
getUserName(SVNURL url) |
boolean |
hasAuthStorageEnabledOption(SVNURL url) |
private static boolean |
hostExceptedFromProxy(java.lang.String host,
java.util.Map properties) |
boolean |
isAuthStorageEnabled(SVNURL url) |
boolean |
isStorePasswords(SVNURL url) |
boolean |
isStorePlainTextPassphrases(java.lang.String realm,
SVNAuthentication auth) |
boolean |
isStorePlainTextPasswords(java.lang.String realm,
SVNAuthentication auth) |
boolean |
isStoreSSLClientCertificatePassphrases(SVNURL url) |
boolean |
trustDefaultSSLCertificateAuthority(SVNURL url) |
private static final java.lang.String[] DEFAULT_PASSWORD_STORE_TYPES
private final SVNCompositeConfigFile myServersFile
private final SVNCompositeConfigFile myConfigFile
public DefaultSVNConnectionOptions(SVNCompositeConfigFile serversFile, SVNCompositeConfigFile configFile)
private SVNCompositeConfigFile getServersFile()
private SVNCompositeConfigFile getConfigFile()
public java.util.Collection getAuthTypes(SVNURL url)
getAuthTypes in interface ISVNConnectionOptionsprivate java.lang.String getAuthStorageEnabledOption(SVNURL url)
public boolean hasAuthStorageEnabledOption(SVNURL url)
public boolean isAuthStorageEnabled(SVNURL url)
isAuthStorageEnabled in interface ISVNConnectionOptionspublic java.lang.String[] getPasswordStorageTypes()
getPasswordStorageTypes in interface ISVNConnectionOptionspublic boolean isStorePasswords(SVNURL url)
isStorePasswords in interface ISVNConnectionOptionsprivate java.lang.String getStorePlainTextPasswordOption(SVNAuthentication auth)
public boolean isStorePlainTextPasswords(java.lang.String realm,
SVNAuthentication auth)
throws SVNException
isStorePlainTextPasswords in interface ISVNConnectionOptionsSVNExceptionpublic boolean isStoreSSLClientCertificatePassphrases(SVNURL url)
isStoreSSLClientCertificatePassphrases in interface ISVNConnectionOptionsprivate java.lang.String getStorePlainTextPassphraseOption(SVNAuthentication auth)
public boolean isStorePlainTextPassphrases(java.lang.String realm,
SVNAuthentication auth)
throws SVNException
isStorePlainTextPassphrases in interface ISVNConnectionOptionsSVNExceptionpublic java.lang.String getUserName(SVNURL url)
getUserName in interface ISVNConnectionOptionsprivate java.lang.String getDefaultSSHCommandLine()
private java.lang.String getDefaultSSHOptionValue(java.lang.String optionName,
java.lang.String systemProperty,
java.lang.String fallbackSystemProperty)
public int getDefaultSSHPortNumber()
getDefaultSSHPortNumber in interface ISVNConnectionOptionspublic java.lang.String getDefaultSSHUserName()
getDefaultSSHUserName in interface ISVNConnectionOptionspublic java.lang.String getDefaultSSHPassword()
getDefaultSSHPassword in interface ISVNConnectionOptionspublic java.lang.String getDefaultSSHKeyFile()
getDefaultSSHKeyFile in interface ISVNConnectionOptionspublic java.lang.String getDefaultSSHPassphrase()
getDefaultSSHPassphrase in interface ISVNConnectionOptionspublic java.lang.String getSSLClientCertFile(SVNURL url)
getSSLClientCertFile in interface ISVNConnectionOptionspublic java.lang.String getSSLClientCertPassword(SVNURL url)
getSSLClientCertPassword in interface ISVNConnectionOptionspublic boolean trustDefaultSSLCertificateAuthority(SVNURL url)
trustDefaultSSLCertificateAuthority in interface ISVNConnectionOptionspublic java.io.File[] getSSLAuthorityFiles(SVNURL url)
getSSLAuthorityFiles in interface ISVNConnectionOptionspublic java.lang.String getProxyHost(SVNURL url)
getProxyHost in interface ISVNConnectionOptionspublic java.lang.String getProxyPort(SVNURL url)
getProxyPort in interface ISVNConnectionOptionspublic java.lang.String getProxyUserName(SVNURL url)
getProxyUserName in interface ISVNConnectionOptionspublic java.lang.String getProxyPassword(SVNURL url)
getProxyPassword in interface ISVNConnectionOptionsprivate java.lang.String getProxyOption(SVNURL url, java.lang.String optionName, java.lang.String systemProperty)
private static boolean hostExceptedFromProxy(java.lang.String host,
java.util.Map properties)
public int getReadTimeout(SVNURL url)
getReadTimeout in interface ISVNConnectionOptionspublic int getConnectTimeout(SVNURL url)
getConnectTimeout in interface ISVNConnectionOptionsprivate java.util.Map getHostProperties(java.lang.String host)
private static java.lang.String getGroupName(java.util.Map groups,
java.lang.String host)
private static java.lang.String getOptionValue(java.lang.String commandLine,
java.lang.String optionName)