提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.framework.desensitize.core.slider.handler; |
H |
2 |
|
|
3 |
import com.iailab.framework.desensitize.core.slider.annotation.BankCardDesensitize; |
|
4 |
|
|
5 |
/** |
|
6 |
* {@link BankCardDesensitize} 的脱敏处理器 |
|
7 |
* |
|
8 |
* @author gaibu |
|
9 |
*/ |
|
10 |
public class BankCardDesensitization extends AbstractSliderDesensitizationHandler<BankCardDesensitize> { |
|
11 |
|
|
12 |
@Override |
|
13 |
Integer getPrefixKeep(BankCardDesensitize annotation) { |
|
14 |
return annotation.prefixKeep(); |
|
15 |
} |
|
16 |
|
|
17 |
@Override |
|
18 |
Integer getSuffixKeep(BankCardDesensitize annotation) { |
|
19 |
return annotation.suffixKeep(); |
|
20 |
} |
|
21 |
|
|
22 |
@Override |
|
23 |
String getReplacer(BankCardDesensitize annotation) { |
|
24 |
return annotation.replacer(); |
|
25 |
} |
|
26 |
|
|
27 |
} |