You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Arieh Markel <Ar...@Central.Sun.COM> on 2000/05/23 19:13:22 UTC
Question about Tomcat Futures: usage of javax.net.* ?
Based on my current investigation of trying to enable SSL on Jakarta/Tomcat
I am facing a couple of issues when trying to adapt the work that has
been done on the Simple Tcp and Pooled Tcp connectors to deal with SSL.
One of the things I realize is the apparent overlap between what the
org.apache.tomcat.net.ServerSocketFactory class defines and what the
javax.net.ServerSocketFactory class defines.
The current SSL classes provided by Sun with jsse1.0.1, rely on the javax.net.*
hierarchy.
I am wondering if it is in the plans to make the classes in
org.apache.tomcat.net.* extend/implement those on javax.net.*.
This would allow to extend or simply manipulate the SimpleTcp and PoolTcp
classes to use SSLServerSocketFactory (which extend
javax.net.ServerSocketFactory) objects with no modifications.
Any ideas ? Comments ?
Arieh
--
Arieh Markel Sun Microsystems Inc.
Network Storage 500 Eldorado Blvd. MS UBRM11-194
e-mail: arieh.markel@sun.COM Broomfield, CO 80021
Let's go Panthers !!!! Phone: (303) 272-8547 x78547
(e-mail me with subject SEND PUBLIC KEY to get public key)
Re: Question about Tomcat Futures: usage of javax.net.* ?
Posted by co...@costin.dnt.ro.
> Based on my current investigation of trying to enable SSL on Jakarta/Tomcat
> I am facing a couple of issues when trying to adapt the work that has
> been done on the Simple Tcp and Pooled Tcp connectors to deal with SSL.
> One of the things I realize is the apparent overlap between what the
> org.apache.tomcat.net.ServerSocketFactory class defines and what the
> javax.net.ServerSocketFactory class defines.
A simple workaround is to create an adapter - implement
tomcat.net.ServlerSocketFactory and call java.net.* inside ( to create the
SSL socket). Everything should work.
I would be happy to have tomcat.net replaced with javax.net - but it will
introduce yet another dependency, and I'm not sure javax.net is easily
redistributable.
> This would allow to extend or simply manipulate the SimpleTcp and PoolTcp
> classes to use SSLServerSocketFactory (which extend
> javax.net.ServerSocketFactory) objects with no modifications.
Just use tomcat.net.SSLServerSocketFactory extends
tomcat.net.ServlerSocketFactory, and inside delegate every method to
javax.net.SSLServerSocketFactory.
Costin