Thanks Emmanuel for quick response. Yes We are trying to achieve same thing by using Bouncy castle API along with mina. We are unable to integrate that. Could u help us with some sample code how to go about it.
Thanks and Regards, Ashwini Mandhare -----Original Message----- From: Emmanuel Lécharny [mailto:elecha...@gmail.com] Sent: Tuesday, July 12, 2016 5:58 PM To: users@mina.apache.org Subject: Re: Query about TLS compression Le 12/07/16 à 12:31, Ashwini Mandhare a écrit : > Hi, > > We have a use case where we want to support TLS compression. In one of the > client that we use , TLS compression is done on the protocol level . So > unless both the sides advertise compression when doing the TLS handshake, it > will not do compression. > We have our TCP server implementation using Apace mina. We have > following questions regarding this > > 1. Is there a provision/ API that we can advertise the compression > method used during the handshake from the server side in Mina implementation ? > > 2. We tried to use the Bouncy castle library to advertise compression > during handshake however finding it difficult to integrate mina and bouncy > castle. Can we integrate this library in the Apache mina TLS server > implementation? > > 3. Could you please provide any code sample to do so. > > Please suggest. AFAICT, this is not supported by Java JSSE, whcih is internally used by MINA. I'm afraid you have to implement your own SSL handling on top of MINA.