tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: In apache-tomcat-7.0.40 want to set Client auth dynamically
Date Tue, 29 Oct 2013 08:27:43 GMT
On 29/10/2013 05:57, Sushil Prusty wrote:
> Hi All,
> 
> 
> In server.xml i need to setup clientauth value dynamically .Is there any
> java apace api available to set value at runtime or any other alternative
> option ?
> 
> <Connector  clientAuth="false" .......>

The behaviour varies by connector.

The BIO connector uses the value for clientAuth when the server socket
is created and doesn't update it. It looks like it should be possible to
update it dynamically but the code doesn't do that.

The NIO connector uses the value for clientAuth at the point where the
client makes a connection. Therefore dynamic updates to clientAuth (e.g.
via JMX) should take effect with the next attempted connection.

The APR connector uses a different attribute so I guess you aren't using
it. For completeness, it uses the value when the server socket is
created and doesn't update it. It might be possible to update it
dynamically but the code doesn't do that.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message