users@grizzly.java.net

Re: Chaining with the SSLfilter

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Fri, 22 Jan 2010 12:57:06 +0100

Hi,

can you pls. share the exception?
SSLFilter shouldn't pass control to subsequent filters until handshake
wasn't completed.

WBR,
Alexey.

On Jan 21, 2010, at 23:41 , mambo123 wrote:

>
> I have a custom protocol filter adapter that accepts the SSL
> connections. I
> have chained this with the SSLFilter to perform the handshake prior to
> reading any application data. I'm kinda confused how does the
> SSLFilter let
> the subsequent filters know that the handshake is done. I mean, my
> custom
> adapter also has a handleRead method and it is being called during
> handshake
> process and it throws an exception. My code looks like
>
> main()
> {
> nioTransport.getFilterChain().add(new TransportFilter());
> nioTransport.getFilterChain().add(new SSLFilter());
> nioTransport.getFilterChain().add(new MyFilterAdapter());
> }
> MyFilterAdapter extends FilterAdapter
> {
> handleAccept(..)
> {
> //Accept this connection.
> }
> handleRead(...)
> {
> //Find the message type and create different messages.
> }
>
> }
>
>
> --
> View this message in context: http://old.nabble.com/Chaining-with-the-SSLfilter-tp27265905p27265905.html
> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>