org.tmatesoft.svn.core.auth
public class BasicAuthenticationManager extends Object implements ISVNAuthenticationManager, ISVNProxyManager
This manager does not use authentication providers (ISVNAuthenticationProvider) but only those credentials that was supplied to its constructor. Also this manager never caches credentials.
This manager is not used in SVNKit internals. You may use a default manager (how to get it read javadoc for ISVNAuthenticationManager), this basic manager or implement your own one.
Version: 1.1.1
See Also: ISVNAuthenticationProvider
Constructor Summary | |
---|---|
BasicAuthenticationManager(String userName, String password)
Creates an auth manager given a user credential - a username
and password.
| |
BasicAuthenticationManager(String userName, File keyFile, String passphrase, int portNumber)
Creates an auth manager given a user credential - a username and
an ssh private key.
| |
BasicAuthenticationManager(SVNAuthentication[] authentications)
Creates an auth manager given user credentials to use.
|
Method Summary | |
---|---|
void | acknowledgeAuthentication(boolean accepted, String kind, String realm, SVNErrorMessage errorMessage, SVNAuthentication authentication)
Does nothing.
|
void | acknowledgeProxyContext(boolean accepted, SVNErrorMessage errorMessage)
Does nothing.
|
SVNAuthentication | getFirstAuthentication(String kind, String realm, SVNURL url) |
long | getHTTPTimeout(SVNRepository repository) |
SVNAuthentication | getNextAuthentication(String kind, String realm, SVNURL url) |
String | getProxyHost() |
ISVNProxyManager | getProxyManager(SVNURL url)
Returns itself as a proxy manager.
|
String | getProxyPassword() |
int | getProxyPort() |
String | getProxyUserName() |
ISVNSSLManager | getSSLManager(SVNURL url)
Returns null.
|
boolean | isAuthenticationForced() |
void | setAuthenticationForced(boolean forced) |
void | setAuthenticationProvider(ISVNAuthenticationProvider provider)
Does nothing.
|
void | setAuthentications(SVNAuthentication[] authentications)
Sets the given user credentials to this manager.
|
void | setProxy(String proxyHost, int proxyPort, String proxyUserName, String proxyPassword)
Sets a proxy server context to this manager.
|
void | setRuntimeStorage(ISVNAuthenticationStorage storage)
Does nothing.
|
Parameters: userName a username password a password
Parameters: userName a username keyFile a private key file passphrase a password to the private key portNumber a port number over which an ssh tunnel is established
Parameters: authentications user credentials
Parameters: accepted kind realm errorMessage authentication
Parameters: accepted errorMessage
Parameters: url a repository location that will be accessed over the proxy server for which a manager is needed
Returns: a proxy manager
Throws: SVNException
Parameters: url
Returns: null
Throws: SVNException
Parameters: provider
Parameters: authentications user credentials
Parameters: proxyHost a proxy server hostname proxyPort a proxy server port proxyUserName a username to supply to a proxy machine proxyPassword a password to supply to a proxy machine
Parameters: storage