[jboss-cvs] JBossAS SVN: r79319 - trunk/system-jmx/src/main/org/jboss/system.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 9 20:38:36 EDT 2008
Author: mmoyses
Date: 2008-10-09 20:38:36 -0400 (Thu, 09 Oct 2008)
New Revision: 79319
Modified:
trunk/system-jmx/src/main/org/jboss/system/ServiceConfigurator.java
Log:
JBAS-5978: mask passwords
Modified: trunk/system-jmx/src/main/org/jboss/system/ServiceConfigurator.java
===================================================================
--- trunk/system-jmx/src/main/org/jboss/system/ServiceConfigurator.java 2008-10-10 00:23:28 UTC (rev 79318)
+++ trunk/system-jmx/src/main/org/jboss/system/ServiceConfigurator.java 2008-10-10 00:38:36 UTC (rev 79319)
@@ -141,7 +141,13 @@
}
try
{
- log.debug(attributeName + " set to " + value + " in " + objectName);
+ if (log.isDebugEnabled())
+ {
+ Object outputValue = value;
+ if (attributeName.toLowerCase().indexOf("password") != -1)
+ outputValue = "****";
+ log.debug(attributeName + " set to " + outputValue + " in " + objectName);
+ }
server.setAttribute(objectName, new Attribute(attributeName, value));
}
catch (Throwable t)
More information about the jboss-cvs-commits
mailing list