Package com.sun.logging
Class LogCleanerUtil
java.lang.Object
com.sun.logging.LogCleanerUtil
Deprecated.
This class is mostly deprecated as the logging framework must ensure proper encoding.
Util class for static methods for handling encoding of invalid string characters.
Use recommendations from Open Web Application Security Project (see here
https://owasp.org/www-community/attacks/Log_Injection)
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringencodeCharacter(int codePoint) Deprecated.static StringgetSafeHeaderValue(String headerValue) Deprecated.static StringneutralizeForLog(String message) Deprecated.static StringremoveLinearWhiteSpaces(String input) Deprecated.Remove extra white spaces in String and convert into lowercase.
-
Method Details
-
removeLinearWhiteSpaces
Deprecated.Remove extra white spaces in String and convert into lowercase.- Parameters:
input- Input String- Returns:
- string
-
getSafeHeaderValue
Deprecated. -
neutralizeForLog
Deprecated. -
encodeCharacter
Deprecated.
-