cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pinguino <rafael.rui...@gmail.com>
Subject Re: I need WSS4JOutInterceptor.signaturePropFile properties in database
Date Mon, 01 Feb 2010 13:39:36 GMT

Thank you for your response. Your idea solves my problem.


dkulp wrote:
> 
> 
> I think the only way to do this is to subclass the WSS4JOutInterceptor 
> and 
> override the load*Crypto methods.   In each case, grab the properties form
> the 
> DB and just call:
> 
> return CryptoFactory.getInstance(properties);
> 
> 
> Dan
> 
> 
> 
> On Fri January 29 2010 6:20:22 am pinguino wrote:
>>  <bean id="wss4jOut"
>> class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor">
>> 	<property name="properties">
>> 		<map>
>> 			<entry key="action" value="UsernameToken Timestamp Signature" 
> />
>> 			<entry key="user" value="clientx509v1" />
>> 			<entry key="signaturePropFile" value="client_sign.properties" 
> />
>> 			<entry key="signatureKeyIdentifier" value="DirectReference" />
>> 			<entry key="passwordCallbackClass" 
> value="ClientPasswordCallback" />
>> 			<entry key="signatureParts"
>> value="{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-ws
>> security-utility-1.0.xsd}Timestamp;{Element}{http://schemas.xmlsoap.org/soa
>> p/envelope/}Body" />
>> 
>> 		</map>
>> 	</property>
>> </bean>
>> 
>> I need to configure the properties indicated in the file
>> signaturePropFile
>>  - WSS4JOutInterceptor configuration - and make them configurable via
>>  database?
>> 
>> Instead of using a properties file client_sign.properties
>> 
>> is it possible?
>> 
>> 
>> thanks in advance
>> 
> 
> -- 
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
> 
> 

-- 
View this message in context: http://old.nabble.com/I-need-WSS4JOutInterceptor.signaturePropFile--properties-in-database-tp27370580p27404343.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message