cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1412853 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/AlgorithmSuite.java
Date Fri, 23 Nov 2012 12:23:54 GMT
Author: coheigea
Date: Fri Nov 23 12:23:53 2012
New Revision: 1412853

URL: http://svn.apache.org/viewvc?rev=1412853&view=rev
Log:
Log a warning if an RSA 1.5 AlgorithmSuite is used.

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/AlgorithmSuite.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/AlgorithmSuite.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/AlgorithmSuite.java?rev=1412853&r1=1412852&r2=1412853&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/AlgorithmSuite.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/model/AlgorithmSuite.java
Fri Nov 23 12:23:53 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