Here's another thing that I'm having a hard time understanding.
In the test for ...transport.socket.ssl.custom.InvokerServerTest, it is passing
a config to the Connector() constructor that defines the trust store.
I haven't seen this mentioned in the docs.
So, the Connector has a Builder associated with it (and that building has a
TrustStoreURL in it) but now I have to set additional truststore config to the
Connector config map (??). I'm not sure why that is.
Wouldn't it be more appropriate to store the truststore settings in the Builder
itself (where the keystore settings already live and where the truststore URL
lives). The Connector can then go to the builder to get that information
rather than having to specify this configuration separately in another config.
This is the test code I'm looking at:
| Map config = new HashMap();
| // config.put(RemotingSSLSocketFactory.REMOTING_KEY_STORE_TYPE, "JKS");
| // String keyStoreFilePath =
this.getClass().getResource("../.keystore").getFile();
| // config.put(RemotingSSLSocketFactory.REMOTING_KEY_STORE_FILE_PATH,
keyStoreFilePath);
| // config.put(RemotingSSLSocketFactory.REMOTING_KEY_STORE_PASSWORD,
"unit-tests-server");
| // config.put(RemotingSSLSocketFactory.REMOTING_USE_CLIENT_MODE,
"false");
| config.put(RemotingSSLSocketFactory.REMOTING_TRUST_STORE_TYPE, "JKS");
| String trustStoreFilePath =
this.getClass().getResource("../.truststore").getFile();
| config.put(RemotingSSLSocketFactory.REMOTING_TRUST_STORE_FILE_PATH,
trustStoreFilePath);
| config.put(RemotingSSLSocketFactory.REMOTING_TRUST_STORE_PASSWORD,
"unit-tests-client");
|
| Connector connector = new Connector(config);
|
Notice that the keystore settings are commented out. I looks like this was
done since the Builder now contains the keystore information. I think it
should be possible to move the truststore config over to the builder as well,
unless I'm missing the reason why it is separate.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946606#3946606
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946606
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user