Newer
Older
newfiber-termite / newfiber-common / newfiber-common-sensitive / src / main / java / com / newfiber / common / sensitive / annotation / SensitivePassword.java
@yanghui yanghui on 11 May 612 bytes 白蚁项目初版代码提交
package com.newfiber.common.sensitive.annotation;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 密码脱敏
 * @author yhq
 * @date 2021年9月7日 08点51分
 **/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@SensitiveInfo(strategy = com.newfiber.common.sensitive.strategy.SensitivePassword.class,pattern = "(?<=).",replaceChar = "*")
@JacksonAnnotationsInside
public @interface SensitivePassword {

}