[security-dev 00426]: Re: NullPointerException at sun.security.ssl.OutputRecord.writeBuffer

Brad Wetmore Bradford.Wetmore at Sun.COM
Sun Nov 23 08:56:19 PST 2008

>> // Create and initialize a SSLContext, from which you obtain a
>> // SSLSocketFactory, sslssf
>> ServerSocket ss = new ServerSocket(port);
>> Socket s = ss.accept();

SSLSocket sslSocket = slssf.createSocket(s,
     s.getInetAddress().getHostName(), s.getPort(), false);

This configures the socket to play the role of a server in the handshakes.


More information about the security-dev mailing list