Class LogSanitizer

java.lang.Object
com.nimbusds.common.log.LogSanitizer

public class LogSanitizer extends Object
Log sanitiser utility.
  • Constructor Details

  • Method Details

    • sanitize

      public static String sanitize(com.nimbusds.oauth2.sdk.id.Identifier identifier)
      Sanitizes an identifier.
      Parameters:
      identifier - The identifier, may be null.
      Returns:
      The sanitized identifier string, trimmed to 30 chars, null if none.
    • sanitize

      public static String sanitize(com.nimbusds.oauth2.sdk.id.Identifier identifier, int maxLength)
      Sanitizes an identifier.
      Parameters:
      identifier - The identifier, may be null.
      maxLength - The max length of the output.
      Returns:
      The sanitized identifier string, trimmed to 30 chars, null if none.
    • sanitize

      public static String sanitize(String string, int maxLength)
      Sanitizes a string.
      Parameters:
      string - The string, may be null.
      maxLength - The max length of the output.
      Returns:
      The sanitized string, trimmed to 30 chars, null if none.