AntXtras/Svn4Ant-1.1.0

com.idaremedia.svn4ant.clientauth
Class ForEachAuthenticationManager

java.lang.Object
  extended byorg.tmatesoft.svn.core.auth.BasicAuthenticationManager
      extended bycom.idaremedia.svn4ant.clientauth.ForEachAuthenticationManager
All Implemented Interfaces:
ISVNAuthenticationManager, ISVNProxyManager

public final class ForEachAuthenticationManager
extends BasicAuthenticationManager

Hack extension of the basic and default SVNKit authentication managers that accomodates a set of script-supplied credentials. This manager existed originally because SVNKit (as of 1.1) is unable to understand subversion client credentials cached using the 'wincrypt' encryption libraries on Windows without a native library (.dll). However, having the ability to ignore the local credentials cache from a build script is, as it turns out, a generally useful ability. To support subversion tasks that can touch multiple repository (each requiring own credentials), we have to support a way to use multiple script-supplied credentials.

The SvnServerSet type uses this authentication manager to interface with the SVNKit library.

Since:
JWare/Svn4Ant 1.1
Author:
ssmc, ©2007 SSMC
See Also:
SvnServerSet
Thread Safety:
single

Field Summary
 
Fields inherited from interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
PASSWORD, SSH, SSL, USERNAME
 
Method Summary
 void acknowledgeAuthentication(boolean accepted, String kind, String realm, SVNErrorMessage errorMessage, SVNAuthentication authentication)
           
 SVNAuthentication getFirstAuthentication(String kind, String realm, SVNURL url)
           
 SVNAuthentication getNextAuthentication(String kind, String realm, SVNURL url)
           
 ISVNProxyManager getProxyManager(SVNURL url)
           
 ISVNSSLManager getSSLManager(SVNURL url)
           
 void setRuntimeStorage(ISVNAuthenticationStorage storage)
           
 
Methods inherited from class org.tmatesoft.svn.core.auth.BasicAuthenticationManager
acknowledgeProxyContext, getHTTPTimeout, getProxyHost, getProxyPassword, getProxyPort, getProxyUserName, isAuthenticationForced, setAuthenticationForced, setAuthenticationProvider, setAuthentications, setProxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFirstAuthentication

public SVNAuthentication getFirstAuthentication(String kind,
                                                String realm,
                                                SVNURL url)
                                         throws SVNException
Throws:
SVNException

getNextAuthentication

public SVNAuthentication getNextAuthentication(String kind,
                                               String realm,
                                               SVNURL url)
                                        throws SVNException
Throws:
SVNException

acknowledgeAuthentication

public void acknowledgeAuthentication(boolean accepted,
                                      String kind,
                                      String realm,
                                      SVNErrorMessage errorMessage,
                                      SVNAuthentication authentication)

getProxyManager

public ISVNProxyManager getProxyManager(SVNURL url)
                                 throws SVNException
Throws:
SVNException

getSSLManager

public ISVNSSLManager getSSLManager(SVNURL url)
                             throws SVNException
Throws:
SVNException

setRuntimeStorage

public void setRuntimeStorage(ISVNAuthenticationStorage storage)

AntXtras/Svn4Ant-1.1.0

Copyright (c) 2005-2008 Sandbox Software MC. All Rights Reserved.