| java.lang.Object org.tmatesoft.svn.core.auth.BasicAuthenticationManager
BasicAuthenticationManager | public class BasicAuthenticationManager implements ISVNAuthenticationManager,ISVNProxyManager(Code) | | 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.
version: 1.1.1 author: TMate Software Ltd. See Also: ISVNAuthenticationProvider |
Method Summary | |
public void | acknowledgeAuthentication(boolean accepted, String kind, String realm, SVNErrorMessage errorMessage, SVNAuthentication authentication) Does nothing. | public void | acknowledgeProxyContext(boolean accepted, SVNErrorMessage errorMessage) Does nothing. | public SVNAuthentication | getFirstAuthentication(String kind, String realm, SVNURL url) | public long | getHTTPTimeout(SVNRepository repository) | public SVNAuthentication | getNextAuthentication(String kind, String realm, SVNURL url) | public String | getProxyHost() | public ISVNProxyManager | getProxyManager(SVNURL url) Returns itself as a proxy manager. | public String | getProxyPassword() | public int | getProxyPort() | public String | getProxyUserName() | public ISVNSSLManager | getSSLManager(SVNURL url) Returns null. | public boolean | isAuthenticationForced() | public void | setAuthenticationForced(boolean forced) | public void | setAuthenticationProvider(ISVNAuthenticationProvider provider) Does nothing. | public void | setAuthentications(SVNAuthentication[] authentications) Sets the given user credentials to this manager. | public void | setProxy(String proxyHost, int proxyPort, String proxyUserName, String proxyPassword) Sets a proxy server context to this manager. | public void | setRuntimeStorage(ISVNAuthenticationStorage storage) Does nothing. |
BasicAuthenticationManager | public BasicAuthenticationManager(String userName, String password)(Code) | | Creates an auth manager given a user credential - a username
and password.
Parameters: userName - a username Parameters: password - a password |
BasicAuthenticationManager | public BasicAuthenticationManager(String userName, File keyFile, String passphrase, int portNumber)(Code) | | Creates an auth manager given a user credential - a username and
an ssh private key.
Parameters: userName - a username Parameters: keyFile - a private key file Parameters: passphrase - a password to the private key Parameters: portNumber - a port number over which an ssh tunnel is established |
BasicAuthenticationManager | public BasicAuthenticationManager(SVNAuthentication[] authentications)(Code) | | Creates an auth manager given user credentials to use.
Parameters: authentications - user credentials |
acknowledgeAuthentication | public void acknowledgeAuthentication(boolean accepted, String kind, String realm, SVNErrorMessage errorMessage, SVNAuthentication authentication)(Code) | | Does nothing.
Parameters: accepted - Parameters: kind - Parameters: realm - Parameters: errorMessage - Parameters: authentication - |
acknowledgeProxyContext | public void acknowledgeProxyContext(boolean accepted, SVNErrorMessage errorMessage)(Code) | | Does nothing.
Parameters: accepted - Parameters: errorMessage - |
getProxyManager | public ISVNProxyManager getProxyManager(SVNURL url) throws SVNException(Code) | | Returns itself as a proxy manager.
Parameters: url - a repository location that will be accessed over the proxy server for which a manager is needed a proxy manager throws: SVNException - |
getProxyPort | public int getProxyPort()(Code) | | |
isAuthenticationForced | public boolean isAuthenticationForced()(Code) | | |
setAuthenticationForced | public void setAuthenticationForced(boolean forced)(Code) | | |
setAuthentications | public void setAuthentications(SVNAuthentication[] authentications)(Code) | | Sets the given user credentials to this manager.
Parameters: authentications - user credentials |
setProxy | public void setProxy(String proxyHost, int proxyPort, String proxyUserName, String proxyPassword)(Code) | | Sets a proxy server context to this manager.
Parameters: proxyHost - a proxy server hostname Parameters: proxyPort - a proxy server port Parameters: proxyUserName - a username to supply to a proxy machine Parameters: proxyPassword - a password to supply to a proxy machine |
|
|