commit | 9a930877a047348d82ba5b3b544ffa55af5b150f | [log] [tgz] |
---|---|---|
author | Haihong Xu <xuhaihong@apache.org> | Thu Mar 21 00:35:41 2013 +0000 |
committer | Haihong Xu <xuhaihong@apache.org> | Thu Mar 21 00:35:41 2013 +0000 |
tree | 7889c6d8f2e4314b777fe9ff2af02e742fd3f35a | |
parent | 0b01485694be1e0ce1d2f42bd7f2ec782246450b [diff] |
GERONIMO-6389 Obscuring Passwords Feature couldn't work (Patch from XieZhi) Register {Configured} prefix to EncryptionManager while starting the server. git-svn-id: https://svn.apache.org/repos/asf/geronimo/server/trunk@1459107 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/util/ConfiguredEncryption.java b/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/util/ConfiguredEncryption.java index a5f8649..45f76e7 100644 --- a/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/util/ConfiguredEncryption.java +++ b/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/util/ConfiguredEncryption.java
@@ -29,6 +29,7 @@ import org.apache.geronimo.gbean.GBeanInfoBuilder; import org.apache.geronimo.gbean.GBeanLifecycle; import org.apache.geronimo.system.serverinfo.ServerInfo; +import org.apache.geronimo.crypto.EncryptionManager; /** * Like SimpleEncryption except it uses a stored secret key. If the key file is missing, it makes up a new one. @@ -55,6 +56,7 @@ } public void doStart() throws Exception { + EncryptionManager.setEncryptionPrefix("{Configured}", ce); } public void doStop() throws Exception {