You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2013/10/22 12:15:44 UTC
[2/2] git commit: CAMEL-6881 The XmlSignatureProcessor should support
other SecurityProvider
CAMEL-6881 The XmlSignatureProcessor should support other SecurityProvider
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d1d4b81a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d1d4b81a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d1d4b81a
Branch: refs/heads/camel-2.12.x
Commit: d1d4b81a21c50f9227455c67c7fef5fe21476c4d
Parents: d878400
Author: Willem Jiang <ni...@apache.org>
Authored: Tue Oct 22 17:53:09 2013 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Tue Oct 22 18:11:01 2013 +0800
----------------------------------------------------------------------
.../xmlsecurity/processor/XmlSignatureProcessor.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/d1d4b81a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignatureProcessor.java
----------------------------------------------------------------------
diff --git a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignatureProcessor.java b/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignatureProcessor.java
index 9a6fd5c..c0e03d1 100644
--- a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignatureProcessor.java
+++ b/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignatureProcessor.java
@@ -34,8 +34,13 @@ public abstract class XmlSignatureProcessor implements Processor {
private static final Logger LOG = LoggerFactory.getLogger(XmlSignatureProcessor.class);
static {
- SantuarioUtil.initializeSantuario();
- SantuarioUtil.addSantuarioJSR105Provider();
+ try {
+ SantuarioUtil.initializeSantuario();
+ SantuarioUtil.addSantuarioJSR105Provider();
+ } catch (Throwable t) {
+ // provider not in classpath, ignore and fall back to jre default
+ LOG.info("Cannot add the SantuarioJSR105Provider due to {0}, fall back to JRE default.", t);
+ }
}
public abstract XmlSignatureConfiguration getConfiguration();