@Test void hidingWithStars() { Obfuscate.secureLogs = "STARS"; assertThat(Obfuscate.secure(TEST_STRING)).isEqualTo("/p****le"); }
public static String secure(String value, String delim) { if (null == value) { return null; } return Stream.of(value.split("/", -1)) .map(it -> it.isEmpty() ? it : secure(it)) .collect(Collectors.joining(delim)); }
Obfuscate { public static String secure(String value, String delim) { if (null == value) { return null; } return Stream.of(value.split("/", -1)) .map(it -> it.isEmpty() ? it : secure(it)) .collect(Collectors.joining(delim)); } }
Obfuscate { public static String secure(String value, String delim) { if (null == value) { return null; } return Stream.of(value.split("/", -1)) .map(it -> it.isEmpty() ? it : secure(it)) .collect(Collectors.joining(delim)); }  }
Obfuscate { public static String secure(String value, String delim) { if (null == value) { return null; } return Stream.of(value.split("/", -1)) .map(it -> it.isEmpty() ? it : secure(it)) .collect(Collectors.joining(delim)); }  static String secure(String value, String delim); static String secure(String value); static String secureSensitiveChar(char[] value); static String secureSensitive(String value); }
Obfuscate { public static String secure(String value, String delim) { if (null == value) { return null; } return Stream.of(value.split("/", -1)) .map(it -> it.isEmpty() ? it : secure(it)) .collect(Collectors.joining(delim)); }  static String secure(String value, String delim); static String secure(String value); static String secureSensitiveChar(char[] value); static String secureSensitive(String value);  }