package com.iailab.framework.desensitize.core.slider.handler;
|
|
import com.iailab.framework.desensitize.core.slider.annotation.BankCardDesensitize;
|
|
/**
|
* {@link BankCardDesensitize} 的脱敏处理器
|
*
|
* @author gaibu
|
*/
|
public class BankCardDesensitization extends AbstractSliderDesensitizationHandler<BankCardDesensitize> {
|
|
@Override
|
Integer getPrefixKeep(BankCardDesensitize annotation) {
|
return annotation.prefixKeep();
|
}
|
|
@Override
|
Integer getSuffixKeep(BankCardDesensitize annotation) {
|
return annotation.suffixKeep();
|
}
|
|
@Override
|
String getReplacer(BankCardDesensitize annotation) {
|
return annotation.replacer();
|
}
|
|
}
|