geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwo...@apache.org
Subject svn commit: r1022363 - /geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/annotation/EncryptionSetting.java
Date Thu, 14 Oct 2010 02:37:27 GMT
Author: rwonly
Date: Thu Oct 14 02:37:27 2010
New Revision: 1022363

URL: http://svn.apache.org/viewvc?rev=1022363&view=rev
Log:
GERONIMO-5401 Geronimo encrypts empty passwords

Modified:
    geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/annotation/EncryptionSetting.java

Modified: geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/annotation/EncryptionSetting.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/annotation/EncryptionSetting.java?rev=1022363&r1=1022362&r2=1022363&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/annotation/EncryptionSetting.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/annotation/EncryptionSetting.java
Thu Oct 14 02:37:27 2010
@@ -25,6 +25,7 @@ public enum EncryptionSetting {
     ENCRYPTED {
         public Object encrypt(Object plaintext) {
             if (plaintext == null) return null;
+            if (plaintext.equals("")) return "";
             return EncryptionManager.encrypt((String)plaintext);
         }
         public Object decrypt(Object encrypted) {



Mime
View raw message