Package org.hawaiiframework.logging.util
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
- Author:
- Rutger Lubbers
-
-
Constructor Summary
Constructors Constructor Description PasswordMaskerUtil(Collection<String> fieldsToMask)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
maskPasswordsIn(String input)
Mask the password with***
in theinput
.
-
-
-
Constructor Detail
-
PasswordMaskerUtil
public PasswordMaskerUtil(Collection<String> fieldsToMask)
The constructor.- Parameters:
fieldsToMask
- The list of fields to mask.
-
-