edu.internet2.middleware.shibboleth.common.resource
Class SVNBasicAuthenticationManager

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.resource.SVNBasicAuthenticationManager
All Implemented Interfaces:
org.tmatesoft.svn.core.auth.ISVNAuthenticationManager

@ThreadSafe
public class SVNBasicAuthenticationManager
extends Object
implements org.tmatesoft.svn.core.auth.ISVNAuthenticationManager

Authentication manager for SVN resources.


Field Summary
 
Fields inherited from interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
PASSWORD, SSH, SSL, USERNAME
 
Constructor Summary
SVNBasicAuthenticationManager(List<org.tmatesoft.svn.core.auth.SVNAuthentication> authnMethods)
          Constructor.
SVNBasicAuthenticationManager(List<org.tmatesoft.svn.core.auth.SVNAuthentication> authnMethods, String proxyHost, int proxyPort, String proxyUser, String proxyPassword)
          Constructor.
 
Method Summary
 void acknowledgeAuthentication(boolean authnAccepted, String authnKind, String authnRealm, org.tmatesoft.svn.core.SVNErrorMessage error, org.tmatesoft.svn.core.auth.SVNAuthentication authnMethods)
          
 void acknowledgeTrustManager(TrustManager manager)
          
 int getConnectTimeout(org.tmatesoft.svn.core.io.SVNRepository repository)
          
 org.tmatesoft.svn.core.auth.SVNAuthentication getFirstAuthentication(String authnKind, String authnRealm, org.tmatesoft.svn.core.SVNURL repository)
          
 org.tmatesoft.svn.core.auth.SVNAuthentication getNextAuthentication(String authnKind, String authnRealm, org.tmatesoft.svn.core.SVNURL respository)
          
 org.tmatesoft.svn.core.auth.ISVNProxyManager getProxyManager(org.tmatesoft.svn.core.SVNURL repository)
          
 int getReadTimeout(org.tmatesoft.svn.core.io.SVNRepository repository)
          
 TrustManager getTrustManager(org.tmatesoft.svn.core.SVNURL respository)
          
 boolean isAuthenticationForced()
          
 void setAuthenticationProvider(org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider arg0)
          
 void setConnectionTimeout(int timeout)
          Sets the network connection timeout in milliseconds.
 void setReadTimeout(int timeout)
          Sets the read operation timeout in milliseconds.
 void setTrustManager(TrustManager manager)
          Sets the trust manager used when negotiating SSL/TLS connections.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVNBasicAuthenticationManager

public SVNBasicAuthenticationManager(List<org.tmatesoft.svn.core.auth.SVNAuthentication> authnMethods)
Constructor.

Parameters:
authnMethods - user authentication methods

SVNBasicAuthenticationManager

public SVNBasicAuthenticationManager(List<org.tmatesoft.svn.core.auth.SVNAuthentication> authnMethods,
                                     String proxyHost,
                                     int proxyPort,
                                     String proxyUser,
                                     String proxyPassword)
Constructor.

Parameters:
authnMethods - user authentication methods
proxyHost - host name or IP address of the proxy server
proxyPort - port of the proxy server
proxyUser - username used to connect to the proxy server
proxyPassword - password used to connect to the proxy server
Method Detail

acknowledgeAuthentication

public void acknowledgeAuthentication(boolean authnAccepted,
                                      String authnKind,
                                      String authnRealm,
                                      org.tmatesoft.svn.core.SVNErrorMessage error,
                                      org.tmatesoft.svn.core.auth.SVNAuthentication authnMethods)
                               throws org.tmatesoft.svn.core.SVNException

Specified by:
acknowledgeAuthentication in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
Throws:
org.tmatesoft.svn.core.SVNException

acknowledgeTrustManager

public void acknowledgeTrustManager(TrustManager manager)

Specified by:
acknowledgeTrustManager in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager

getConnectTimeout

public int getConnectTimeout(org.tmatesoft.svn.core.io.SVNRepository repository)

Specified by:
getConnectTimeout in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager

setConnectionTimeout

public void setConnectionTimeout(int timeout)
Sets the network connection timeout in milliseconds. If a value of zero or less is given than the value Integer.MAX_VALUE will be used.

Parameters:
timeout - network connection timeout in milliseconds

getFirstAuthentication

public org.tmatesoft.svn.core.auth.SVNAuthentication getFirstAuthentication(String authnKind,
                                                                            String authnRealm,
                                                                            org.tmatesoft.svn.core.SVNURL repository)
                                                                     throws org.tmatesoft.svn.core.SVNException

Specified by:
getFirstAuthentication in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
Throws:
org.tmatesoft.svn.core.SVNException

getNextAuthentication

public org.tmatesoft.svn.core.auth.SVNAuthentication getNextAuthentication(String authnKind,
                                                                           String authnRealm,
                                                                           org.tmatesoft.svn.core.SVNURL respository)
                                                                    throws org.tmatesoft.svn.core.SVNException

Specified by:
getNextAuthentication in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
Throws:
org.tmatesoft.svn.core.SVNException

getProxyManager

public org.tmatesoft.svn.core.auth.ISVNProxyManager getProxyManager(org.tmatesoft.svn.core.SVNURL repository)
                                                             throws org.tmatesoft.svn.core.SVNException

Specified by:
getProxyManager in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
Throws:
org.tmatesoft.svn.core.SVNException

getReadTimeout

public int getReadTimeout(org.tmatesoft.svn.core.io.SVNRepository repository)

Specified by:
getReadTimeout in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager

setReadTimeout

public void setReadTimeout(int timeout)
Sets the read operation timeout in milliseconds. If a value of zero or less is given than the value Integer.MAX_VALUE will be used.

Parameters:
timeout - network connection timeout in milliseconds

getTrustManager

public TrustManager getTrustManager(org.tmatesoft.svn.core.SVNURL respository)
                             throws org.tmatesoft.svn.core.SVNException

Specified by:
getTrustManager in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager
Throws:
org.tmatesoft.svn.core.SVNException

setTrustManager

public void setTrustManager(TrustManager manager)
Sets the trust manager used when negotiating SSL/TLS connections.

Parameters:
manager - trust manager used when negotiating SSL/TLS connections

isAuthenticationForced

public boolean isAuthenticationForced()

Specified by:
isAuthenticationForced in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager

setAuthenticationProvider

public void setAuthenticationProvider(org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider arg0)

Specified by:
setAuthenticationProvider in interface org.tmatesoft.svn.core.auth.ISVNAuthenticationManager


Copyright © 2006-2011 Internet2. All Rights Reserved.