private ServerSocketFactoryMBean createServerSocketFactoryMBean() throws Exception
{
ServerSocketFactoryMBean serverSocketFactoryMBean = null;
SSLSocketBuilder socketBuilder = new SSLSocketBuilder();
socketBuilder.setUseSSLServerSocketFactory(false);
socketBuilder.setSecureSocketProtocol("SSL");
socketBuilder.setKeyStoreAlgorithm("SunX509");
socketBuilder.setKeyStoreType("JKS");
String keyStoreFilePath = this.getClass().getResource("../.keystore").getFile();
socketBuilder.setKeyStoreURL(keyStoreFilePath);
socketBuilder.setKeyStorePassword("unit-tests-server");
/*
* This is optional since if not set, will use
* the key store password (and are the same in this case)
*/
//server.setKeyPassword("unit-tests-server");