Package org.hawaiiframework.logging.util
Class JsonPasswordMasker
java.lang.Object
org.hawaiiframework.logging.util.JsonPasswordMasker
- All Implemented Interfaces:
PasswordMasker
Masks passwords in a json key value.
- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(MaskedPasswordBuilder builder) Check if the builder matches the pattern could be masked.
-
Constructor Details
-
JsonPasswordMasker
public JsonPasswordMasker()
-
-
Method Details
-
matches
Description copied from interface:PasswordMaskerCheck if the builder matches the pattern could be masked.- Specified by:
matchesin interfacePasswordMasker- Parameters:
builder- a "string builder" that builds a string without the password fields.- Returns:
- whether some masking has been done.
-