public class LogInputSanitizer extends Object
LogInputSanitizer sanitizer = new LogInputSanitizer();
logger.info(sanitizer.sanitizeAndMark("My log entry."));
Constructor and Description |
---|
LogInputSanitizer()
Returns a new instance of the LogInputSanitizer.
|
LogInputSanitizer(String endOfLogToken)
Returns a new instance of the LogInputSanitizer.
|
Modifier and Type | Method and Description |
---|---|
String |
getEndOfLogToken() |
String |
sanitizeAndMark(String input)
Takes an input string, checks it for forging and marks the string accordingly.
|
public LogInputSanitizer()
@Nullable public String sanitizeAndMark(@Nullable String input)
input
- The input string to be logged.public String getEndOfLogToken()
Copyright © 2018 SAP SE. All rights reserved.