users@grizzly.java.net

Re: Start TLS support in Grizzly 2.0?

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Mon, 11 May 2009 15:07:40 +0200

Hi Bo,


> I have been evaluating the possible use of Grizzly for OpenDS and so
> far,
> everything looks great! I have one question through: is it possible to
> enable SSL or other Filters on a per connection level after the
> connection
> is established? The LDAP protocol specifies possible installation of
> TLS
> and/or SASL data integrity and data confidentiality layers anytime
> in the
> lifetime of the connection.
There are several possibilities for you here:

you can either assign a private FilterChain to the specific connection:
connection.setProcessor(filterChain);

or you can change the Filters, which will be called by FilterChain at
runtime by returning appropriate InvokeAction.

public NextAction handleXXX(FilterChainContext ctx, NextAction
nextAction) throws IOException {
         <---- Figure out which filters should continue the processing
of the I/O event --------->

         // Set "next" filters and return
        InvokeAction invokeAction = new InvokeAction(filtersToExecute,
nextFilterIndex);
        return invokeAction;
}

Hope this will help.

WBR,
Alexey.

>
>
> Thanks
> Bo
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>