com.feizhaiyou.encrypt.annotation.Security 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.annotation;
import java.lang.annotation.*;
/**
* @author ls
*/
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Security {
/**
* 是否对响应加密
*
* @return
*/
boolean encrypt() default true;
/**
* 是否对请求解密
*
* @return
*/
boolean decrypt() default true;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy