* and key password (per JBREM-488)
* @throws IOException
*/
public void testKeyPassword() throws IOException
{
SSLSocketBuilder socketBuilder = new SSLSocketBuilder();
socketBuilder.setUseSSLServerSocketFactory(false);
socketBuilder.setSecureSocketProtocol("TLS");
socketBuilder.setKeyStoreAlgorithm("SunX509");
socketBuilder.setKeyStoreType("JKS");
String keyStoreFilePath = this.getClass().getResource("ssl.keystore").getFile();
socketBuilder.setKeyStoreURL(keyStoreFilePath);
socketBuilder.setKeyStorePassword("foobar");
socketBuilder.setKeyPassword("barfoo");
ServerSocketFactory svrSocketFactory = socketBuilder.createSSLServerSocketFactory();
assertNotNull(svrSocketFactory);
}