潘志宝
5 天以前 b131f033c12459b718565cab504f762c25642d2d
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
package com.iailab.framework.desensitize.core.slider.handler;
 
import com.iailab.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();
    }
}