Groovy Documentation

utils
Class CowAuthenticationManager

java.lang.Object
  utils.CowAuthenticationManager

class CowAuthenticationManager


Property Summary
AuthenticationData authenticationData

The underlying AuthenticationData that drives this manager.

private ISVNAuthenticationManager defaultManager

File svnconfigDirectory

Subversion configuration directory (containing the config and servers files).

 
Constructor Summary
CowAuthenticationManager(File svnconfigDirectory)

 
Method Summary
void acknowledgeAuthentication(boolean accepted, String kind, String realm, SVNErrorMessage err, SVNAuthentication auth)

Does nothing, we don't acknowledge authentication.

void acknowledgeTrustManager(TrustManager tm)

Does nothing, we don't acknowledge trust managers.

int getConnectTimeout(SVNRepository repository)

Returns connection timeout value.

private ISVNAuthenticationManager getDefaultAuthManager()

Get the default authentication manager that we delegate to, creating it lazily if required.

SVNAuthentication getFirstAuthentication(String kind, String realm, SVNURL url)

SVNAuthentication getNextAuthentication(String kind, String realm, SVNURL url)

ISVNProxyManager getProxyManager(SVNURL url)

Returns the default proxy manager for the given URL.

int getReadTimeout(SVNRepository repository)

Returns connection timeout value.

TrustManager getTrustManager(SVNURL url)

Return either the default trust manager for this URL or a dummy "trust-everyone" manager, depending on the authentication data for this wiki.

boolean isAuthenticationForced()

Returns the value of forceAuthentication from our AuthenticationData.

void setAuthenticationProvider(ISVNAuthenticationProvider dummy)

 
Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Property Detail

authenticationData

AuthenticationData authenticationData
The underlying AuthenticationData that drives this manager.


defaultManager

private ISVNAuthenticationManager defaultManager


svnconfigDirectory

File svnconfigDirectory
Subversion configuration directory (containing the config and servers files).


 
Constructor Detail

CowAuthenticationManager

public CowAuthenticationManager(File svnconfigDirectory)


 
Method Detail

acknowledgeAuthentication

public void acknowledgeAuthentication(boolean accepted, String kind, String realm, SVNErrorMessage err, SVNAuthentication auth)
Does nothing, we don't acknowledge authentication.


acknowledgeTrustManager

public void acknowledgeTrustManager(TrustManager tm)
Does nothing, we don't acknowledge trust managers.


getConnectTimeout

public int getConnectTimeout(SVNRepository repository)
Returns connection timeout value.

This implementation returns a connection timeout value equal to 60 seconds for http or https access operations. If repository uses a different access protocol, the return value will be 0.

param:
repository repository access object
return:
connection timeout value in milliseconds


getDefaultAuthManager

private ISVNAuthenticationManager getDefaultAuthManager()
Get the default authentication manager that we delegate to, creating it lazily if required.


getFirstAuthentication

public SVNAuthentication getFirstAuthentication(String kind, String realm, SVNURL url)


getNextAuthentication

public SVNAuthentication getNextAuthentication(String kind, String realm, SVNURL url)


getProxyManager

public ISVNProxyManager getProxyManager(SVNURL url)
Returns the default proxy manager for the given URL.


getReadTimeout

public int getReadTimeout(SVNRepository repository)
Returns connection timeout value.

This implementation returns a read timeout value equal to 3600 seconds for http or https access operations. If repository uses a different access protocol, the return value will be 0.

param:
repository repository access object
return:
read timeout value in milliseconds


getTrustManager

public TrustManager getTrustManager(SVNURL url)
Return either the default trust manager for this URL or a dummy "trust-everyone" manager, depending on the authentication data for this wiki.


isAuthenticationForced

public boolean isAuthenticationForced()
Returns the value of forceAuthentication from our AuthenticationData.


setAuthenticationProvider

public void setAuthenticationProvider(ISVNAuthenticationProvider dummy)


 

Groovy Documentation