xiaoyi
2026-08-24 4e8dc8cd84e3d3d4099d9cf0ed866dbd7e8ed9aa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package cn.iocoder.yudao.framework.desensitize.core.slider.handler;
 
import cn.iocoder.yudao.framework.desensitize.core.slider.annotation.PasswordDesensitize;
 
/**
 * {@link PasswordDesensitize} 的码脱敏处理器
 *
 * @author gaibu
 */
public class PasswordDesensitization extends AbstractSliderDesensitizationHandler<PasswordDesensitize> {
    @Override
    Integer getPrefixKeep(PasswordDesensitize annotation) {
        return annotation.prefixKeep();
    }
 
    @Override
    Integer getSuffixKeep(PasswordDesensitize annotation) {
        return annotation.suffixKeep();
    }
 
    @Override
    String getReplacer(PasswordDesensitize annotation) {
        return annotation.replacer();
    }
 
}