Class 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
    Author:
    Rutger Lubbers
    • Constructor Detail

      • PasswordMaskerUtil

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

      • maskPasswordsIn

        public String maskPasswordsIn​(String input)
        Mask the password with *** in the input.