Durgesh Kumar wrote:
3) If possible , I need to do retrieve the data while sending from Client as a third party.
Do you mean you actually want to be the man-in-the-middle? It is normal to try to prevent this!
If you don't actually want to allow man-in-the-middle then JSSE will do what you want and there are many tutorials on the web; Google will find them. Otherwise then a good starting point is "Beginning Cryptography with Java" by David Hook published by Wrox.