camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject git commit: CAMEL-6881 The XmlSignatureProcessor should support other SecurityProvider
Date Tue, 22 Oct 2013 09:56:05 GMT
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 <ningjiang@apache.org>
Authored: Tue Oct 22 17:53:09 2013 +0800
Committer: Willem Jiang <ningjiang@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();


Mime
View raw message