Thank you Daniel. However, my question is: how to set SSLServerSocketFactory at server side, not at client side?
At client side, for TlsClientParameters, I know there is a setSSLSocketFactory() method. However, I can't find solution to set a SSLServerSocketFactory at server side. Thanks Weihua 2010/10/22 Daniel Kulp <dk...@apache.org>: > On Thursday 21 October 2010 4:31:49 am Weihua JIANG wrote: >> Hi all, >> >> I want to use Not-Yet-Commons-SSL to handle SSL certificates. So, I >> prefer to use its SSLServerSocketFactory implementation for CXF >> endpoint publish. However, I can't find any document or sample on how >> to write code. >> >> Can anyone help me on this? > > It should be something like: > > Client client = ClientProxy.getClient(proxy); > HTTPConduit hc = (HTTPConduit)client.getConduit(); > HTTPClientPolicy cp = hc.getClient(); > cp.getTlsClientParameters().setSSLSocketFactory(factory); > > Hope that helps! > Dan > > >> >> >> Thanks >> Weihua > > -- > Daniel Kulp > dk...@apache.org > http://dankulp.com/blog >