com.feizhaiyou.encrypt.handler.SensitiveHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of encrypt-spring-boot-starter Show documentation
Show all versions of encrypt-spring-boot-starter Show documentation
整合SpringBoot可对Web项目的HTTP接口参数进行脱敏与加解密,通过注解的方式直接使用加解密,支持AES、RSA,可自定义脱敏与加解密配置。
The newest version!
package com.feizhaiyou.encrypt.handler;
import java.lang.annotation.Annotation;
/**
* @author ls
* @since 2023-07-27
*/
public interface SensitiveHandler {
/**
* 返回字段注解
*
* @return
*/
A acquire(Annotation[] annotations);
/**
* 脱敏
*
* @param source
* @param annotation
* @return
*/
String format(String source, A annotation);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy