You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Stefán F. Stefánsson" <st...@decode.is> on 2000/11/06 12:47:59 UTC

[PATCH] EmbededTomcat.java and PoolTcpConnector.java

Hi.

I've added one method to the EmbededTomcat and that is
addCustomEndpoint.  This method makes it possible to add an endpoint
with a specific ServerSocketFactory.  This is very handy when you are
trying to integrate Tomcat into applications which have their own socket
factory.  For example, in our case we have a SocketFactory handed to
tomcat that includes a ACL.  There are two ways of connecting to the
application, through client software or through the web.  In either case
you have to send a certificate to the server in order to authenticate
yourself.  By using addCustomEndpoint we can use the same SocketFactory
for both connection methods.

I've also added an overloaded version of addSecureEndpoint.  This method
takes one additional parameter which is the string clientauth.  This
specifies if client authentication is needed.  The reason for this being
a string is so that multiple levels of authentication are supported as
opposed to true or false.  In the case of the
org.apache.tomcat.net.SSLSocketFactory the only acceptable values are
"true" or "false" but other implementations of the ServerSocketFactory
class may need various levels of client authentication.

Of course this is all backwards compatible.

I hope this will be included in the final release of Tomcat 3.2.

Kind regards, Stefan Freyr

 <<EmbededTomcat.java>>  <<PoolTcpConnector.java>> 

--------------------------------------------
Stefan Freyr Stefansson
Software Developer
deCODE Genetics, Inc.

Phone: (+354) 570 2854
GSM:   (+354) 861 1718
Fax:   (+354) 491 3782
 <<Stefan Stefansson.vcf>>