You can't currently specify a provider for the XMLSignature code, only to
load certificates etc. What provider do you want to use for XML Signature?
What's the use-case to switch providers here?

Colm.


On Tue, Jul 22, 2014 at 12:50 PM, Lenden <[email protected]> wrote:

> Ohh, how can I do it?
>
> I was talking about  WSSecSignature
> <
> http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecSignature.java?view=markup
> >
> class, more precisely about init() method:
>
>         // Try to install the Santuario Provider - fall back to the JDK
> provider if this does
>         // not work
>         try {
>             signatureFactory = XMLSignatureFactory.getInstance("DOM",
> "ApacheXMLDSig");
>         } catch (NoSuchProviderException ex) {
>             signatureFactory = XMLSignatureFactory.getInstance("DOM");
>         }
>         try {
>             keyInfoFactory = KeyInfoFactory.getInstance("DOM",
> "ApacheXMLDSig");
>         } catch (NoSuchProviderException ex) {
>             keyInfoFactory = KeyInfoFactory.getInstance("DOM");
>         }
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Plug-WSS4J-with-my-own-signature-generation-for-SOAP-requests-tp5746713p5746732.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to