public final class Builder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Builder.Mode |
static class |
Builder.Type |
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL
全局处理
|
static String |
IN
请求解密
|
static String |
NOTHING
不做任何处理
|
static String |
OUT
响应加密
|
static String |
OVERALL
不做任何处理
|
static String |
SAFE
数据安全
|
static String |
SENS
数据脱敏
|
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
static String |
json(Object object)
返回脱敏后的对象 json
null 对象,返回字符串 "null"
|
static <T> T |
on(Object object)
脱敏对象
|
static <T> T |
on(Object object,
Annotation annotation)
脱敏对象
|
static <T> T |
on(Object object,
Annotation annotation,
boolean clone)
脱敏对象
|
static <T> T |
on(Object object,
boolean clone)
脱敏对象
|
public static final String ALL
public static final String SENS
public static final String SAFE
public static final String IN
public static final String OUT
public static final String NOTHING
public static final String OVERALL
public static <T> T on(Object object)
每次都创建一个新的对象,避免线程问题
可以使用 ThreadLocal 简单优化
T - 泛型object - 原始对象public static <T> T on(Object object, boolean clone)
每次都创建一个新的对象,避免线程问题
可以使用 ThreadLocal 简单优化
T - 泛型object - 原始对象clone - 是否克隆public static <T> T on(Object object, Annotation annotation)
每次都创建一个新的对象,避免线程问题
可以使用 ThreadLocal 简单优化
T - 泛型object - 原始对象annotation - 注解信息public static <T> T on(Object object, Annotation annotation, boolean clone)
每次都创建一个新的对象,避免线程问题
可以使用 ThreadLocal 简单优化
T - 泛型object - 原始对象annotation - 注解信息clone - 是否克隆Copyright © 2020. All rights reserved.