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

fun.bigtable.kraken.annotation.EncryptMethod Maven / Gradle / Ivy

There is a newer version: 2.0.9.1
Show newest version
package fun.bigtable.kraken.annotation;

import fun.bigtable.kraken.constant.SensitiveTypeEnum;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

import java.lang.annotation.*;

/**
 * 安全字段注解
 * 加在需要加密/解密的方法上
 * 实现自动加密解密
 */
@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Order(Ordered.HIGHEST_PRECEDENCE)
public @interface EncryptMethod {

    SensitiveTypeEnum type() default SensitiveTypeEnum.MOBILE_PHONE;

    String[] field() default {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy