add 新增 更多脱敏策略
This commit is contained in:
parent
857a0b1006
commit
08fece39d8
@ -37,7 +37,52 @@ public enum SensitiveStrategy {
|
|||||||
/**
|
/**
|
||||||
* 银行卡
|
* 银行卡
|
||||||
*/
|
*/
|
||||||
BANK_CARD(DesensitizedUtil::bankCard);
|
BANK_CARD(DesensitizedUtil::bankCard),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 中文名
|
||||||
|
*/
|
||||||
|
CHINESE_NAME(DesensitizedUtil::chineseName),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 固定电话
|
||||||
|
*/
|
||||||
|
FIXED_PHONE(DesensitizedUtil::fixedPhone),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户ID
|
||||||
|
*/
|
||||||
|
user_ID(s -> String.valueOf(DesensitizedUtil.userId())),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ipv4
|
||||||
|
*/
|
||||||
|
IPV4(DesensitizedUtil::ipv4),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ipv6
|
||||||
|
*/
|
||||||
|
IPV6(DesensitizedUtil::ipv6),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 中国大陆车牌,包含普通车辆、新能源车辆
|
||||||
|
*/
|
||||||
|
CAR_LICENSE(DesensitizedUtil::carLicense),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 只显示第一个字符
|
||||||
|
*/
|
||||||
|
FIRST_MASK(DesensitizedUtil::firstMask),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 清空为null
|
||||||
|
*/
|
||||||
|
CLEAR(s -> DesensitizedUtil.clear()),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 清空为""
|
||||||
|
*/
|
||||||
|
CLEAR_TO_NULL(s -> DesensitizedUtil.clearToNull());
|
||||||
|
|
||||||
//可自行添加其他脱敏策略
|
//可自行添加其他脱敏策略
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user