Class DefaultSVNConnectionOptions
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.DefaultSVNConnectionOptions
-
- All Implemented Interfaces:
ISVNConnectionOptions
public class DefaultSVNConnectionOptions extends java.lang.Object implements ISVNConnectionOptions
- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]
DEFAULT_PASSWORD_STORE_TYPES
private SVNCompositeConfigFile
myConfigFile
private SVNCompositeConfigFile
myServersFile
-
Constructor Summary
Constructors Constructor Description DefaultSVNConnectionOptions(SVNCompositeConfigFile serversFile, SVNCompositeConfigFile configFile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
DEFAULT_PASSWORD_STORE_TYPES
private static final java.lang.String[] DEFAULT_PASSWORD_STORE_TYPES
-
myServersFile
private final SVNCompositeConfigFile myServersFile
-
myConfigFile
private final SVNCompositeConfigFile myConfigFile
-
-
Constructor Detail
-
DefaultSVNConnectionOptions
public DefaultSVNConnectionOptions(SVNCompositeConfigFile serversFile, SVNCompositeConfigFile configFile)
-
-
Method Detail
-
getServersFile
private SVNCompositeConfigFile getServersFile()
-
getConfigFile
private SVNCompositeConfigFile getConfigFile()
-
getAuthTypes
public java.util.Collection getAuthTypes(SVNURL url)
- Specified by:
getAuthTypes
in interfaceISVNConnectionOptions
-
getAuthStorageEnabledOption
private java.lang.String getAuthStorageEnabledOption(SVNURL url)
-
hasAuthStorageEnabledOption
public boolean hasAuthStorageEnabledOption(SVNURL url)
-
isAuthStorageEnabled
public boolean isAuthStorageEnabled(SVNURL url)
- Specified by:
isAuthStorageEnabled
in interfaceISVNConnectionOptions
-
getPasswordStorageTypes
public java.lang.String[] getPasswordStorageTypes()
- Specified by:
getPasswordStorageTypes
in interfaceISVNConnectionOptions
-
isStorePasswords
public boolean isStorePasswords(SVNURL url)
- Specified by:
isStorePasswords
in interfaceISVNConnectionOptions
-
getStorePlainTextPasswordOption
private java.lang.String getStorePlainTextPasswordOption(SVNAuthentication auth)
-
isStorePlainTextPasswords
public boolean isStorePlainTextPasswords(java.lang.String realm, SVNAuthentication auth) throws SVNException
- Specified by:
isStorePlainTextPasswords
in interfaceISVNConnectionOptions
- Throws:
SVNException
-
isStoreSSLClientCertificatePassphrases
public boolean isStoreSSLClientCertificatePassphrases(SVNURL url)
- Specified by:
isStoreSSLClientCertificatePassphrases
in interfaceISVNConnectionOptions
-
getStorePlainTextPassphraseOption
private java.lang.String getStorePlainTextPassphraseOption(SVNAuthentication auth)
-
isStorePlainTextPassphrases
public boolean isStorePlainTextPassphrases(java.lang.String realm, SVNAuthentication auth) throws SVNException
- Specified by:
isStorePlainTextPassphrases
in interfaceISVNConnectionOptions
- Throws:
SVNException
-
getUserName
public java.lang.String getUserName(SVNURL url)
- Specified by:
getUserName
in interfaceISVNConnectionOptions
-
getDefaultSSHCommandLine
private java.lang.String getDefaultSSHCommandLine()
-
getDefaultSSHOptionValue
private java.lang.String getDefaultSSHOptionValue(java.lang.String optionName, java.lang.String systemProperty, java.lang.String fallbackSystemProperty)
-
getDefaultSSHPortNumber
public int getDefaultSSHPortNumber()
- Specified by:
getDefaultSSHPortNumber
in interfaceISVNConnectionOptions
-
getDefaultSSHUserName
public java.lang.String getDefaultSSHUserName()
- Specified by:
getDefaultSSHUserName
in interfaceISVNConnectionOptions
-
getDefaultSSHPassword
public java.lang.String getDefaultSSHPassword()
- Specified by:
getDefaultSSHPassword
in interfaceISVNConnectionOptions
-
getDefaultSSHKeyFile
public java.lang.String getDefaultSSHKeyFile()
- Specified by:
getDefaultSSHKeyFile
in interfaceISVNConnectionOptions
-
getDefaultSSHPassphrase
public java.lang.String getDefaultSSHPassphrase()
- Specified by:
getDefaultSSHPassphrase
in interfaceISVNConnectionOptions
-
getSSLClientCertFile
public java.lang.String getSSLClientCertFile(SVNURL url)
- Specified by:
getSSLClientCertFile
in interfaceISVNConnectionOptions
-
getSSLClientCertPassword
public java.lang.String getSSLClientCertPassword(SVNURL url)
- Specified by:
getSSLClientCertPassword
in interfaceISVNConnectionOptions
-
trustDefaultSSLCertificateAuthority
public boolean trustDefaultSSLCertificateAuthority(SVNURL url)
- Specified by:
trustDefaultSSLCertificateAuthority
in interfaceISVNConnectionOptions
-
getSSLAuthorityFiles
public java.io.File[] getSSLAuthorityFiles(SVNURL url)
- Specified by:
getSSLAuthorityFiles
in interfaceISVNConnectionOptions
-
getProxyHost
public java.lang.String getProxyHost(SVNURL url)
- Specified by:
getProxyHost
in interfaceISVNConnectionOptions
-
getProxyPort
public java.lang.String getProxyPort(SVNURL url)
- Specified by:
getProxyPort
in interfaceISVNConnectionOptions
-
getProxyUserName
public java.lang.String getProxyUserName(SVNURL url)
- Specified by:
getProxyUserName
in interfaceISVNConnectionOptions
-
getProxyPassword
public java.lang.String getProxyPassword(SVNURL url)
- Specified by:
getProxyPassword
in interfaceISVNConnectionOptions
-
getProxyOption
private java.lang.String getProxyOption(SVNURL url, java.lang.String optionName, java.lang.String systemProperty)
-
hostExceptedFromProxy
private static boolean hostExceptedFromProxy(java.lang.String host, java.util.Map properties)
-
getReadTimeout
public int getReadTimeout(SVNURL url)
- Specified by:
getReadTimeout
in interfaceISVNConnectionOptions
-
getConnectTimeout
public int getConnectTimeout(SVNURL url)
- Specified by:
getConnectTimeout
in interfaceISVNConnectionOptions
-
getHostProperties
private java.util.Map getHostProperties(java.lang.String host)
-
getGroupName
private static java.lang.String getGroupName(java.util.Map groups, java.lang.String host)
-
getOptionValue
private static java.lang.String getOptionValue(java.lang.String commandLine, java.lang.String optionName)
-
-