SSLSocket: Access to raw unencrypted socket
843811Feb 27 2002 — edited Apr 16 2002Hello to the JCognecenti,
This probably sounds stupid but bear with me a moment.
If I have created a SSLSocket, and it has completed the SSL handshake providing me with server authentication (and client authentication if requested from the server's point of view).
Is there any way I can then gain access to the underlying raw socket (Socket class that was extended by SSLSocket) after the SSL negotiation?
I believe that the negotiated SSL connection support minimally integrity and then optionally confidentiality. If I cannot access the raw socket in SSLSocket, then can I turn off integrity?
Why would I want to do this you ask? Good question, but the idea is that I authenticate both ends of a socket to ensure both peers know who each other is, but I do not care about anyone reading my communication or man-in-the-middle attacks.
Thanks in advance,