| Package | Description |
|---|---|
| org.aoju.bus.sensitive | |
| org.aoju.bus.sensitive.strategy |
| Modifier and Type | Method and Description |
|---|---|
static StrategyProvider |
Registry.require(Annotation[] annotations)
获取策略
|
static StrategyProvider |
Registry.require(Builder.Type name)
生成脱敏工具
|
static StrategyProvider |
Registry.require(Class<? extends Annotation> annotationClass)
获取对应的系统内置实现
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Registry.register(Builder.Type name,
StrategyProvider object)
注册组件
|
| Modifier and Type | Class and Description |
|---|---|
class |
AddressStrategy
收货地址脱敏处理类
地址只显示到地区,不显示详细地址;我们要对个人信息增强保护
例子:北京市海淀区****
|
class |
BandCardStrategy
银行卡号脱敏
只留前四位和后四位
6227 0383 3938 3938 393 脱敏结果: 6227 **** **** ***8 393
|
class |
BuiltInStrategy
用于标识为系统内置的注解实现方式
|
class |
CnapsStrategy
公司开户银行联号
前四位明文,后面脱敏
|
class |
DafaultStrategy
默认脱敏处理类
|
class |
EmailStrategy
邮箱脱敏策略
脱敏规则:
保留前三位,中间隐藏4位。其他正常显示
|
class |
IDCardStrategy
二代身份证号脱敏:
|
class |
MobileStrategy
手机号脱敏处理类
18233583070 脱敏后: 182****3030
|
class |
NameStrategy
中文名称脱敏策略:
|
class |
NoneStrategy
不脱敏
|
class |
PasswordStrategy
密码的脱敏策略:
直接返回 null
|
class |
PayStrategy
签约协议号脱敏方式
19031317273364059018
签约协议号脱敏格式为前6位后6位保留明文,中间脱敏
|
class |
PhoneStrategy
手机号脱敏
脱敏规则:180****1120
|
Copyright © 2019. All rights reserved.