cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/5] cxf git commit: Amending backport
Date Mon, 26 Sep 2016 11:47:44 GMT
Amending backport


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/a5a36d63
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/a5a36d63
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/a5a36d63

Branch: refs/heads/3.0.x-fixes
Commit: a5a36d630073f3cb2b910304825d9e07719d5403
Parents: c2a628f
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Sep 26 12:38:55 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Sep 26 12:42:41 2016 +0100

----------------------------------------------------------------------
 .../policy/custom/AlgorithmSuiteBuilder.java        | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/a5a36d63/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/custom/AlgorithmSuiteBuilder.java
----------------------------------------------------------------------
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/custom/AlgorithmSuiteBuilder.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/custom/AlgorithmSuiteBuilder.java
index 0c7038d..e237c39 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/custom/AlgorithmSuiteBuilder.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/custom/AlgorithmSuiteBuilder.java
@@ -58,13 +58,15 @@ public class AlgorithmSuiteBuilder implements AssertionBuilder<Element>
{
         }
         AlgorithmSuite algorithmSuite = loader.getAlgorithmSuite(bus, spVersion, nestedPolicy);
         if (algorithmSuite == null || algorithmSuite.getAlgorithmSuiteType() == null) {
-            String algorithmSuiteName = null;
-            if (algorithmSuite != null) {
-                algorithmSuiteName = algorithmSuite.getFirstInvalidAlgorithmSuite();
-            }
-            if (algorithmSuiteName == null) {
-                algorithmSuiteName = DOMUtils.getFirstElement(nestedPolicyElement).getLocalName();
-            }
+            // TODO - Make available once we pick up WSS4J 2.1.8/2.0.10
+            //String algorithmSuiteName = null;
+            //if (algorithmSuite != null) {
+                //algorithmSuiteName = algorithmSuite.getFirstInvalidAlgorithmSuite();
+            //}
+            //if (algorithmSuiteName == null) {
+                //algorithmSuiteName = DOMUtils.getFirstElement(nestedPolicyElement).getLocalName();
+            //}
+            String algorithmSuiteName = DOMUtils.getFirstElement(nestedPolicyElement).getLocalName();
             throw new IllegalArgumentException(
                 "Algorithm suite \"" + algorithmSuiteName + "\" is not registered"
             );


Mime
View raw message