You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2010/03/23 00:22:24 UTC

svn commit: r926395 - /maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java

Author: brett
Date: Mon Mar 22 23:22:23 2010
New Revision: 926395

URL: http://svn.apache.org/viewvc?rev=926395&view=rev
Log:
[MPH-76] use a fixed number of asterisks to mask passwords in effective-settings

Modified:
    maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java

Modified: maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java?rev=926395&r1=926394&r2=926395&view=diff
==============================================================================
--- maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java (original)
+++ maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java Mon Mar 22 23:22:23 2010
@@ -149,7 +149,7 @@ public class EffectiveSettingsMojo
 
             if ( StringUtils.isNotEmpty( proxy.getPassword() ) )
             {
-                proxy.setPassword( StringUtils.repeat( "*", proxy.getPassword().length() ) );
+                proxy.setPassword( "***" );
             }
         }
 
@@ -159,12 +159,12 @@ public class EffectiveSettingsMojo
             // Password
             if ( StringUtils.isNotEmpty( server.getPassword() ) )
             {
-                server.setPassword( StringUtils.repeat( "*", server.getPassword().length() ) );
+                server.setPassword( "***" );
             }
             // Passphrase
             if ( StringUtils.isNotEmpty( server.getPassphrase() ) )
             {
-                server.setPassphrase( StringUtils.repeat( "*", server.getPassphrase().length() ) );
+                server.setPassphrase( "***" );
             }
         }
     }