All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.feizhaiyou.encrypt.annotation.Sensitive Maven / Gradle / Ivy

Go to download

整合SpringBoot可对Web项目的HTTP接口参数进行脱敏与加解密,通过注解的方式直接使用加解密,支持AES、RSA,可自定义脱敏与加解密配置。

The newest version!
package com.feizhaiyou.encrypt.annotation;

import com.feizhaiyou.encrypt.constants.SensitiveType;

import java.lang.annotation.*;

/**
 * @author ls
 */
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Sensitive {

    /**
     * 脱敏数据类型
     *
     * @return
     */
    String type() default SensitiveType.DEFAULT;

    /**
     * 是否脱敏
     *
     * @return
     */
    boolean required() default true;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy