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();
|
}
|
|
}
|