潘志宝
2024-12-31 c903e9db81839c62dc3a046cfe3434d1a58726ce
提交 | 用户 | 时间
e7c126 1 package com.iailab.framework.desensitize.core.regex.handler;
H 2
3 import com.iailab.framework.desensitize.core.regex.annotation.EmailDesensitize;
4
5 /**
6  * {@link EmailDesensitize} 的脱敏处理器
7  *
8  * @author gaibu
9  */
10 public class EmailDesensitizationHandler extends AbstractRegexDesensitizationHandler<EmailDesensitize> {
11
12     @Override
13     String getRegex(EmailDesensitize annotation) {
14         return annotation.regex();
15     }
16
17     @Override
18     String getReplacer(EmailDesensitize annotation) {
19         return annotation.replacer();
20     }
21
22 }