提交 | 用户 | 时间 | ||
e7c126 | 1 | package com.iailab.framework.desensitize.core.base.handler; |
H | 2 | |
3 | import java.lang.annotation.Annotation; | |
4 | ||
5 | /** | |
6 | * 脱敏处理器接口 | |
7 | * | |
8 | * @author gaibu | |
9 | */ | |
10 | public interface DesensitizationHandler<T extends Annotation> { | |
11 | ||
12 | /** | |
13 | * 脱敏 | |
14 | * | |
15 | * @param origin 原始字符串 | |
16 | * @param annotation 注解信息 | |
17 | * @return 脱敏后的字符串 | |
18 | */ | |
19 | String desensitize(String origin, T annotation); | |
20 | ||
21 | } |