![JAR search and dependency download from the Maven repository](/logo.png)
org.cloudfoundry.identity.uaa.logging.LogSanitizerUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudfoundry-identity-server Show documentation
Show all versions of cloudfoundry-identity-server Show documentation
Cloud Foundry User Account and Authentication
The newest version!
package org.cloudfoundry.identity.uaa.logging;
public class LogSanitizerUtil {
public static final String SANITIZED_FLAG = "[SANITIZED]";
public static String sanitize(String original) {
String cleaned = original.replace("\r","|")
.replace("\n","|")
.replace("\t","|");
if (!cleaned.equals(original)) {
cleaned += SANITIZED_FLAG;
}
return cleaned;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy