Methods Summary |
---|
public abstract java.lang.String | getImplementationName()
|
public static org.apache.tomcat.util.net.SSLImplementation | getInstance()
for(int i=0;i<implementations.length;i++){
try {
SSLImplementation impl=
getInstance(implementations[i]);
return impl;
} catch (Exception e) {
if(logger.isTraceEnabled())
logger.trace("Error creating " + implementations[i],e);
}
}
// If we can't instantiate any of these
throw new ClassNotFoundException("Can't find any SSL implementation");
|
public static org.apache.tomcat.util.net.SSLImplementation | getInstance(java.lang.String className)
if(className==null) return getInstance();
try {
// Workaround for the J2SE 1.4.x classloading problem (under Solaris).
// Class.forName(..) fails without creating class using new.
// This is an ugly workaround.
if( JSSEImplementationClass.equals(className) ) {
return new org.apache.tomcat.util.net.jsse.JSSEImplementation();
}
Class clazz=Class.forName(className);
return (SSLImplementation)clazz.newInstance();
} catch (Exception e){
if(logger.isDebugEnabled())
logger.debug("Error loading SSL Implementation "
+className, e);
throw new ClassNotFoundException("Error loading SSL Implementation "
+className+ " :" +e.toString());
}
|
public abstract SSLSupport | getSSLSupport(java.net.Socket sock)
|
public abstract SSLSupport | getSSLSupport(javax.net.ssl.SSLEngine sslEngine)
|
public abstract ServerSocketFactory | getServerSocketFactory()
|