|
JavaSVN Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tmatesoft.svn.core.auth.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 JavaSVN internals.
ISVNAuthenticationProvider| Field Summary |
| Fields inherited from interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager |
PASSWORD, SSH, SSL |
| Constructor Summary | |
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(String userName,
String password)
Creates an auth manager given a user credential - a username and password. |
|
BasicAuthenticationManager(SVNAuthentication[] authentications)
Creates an auth manager given user credentials. |
|
| 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)
Retrieves the first user credential. |
SVNAuthentication |
getNextAuthentication(String kind,
String realm,
SVNURL url)
Retrieves the next user credential if the first try failed. |
String |
getProxyHost()
Returns the proxy host for HTTP connection. |
ISVNProxyManager |
getProxyManager(SVNURL url)
Returns itself as a proxy manager. |
String |
getProxyPassword()
Returns the password to supply to the proxy machine. |
int |
getProxyPort()
Returns the port number on the proxy host to use. |
String |
getProxyUserName()
Returns the username to supply to the proxy machine. |
ISVNSSLManager |
getSSLManager(SVNURL url)
Returns null. |
boolean |
isAuthenticationForced()
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicAuthenticationManager(String userName,
String password)
userName - a usernamepassword - a password
public BasicAuthenticationManager(String userName,
File keyFile,
String passphrase,
int portNumber)
userName - a usernamekeyFile - a private key filepassphrase - a password to the private keyportNumber - a port number over which an ssh tunnel is establishedpublic BasicAuthenticationManager(SVNAuthentication[] authentications)
authentications - user credentials| Method Detail |
public void setAuthentications(SVNAuthentication[] authentications)
authentications - user credentials
public void setProxy(String proxyHost,
int proxyPort,
String proxyUserName,
String proxyPassword)
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
public SVNAuthentication getFirstAuthentication(String kind,
String realm,
SVNURL url)
throws SVNException
ISVNAuthenticationManagergetNextAuthentication()
and sends the next credential.
getFirstAuthentication in interface ISVNAuthenticationManagerkind - a credential kind (ISVNAuthenticationManager.PASSWORD or ISVNAuthenticationManager.SSH)realm - a repository authentication realmurl - a repository location that is to be accessed
SVNException
public SVNAuthentication getNextAuthentication(String kind,
String realm,
SVNURL url)
throws SVNException
ISVNAuthenticationManagergetFirstAuthentication() and
sends the retrieved credential.
getNextAuthentication in interface ISVNAuthenticationManagerkind - a credential kind (ISVNAuthenticationManager.PASSWORD or ISVNAuthenticationManager.SSH)realm - a repository authentication realmurl - a repository location that is to be accessed
SVNExceptionpublic void setAuthenticationProvider(ISVNAuthenticationProvider provider)
setAuthenticationProvider in interface ISVNAuthenticationManagerprovider -
public ISVNProxyManager getProxyManager(SVNURL url)
throws SVNException
getProxyManager in interface ISVNAuthenticationManagerurl - a repository location that will be accessed
over the proxy server for which a manager is needed
SVNException
public ISVNSSLManager getSSLManager(SVNURL url)
throws SVNException
getSSLManager in interface ISVNAuthenticationManagerurl -
SVNException
public void acknowledgeAuthentication(boolean accepted,
String kind,
String realm,
SVNErrorMessage errorMessage,
SVNAuthentication authentication)
acknowledgeAuthentication in interface ISVNAuthenticationManageraccepted - kind - realm - errorMessage - authentication - public void setRuntimeStorage(ISVNAuthenticationStorage storage)
setRuntimeStorage in interface ISVNAuthenticationManagerstorage - public boolean isAuthenticationForced()
isAuthenticationForced in interface ISVNAuthenticationManagerpublic String getProxyHost()
ISVNProxyManager
getProxyHost in interface ISVNProxyManagerpublic int getProxyPort()
ISVNProxyManager
getProxyPort in interface ISVNProxyManagerpublic String getProxyUserName()
ISVNProxyManager
getProxyUserName in interface ISVNProxyManagerpublic String getProxyPassword()
ISVNProxyManager
getProxyPassword in interface ISVNProxyManager
public void acknowledgeProxyContext(boolean accepted,
SVNErrorMessage errorMessage)
acknowledgeProxyContext in interface ISVNProxyManageraccepted - errorMessage -
|
JavaSVN Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||