org.jenkinsci.plugins.buildenvironment.actions.utils
Class Utils

java.lang.Object
  extended by org.jenkinsci.plugins.buildenvironment.actions.utils.Utils

public final class Utils
extends Object

Utility class, contains some help methods and additional functionality.

Author:
yboev

Constructor Summary
Utils()
           
 
Method Summary
static Map<String,String> filterMap(Map<String,String> map, List<String> stringList)
          Filters the map according to what getPasswordRestrictionPatterns returns.
static List<String> getPasswordRestrictionPatterns()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

filterMap

public static Map<String,String> filterMap(Map<String,String> map,
                                           List<String> stringList)
Filters the map according to what getPasswordRestrictionPatterns returns. Made in order to hide passwords or secret phrases used during the build.

Parameters:
map - the map being filtered.
stringList - a list of strings that represent restrictions.
Returns:
the filtered map, not containing entries that match one of the restriction Strings.

getPasswordRestrictionPatterns

public static List<String> getPasswordRestrictionPatterns()


Copyright © 2004-2013. All Rights Reserved.