Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SSLSocket: Access to raw unencrypted socket

843811Feb 27 2002 — edited Apr 16 2002
Hello 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,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 14 2002
Added on Feb 27 2002
3 comments
394 views