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