Package com.luna.common.sensitive
Class SensitiveUtil.WithoutAnnotationUtil<T>
java.lang.Object
com.luna.common.sensitive.SensitiveUtil.WithoutAnnotationUtil<T>
- Type Parameters:
T
-
- Enclosing class:
- SensitiveUtil<T>
脱敏工具类,不使用注解的方式实现
-
Method Summary
Modifier and TypeMethodDescriptionvoid
convert()
static <T> SensitiveUtil.WithoutAnnotationUtil<T>
create
(T data, Map<FieldType, FieldConfig> config, java.util.function.Function<String, FieldType> fieldTypeFunction) 生成工具类
-
Method Details
-
create
public static <T> SensitiveUtil.WithoutAnnotationUtil<T> create(T data, Map<FieldType, FieldConfig> config, java.util.function.Function<String, FieldType> fieldTypeFunction) 生成工具类- Type Parameters:
T
-- Parameters:
data
- 需要脱敏的数据config
- 脱敏开关配置- Returns:
-
convert
public void convert()
-