Package com.nimbusds.common.log
Class LogSanitizer
java.lang.Object
com.nimbusds.common.log.LogSanitizer
Log sanitiser utility.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
LogSanitizer
public LogSanitizer()
-
-
Method Details
-
sanitize
Sanitizes an identifier.- Parameters:
identifier
- The identifier, may benull
.- Returns:
- The sanitized identifier string, trimmed to 30 chars,
null
if none.
-
sanitize
Sanitizes an identifier.- Parameters:
identifier
- The identifier, may benull
.maxLength
- The max length of the output.- Returns:
- The sanitized identifier string, trimmed to 30 chars,
null
if none.
-
sanitize
Sanitizes a string.- Parameters:
string
- The string, may benull
.maxLength
- The max length of the output.- Returns:
- The sanitized string, trimmed to 30 chars,
null
if none.
-