cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1412924 - /cxf/branches/2.6.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/AlgorithmSuite.java
Date Fri, 23 Nov 2012 15:56:34 GMT
Author: coheigea
Date: Fri Nov 23 15:56:33 2012
New Revision: 1412924

URL: http://svn.apache.org/viewvc?rev=1412924&view=rev
Log:
Merged revisions 1412853 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1412853 | coheigea | 2012-11-23 12:23:53 +0000 (Fri, 23 Nov 2012) | 2 lines

  Log a warning if an RSA 1.5 AlgorithmSuite is used.

........

Modified:
    cxf/branches/2.6.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/AlgorithmSuite.java

Modified: cxf/branches/2.6.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/AlgorithmSuite.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/AlgorithmSuite.java?rev=1412924&r1=1412923&r2=1412924&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/AlgorithmSuite.java
(original)
+++ cxf/branches/2.6.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/AlgorithmSuite.java
Fri Nov 23 15:56:33 2012
@@ -347,6 +347,15 @@ public class AlgorithmSuite extends Abst
     public void setAlgorithmSuite(String algoSuite) throws WSSPolicyException {
         setAlgoSuiteString(algoSuite);
         this.algoSuiteString = algoSuite;
+        
+        if (algoSuiteString != null && algoSuiteString.endsWith("Rsa15")) {
+            int index = algoSuiteString.indexOf("Rsa15");
+            LOG.warning(
+                "An Rsa15 AlgorithmSuite - " + algoSuiteString + " - has been configured,
"
+                + "which is not recommended. Please consider using "
+                + algoSuiteString.substring(0, index) + " instead."
+            );
+        }
 
         // TODO: Optimize this :-)
         if (SPConstants.ALGO_SUITE_BASIC256.equals(algoSuite)) {



Mime
View raw message