Package net.sf.jkniv.sqlegance.logger
Class SimpleDataMasking
- java.lang.Object
-
- net.sf.jkniv.sqlegance.logger.SimpleDataMasking
-
- All Implemented Interfaces:
DataMasking
public class SimpleDataMasking extends Object implements DataMasking
Masked the attributespassword,passwdandpwdas****. To add new attributes for masking rules seeaddAttrName(String)- Since:
- 0.6.0
- Author:
- Alisson Gomes
-
-
Constructor Summary
Constructors Constructor Description SimpleDataMasking()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddAttrName(String nameAttribute)Set new attribute name to masking your value by log API.Objectmask(String attributeName, Object data)Evaluate if value of attributeName must be masked.
-
-
-
Method Detail
-
addAttrName
public static void addAttrName(String nameAttribute)
Set new attribute name to masking your value by log API.- Parameters:
nameAttribute- attribute name to mask
-
mask
public Object mask(String attributeName, Object data)
Description copied from interface:DataMaskingEvaluate if value of attributeName must be masked.- Specified by:
maskin interfaceDataMasking- Parameters:
attributeName- name of attributedata- value of attribute- Returns:
- return the same object if data doesn't be masked, and a another otherwise.
-
-