@Documented @Target(value=FIELD) @Retention(value=RUNTIME) public @interface Shield
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
autoFixedPart
自动头尾固定部分
|
Class<? extends ConditionProvider> |
condition
注解生效的条件
|
String |
field
该属性从哪个字段取得
|
int |
fixedHeaderSize
固定的头部字符数量
|
int |
fixedTailorSize
固定的尾部字符数量
|
String |
key
json中的key的信息
|
Builder.Mode |
mode
脱敏模型
不同的脱敏类型脱敏模型可自定义模型
|
String |
shadow
设置遮挡字符
|
Class<? extends StrategyProvider> |
strategy
脱敏策略
|
Builder.Type |
type
脱敏类型
不同的脱敏类型置换*的方式不同
|
public abstract String key
public abstract Builder.Type type
public abstract Builder.Mode mode
public abstract String field
public abstract String shadow
public abstract Class<? extends ConditionProvider> condition
public abstract Class<? extends StrategyProvider> strategy
Copyright © 2021. All rights reserved.