@ThreadSafe public class SVNBasicAuthenticationManager extends Object implements org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
Modifier and Type | Class and Description |
---|---|
private class |
SVNBasicAuthenticationManager.BasicProxyManager
Basic implementation of
ISVNProxyManager . |
Modifier and Type | Field and Description |
---|---|
private Map<String,org.tmatesoft.svn.core.auth.SVNAuthentication> |
authenticationMethods
User authentication mechanisms.
|
private int |
connectionTimeout
Network connection timeout in milliseconds.
|
private org.slf4j.Logger |
log
Class logger.
|
private SVNBasicAuthenticationManager.BasicProxyManager |
proxyManager
HTTP proxy configuration.
|
private int |
readTimeout
Read operation timeout in milliseconds.
|
private TrustManager |
trustManager |
Constructor and Description |
---|
SVNBasicAuthenticationManager(List<org.tmatesoft.svn.core.auth.SVNAuthentication> authnMethods)
Constructor.
|
SVNBasicAuthenticationManager(List<org.tmatesoft.svn.core.auth.SVNAuthentication> authnMethods,
String proxyHost,
int proxyPort,
String proxyUser,
String proxyPassword)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeAuthentication(boolean authnAccepted,
String authnKind,
String authnRealm,
org.tmatesoft.svn.core.SVNErrorMessage error,
org.tmatesoft.svn.core.auth.SVNAuthentication authnMethods) |
void |
acknowledgeTrustManager(TrustManager manager) |
int |
getConnectTimeout(org.tmatesoft.svn.core.io.SVNRepository repository) |
org.tmatesoft.svn.core.auth.SVNAuthentication |
getFirstAuthentication(String authnKind,
String authnRealm,
org.tmatesoft.svn.core.SVNURL repository) |
org.tmatesoft.svn.core.auth.SVNAuthentication |
getNextAuthentication(String authnKind,
String authnRealm,
org.tmatesoft.svn.core.SVNURL respository) |
org.tmatesoft.svn.core.auth.ISVNProxyManager |
getProxyManager(org.tmatesoft.svn.core.SVNURL repository) |
int |
getReadTimeout(org.tmatesoft.svn.core.io.SVNRepository repository) |
TrustManager |
getTrustManager(org.tmatesoft.svn.core.SVNURL respository) |
boolean |
isAuthenticationForced() |
private void |
setAuthenticationMethods(List<org.tmatesoft.svn.core.auth.SVNAuthentication> authnMethods)
Sets the user authentication methods.
|
void |
setAuthenticationProvider(org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider arg0) |
void |
setConnectionTimeout(int timeout)
Sets the network connection timeout in milliseconds.
|
void |
setReadTimeout(int timeout)
Sets the read operation timeout in milliseconds.
|
void |
setTrustManager(TrustManager manager)
Sets the trust manager used when negotiating SSL/TLS connections.
|
private final org.slf4j.Logger log
private int connectionTimeout
private int readTimeout
private TrustManager trustManager
private Map<String,org.tmatesoft.svn.core.auth.SVNAuthentication> authenticationMethods
private final SVNBasicAuthenticationManager.BasicProxyManager proxyManager
public SVNBasicAuthenticationManager(List<org.tmatesoft.svn.core.auth.SVNAuthentication> authnMethods)
authnMethods
- user authentication methodspublic SVNBasicAuthenticationManager(List<org.tmatesoft.svn.core.auth.SVNAuthentication> authnMethods, String proxyHost, int proxyPort, String proxyUser, String proxyPassword)
authnMethods
- user authentication methodsproxyHost
- host name or IP address of the proxy serverproxyPort
- port of the proxy serverproxyUser
- username used to connect to the proxy serverproxyPassword
- password used to connect to the proxy serverpublic void acknowledgeAuthentication(boolean authnAccepted, String authnKind, String authnRealm, org.tmatesoft.svn.core.SVNErrorMessage error, org.tmatesoft.svn.core.auth.SVNAuthentication authnMethods) throws org.tmatesoft.svn.core.SVNException
acknowledgeAuthentication
in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
org.tmatesoft.svn.core.SVNException
public void acknowledgeTrustManager(TrustManager manager)
acknowledgeTrustManager
in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
public int getConnectTimeout(org.tmatesoft.svn.core.io.SVNRepository repository)
getConnectTimeout
in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
public void setConnectionTimeout(int timeout)
Integer.MAX_VALUE
will be used.timeout
- network connection timeout in millisecondspublic org.tmatesoft.svn.core.auth.SVNAuthentication getFirstAuthentication(String authnKind, String authnRealm, org.tmatesoft.svn.core.SVNURL repository) throws org.tmatesoft.svn.core.SVNException
getFirstAuthentication
in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
org.tmatesoft.svn.core.SVNException
public org.tmatesoft.svn.core.auth.SVNAuthentication getNextAuthentication(String authnKind, String authnRealm, org.tmatesoft.svn.core.SVNURL respository) throws org.tmatesoft.svn.core.SVNException
getNextAuthentication
in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
org.tmatesoft.svn.core.SVNException
public org.tmatesoft.svn.core.auth.ISVNProxyManager getProxyManager(org.tmatesoft.svn.core.SVNURL repository) throws org.tmatesoft.svn.core.SVNException
getProxyManager
in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
org.tmatesoft.svn.core.SVNException
public int getReadTimeout(org.tmatesoft.svn.core.io.SVNRepository repository)
getReadTimeout
in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
public void setReadTimeout(int timeout)
Integer.MAX_VALUE
will be used.timeout
- network connection timeout in millisecondspublic TrustManager getTrustManager(org.tmatesoft.svn.core.SVNURL respository) throws org.tmatesoft.svn.core.SVNException
getTrustManager
in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
org.tmatesoft.svn.core.SVNException
public void setTrustManager(TrustManager manager)
manager
- trust manager used when negotiating SSL/TLS connectionspublic boolean isAuthenticationForced()
isAuthenticationForced
in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
public void setAuthenticationProvider(org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider arg0)
setAuthenticationProvider
in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
private void setAuthenticationMethods(List<org.tmatesoft.svn.core.auth.SVNAuthentication> authnMethods)
authnMethods
- user authentication methodsCopyright © 1999-2012. All Rights Reserved.