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 11:56:05 UTC
git commit: CAMEL-6881 The XmlSignatureProcessor should support other
SecurityProvider
Updated Branches:
refs/heads/master ec1a4b9ab -> ed036bb3e
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/ed036bb3
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ed036bb3
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ed036bb3
Branch: refs/heads/master
Commit: ed036bb3e5c581db75fc390fff66ed798da5330c
Parents: ec1a4b9
Author: Willem Jiang <ni...@apache.org>
Authored: Tue Oct 22 17:53:09 2013 +0800
Committer: Willem Jiang <ni...@apache.org>
Committed: Tue Oct 22 17:55:21 2013 +0800
----------------------------------------------------------------------
.../xmlsecurity/processor/XmlSignatureProcessor.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/ed036bb3/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();