There is no built in way to do this. I guess you will have to implement your own variant of Merlin + plug this in instead. Alternatively, you could write a CXF interceptor that sets the appropriate property for the user key alias depending on the client message.
Colm. On Fri, Oct 31, 2014 at 9:53 AM, Manfred Dohmen <[email protected]> wrote: > Hello, > > is there an (easy) way to dynamically choose a key/certificate that shall > be used with CXF/WSS4J to sign the response to a SOAP request? > > Our service runs in an application where we configure explicitly > ws-security.signature.crypto with an instance of > org.apache.ws.security.components.crypto.Crypto. For now we choose the > key by the setting > org.apache.ws.security.crypto.merlin.keystore.alias. > > Can we hook into CXF's chains or implement some factory? > > Thanks, > Manfred > > > > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com
