// Create and initialize a SSLContext, from which you obtain a // SSLSocketFactory, sslssfServerSocket ss = new ServerSocket(port); Socket s = ss.accept();
SSLSocket sslSocket = slssf.createSocket(s,
s.getInetAddress().getHostName(), s.getPort(), false);
sslSocket.setUseClientMode(false);
This configures the socket to play the role of a server in the handshakes.
Brad
