spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Sanitizer.java
/**
	 * Sanitize the given value if necessary.
	 * @param key the key to sanitize
	 * @param value the value
	 * @return the potentially sanitized value
	 */
Sanitize the given value if necessary.
@param key the key to sanitize
@param value the value
@return the potentially sanitized value
Sanitize the given value if necessary . @param key the key to sanitize @param value the value @return the potentially sanitized value
public Object sanitize(String key, Object value) {
		if (value == null) {
			return null;
		}
		for (Pattern pattern : this.keysToSanitize) {
			if (pattern.matcher(key).matches()) {
				if (keyIsUriWithUserInfo(pattern)) {
					return sanitizeUris(value.toString());
				}
				return "******";
			}
		}
		return value;
	}
public Object sanitize ( String key , Object value ) { if ( value == null ) { return null ; } for ( Pattern pattern : this . keysToSanitize ) { if ( pattern . matcher ( key ) . matches ( ) ) { if ( keyIsUriWithUserInfo ( pattern ) ) { return sanitizeUris ( value . toString ( ) ) ; } return "******" ; } } return value ; }
Sanitize the given value if necessary.
Sanitize the given value if necessary .