I am making progress...
I had many problems, one was that i wasn't referencing the keystore bean when creating the processor, on the client side:
Another thing was that I had to add the keystore and truststore in order to check for the certificate:cprocessor = factory.createProcessorForSecurityConfiguration(xw ssConfig
.getInputStream(),
(KeyStoreCallbackHandler) applicationContext.getBean("keyStoreHandler"));
Is this a good way to do it?<bean id="keyStoreHandler" class="org.springframework.ws.soap.security.xwss.c allback.KeyStoreCallbackHandler">
<property name="keyStore" ref="trustStore"/>
<property name="privateKeyPassword" value="wspassword"/>
<property name="trustStore" ref="trustStore" />
</bean>
Now I want to add authentication using AcegiCertificateValidationCallbackHandler.
How do I pass the keystore and the password to this handler? Or should I just pass the certificate? if so, how?
Thanks,
Junior


Reply With Quote