Class FieldValueMasker
java.lang.Object
com.kingsrook.qqq.backend.core.actions.permissions.fieldaccess.FieldValueMasker
Masks values of fields whose exposure is MASKED:
- email addresses keep their first character and their domain (j***@example.com)
- numbers, and strings of digits (and separators), keep their last 4 digits (***1234)
- other strings keep their first and last character (a***z), or are fully
masked (***) when 4 or fewer characters long.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringmask(String value, QFieldType type, FieldMaskStyle style) Mask a value (of a field of the given type - which may be null).
-
Field Details
-
MASK
- See Also:
-
-
Constructor Details
-
FieldValueMasker
public FieldValueMasker()
-
-
Method Details
-
mask
Mask a value (of a field of the given type - which may be null).
-