Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

GERONIMO-6389 Obscuring Passwords Feature couldn't work (Patch from X…

…ieZhi)

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
  • Loading branch information...
commit 9a930877a047348d82ba5b3b544ffa55af5b150f 1 parent 0b01485
Haihong Xu authored
View
2  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 ConfiguredEncryption(String path, ServerInfo serverInfo) throws IOExcepti
}
public void doStart() throws Exception {
+ EncryptionManager.setEncryptionPrefix("{Configured}", ce);
}
public void doStop() throws Exception {
Please sign in to comment.
Something went wrong with that request. Please try again.