keystore.load(new FileInputStream(KEYSTORE), KEYSTOREPW);
KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
kmf.init(keystore, KEYPAIRPWD);
SSLContext sslc = SSLContext.getInstance("SSLv3");
sslc.init(kmf.getKeyManagers(), null, null);
SSLServerSocketFactory sslServerSocketFactory = sslc.getServerSocketFactory();
/* SSLServerSocketFactory sslServerSocketFactory =
(SSLServerSocketFactory) SSLServerSocketFactory.getDefault(); */
sslServerSocket =
(SSLServerSocket) sslServerSocketFactory.createServerSocket( port, backlog, h);
}
catch ( BindException e )
{
throw new BindException( "Address already in use: "+h+":"+port );
}