SVNKit Home

org.tmatesoft.svn.core.auth
Class BasicSSLManager

java.lang.Object
  extended byorg.tmatesoft.svn.core.auth.BasicSSLManager
All Implemented Interfaces:
ISVNSSLManager

public class BasicSSLManager
extends Object
implements ISVNSSLManager

Version:
1.1.2
Author:
TMate Software Ltd.

Constructor Summary
BasicSSLManager(SVNSSLAuthentication sslAuthentication)
           
 
Method Summary
 void acknowledgeSSLContext(boolean accepted, SVNErrorMessage errorMessage)
          Accepts this SSL context if authentication has succeeded or not if authentication failed.
 SVNSSLAuthentication getClientAuthentication()
          Returns client authentication.
 Throwable getClientCertLoadingError()
           
 SSLContext getSSLContext()
          Returns an SSL context for the appropriate authentiation realm.
 boolean isClientCertPromptRequired()
           
 void setClientAuthentication(SVNSSLAuthentication sslAuthentication)
          Sets client authentication that will be used in SSLContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSSLManager

public BasicSSLManager(SVNSSLAuthentication sslAuthentication)
Method Detail

getSSLContext

public SSLContext getSSLContext()
                         throws IOException,
                                SVNException
Description copied from interface: ISVNSSLManager
Returns an SSL context for the appropriate authentiation realm.

Specified by:
getSSLContext in interface ISVNSSLManager
Returns:
an ssl context
Throws:
IOException - if an i/o error occurred
SVNException

isClientCertPromptRequired

public boolean isClientCertPromptRequired()
Specified by:
isClientCertPromptRequired in interface ISVNSSLManager
Returns:
true if user should be prompted for client certificate

getClientAuthentication

public SVNSSLAuthentication getClientAuthentication()
Description copied from interface: ISVNSSLManager
Returns client authentication.

Specified by:
getClientAuthentication in interface ISVNSSLManager
Returns:
client authentication

setClientAuthentication

public void setClientAuthentication(SVNSSLAuthentication sslAuthentication)
Description copied from interface: ISVNSSLManager
Sets client authentication that will be used in SSLContext.

Specified by:
setClientAuthentication in interface ISVNSSLManager
Parameters:
sslAuthentication - a client authentication

getClientCertLoadingError

public Throwable getClientCertLoadingError()
Specified by:
getClientCertLoadingError in interface ISVNSSLManager
Returns:
error occured during loading of client certificate or null.

acknowledgeSSLContext

public void acknowledgeSSLContext(boolean accepted,
                                  SVNErrorMessage errorMessage)
Description copied from interface: ISVNSSLManager
Accepts this SSL context if authentication has succeeded or not if authentication failed.

Specified by:
acknowledgeSSLContext in interface ISVNSSLManager
Parameters:
accepted - true if authentication succeeded, otherwise false
errorMessage - the reason of the authentication failure

SVNKit Home

Copyright © 2004-2008 TMate Software Ltd. All Rights Reserved.