Class PasswordMaskerUtil

java.lang.Object
org.hawaiiframework.logging.util.PasswordMaskerUtil

public class PasswordMaskerUtil extends Object
Class the mask passwords in a string, so log files will not contain plain text (or encrypted) passwords.
Since:
2.0.0
  • Constructor Details

    • PasswordMaskerUtil

      public PasswordMaskerUtil(Collection<String> fieldsToMask)
      The constructor.
      Parameters:
      fieldsToMask - The list of fields to mask.
  • Method Details

    • maskPasswordsIn

      public String maskPasswordsIn(String input)
      Mask the password with *** in the input.
      Parameters:
      input - the input to mask passwords in.
      Returns:
      The masked result.