RE: Axis SSL authentication help!

Martin Gainty <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
 need to skip any server authentication in some requests (e.g. use SunFakeTrustSocketFactory).

MG>you need to retask this to use 2 separate webapps
MG>one which will authenticate your credentials with MySSLSocketFactory
MG>one which not authenticate which will use SunFakeTrustSocketFactory

MG>this is very clumsy and your options for specifying the security algorithm of your choosing as well as custom keysize are quite limited
MG>why not use Axis2 and engage the Rampart Security Module?
MG>Martin

Date: Tue, 13 Nov 2012 13:37:28 -0800
From: [email protected]
Subject: Axis SSL authentication help!
To: [email protected]

Hi,I am using Axis 1 and need to do SSL authentication of a web service.I found that I need to use: AxisProperties.setProperty("axis.socketSecureFactory",
    "com.example.MySSLSocketFactory"); to set my custom factory and trust managers.Problem: I also need to skip any server authentication in some requests (e.g. use SunFakeTrustSocketFactory).I assume that this AxisProperties.setProperty is some central property that affects all threads, right? So how could I implement my use case?Keep reseting AxisProperties.setProperty before each web service call? Is this the proper way? But I found this bug ticket that seems to complaint that once the socket factory is set in AxisProperties it is cached and any new setting has not
 effect:https://issues.apache.org/jira/browse/AXIS-2751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel#issue-tabsIs there a workarround for this?If you could help me here it would be great guys!Thank you
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.