org.tmatesoft.svn.core.auth
Class BasicAuthenticationManager
- ISVNAuthenticationManager, ISVNProxyManager
public class BasicAuthenticationManager
The
BasicAuthenticationManager is a simple implementation of
ISVNAuthenticationManager for storing and providing credentials without
using auth providers. A basic manager simply keeps the user credentials provided.
Also this manager may store a single proxy server options context (for HHTP requests
to go through a particular proxy server).
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.
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.
|
BasicAuthenticationManager
public BasicAuthenticationManager(String userName,
File keyFile,
String passphrase,
int portNumber) Creates an auth manager given a user credential - a username and
an ssh private key.
userName - a usernamekeyFile - a private key filepassphrase - a password to the private keyportNumber - a port number over which an ssh tunnel is established
BasicAuthenticationManager
public BasicAuthenticationManager(String userName,
String password) Creates an auth manager given a user credential - a username
and password.
userName - a usernamepassword - a password
BasicAuthenticationManager
public BasicAuthenticationManager(SVNAuthentication[] authentications)
Creates an auth manager given user credentials to use.
authentications - user credentials
setAuthentications
public void setAuthentications(SVNAuthentication[] authentications)
Sets the given user credentials to this manager.
authentications - user credentials
setProxy
public void setProxy(String proxyHost,
int proxyPort,
String proxyUserName,
String proxyPassword) Sets a proxy server context to this manager.
proxyHost - a proxy server hostnameproxyPort - a proxy server portproxyUserName - a username to supply to a proxy machineproxyPassword - a password to supply to a proxy machine
Copyright © 2004-2006 TMate Software Ltd. All Rights Reserved.