HI, I'm developing a webservices with timestamp, signature and encryption. I'm reading some paper but I don't found any information about de passwordCallback, what is the propouse of this parameter?.
If I not put in the xfire-servlet I get and error, so I've created a class that return the keystore password that is right? Anybody can help me? Regards Alejandro PS: This is my xfire-servlet: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="urlMap"> <map> <entry key="/MySoapClient"> <ref bean="services.xfire.soapClientBean" /> </entry> </map> </property> </bean> <!-- WEB SERVICES --> <bean id="services.xfire.soapClientBean" class="org.codehaus.xfire.spring.remoting.XFireExporter"> <property name="serviceFactory"> <ref bean="xfire.serviceFactory" /> </property> <property name="xfire"> <ref bean="xfire" /> </property> <property name="serviceBean"> <ref bean="services.soapClient" /> </property> <property name="serviceClass"> <value>com.banelco.webservices.ISoapClient</value> </property> <property name="inHandlers"> <list> <bean class="org.codehaus.xfire.util.dom.DOMInHandler" /> <ref bean="services.WSS4JInHandler" /> </list> </property> <property name="outHandlers"> <list> <bean class="org.codehaus.xfire.util.dom.DOMOutHandler" /> <ref bean="services.WSS4JOutHandler" /> </list> </property> </bean> <bean name="xFireCustomMapping" init-method="initializeTypes" class="com.banelco.webservices.mappings.XFireCustomMapping"> <property name="typeMappingRegistry" ref="xfire.typeMappingRegistry" /> </bean> <bean name="services.WSS4JInHandler" class=" org.codehaus.xfire.security.wss4j.WSS4JInHandler"> <property name="properties"> <props> <prop key="action">Timestamp Signature Encrypt</prop> <prop key="decryptionPropFile">META-INF/xfire/wssecurity_in.properties</prop> <prop key="signaturePropFile">META-INF/xfire/wssecurity_in.properties</prop> <prop key="passwordCallbackClass"> services.helpers.PWCallback</prop> <prop key="encryptionSymAlgorithm">http://www.w3.org/2001/04/xmlenc#aes128-cbc </prop> <prop key="encryptionKeyTransportAlgorithm">http://www.w3.org/2001/04/xmlenc#r sa-1_5</prop> </props> </property> </bean> <bean name="services.WSS4JOutHandler" class="org.codehaus.xfire.security.wss4j.WSS4JOutHandler"> <property name="properties"> <props> <prop key="action">Timestamp Signature Encrypt</prop> <prop key="timeToLive">120</prop> <prop key="passwordCallbackClass">services.helpers.PWCallback</prop> <prop key="user">banelco</prop> <prop key="signaturePropFile">META-INF/xfire/wssecurity_out.properties</prop> <prop key="signaturaKeyIdentifier">DirectReference</prop> <prop key="signatureParts">{Content}{http://docs.oasis-open.org/wss/2004/01/oa sis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{Content}{http://sch emas.xmlsoap.org/soap/envelope/}Body</prop> <prop key="encryptionPropFile">META-INF/xfire/wssecurity_out.properties</prop> <prop key="encryptionSymAlgorithm">http://www.w3.org/2001/04/xmlenc#aes128-cbc </prop> <prop key="encryptionKeyTransportAlgorithm">http://www.w3.org/2001/04/xmlenc#r sa-1_5</prop> <prop key="encryptionKeyIdentifier">SKIKeyIdentifier</prop> <prop key="encryptionParts">{Content}{http://docs.oasis-open.org/wss/2004/01/o asis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{Content}{http://sc hemas.xmlsoap.org/soap/envelope/}Body</prop> <prop key="encryptionUser">useReqSigCert</prop> <prop key="enableSignatureConfirmation">false</prop> </props> </property> </bean> </beans>
