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

com.github.houbb.sensitive.annotation.metadata.SensitiveStrategy Maven / Gradle / Ivy

There is a newer version: 1.7.0
Show newest version
package com.github.houbb.sensitive.annotation.metadata;

import com.github.houbb.sensitive.api.IStrategy;

import java.lang.annotation.*;

/**
 * 用于自定义 sensitive 脱敏策略注解
 * 1. 自定义的策略默认生效。
 * 2. 如果有多个 condition, 则优先执行一次满足条件的策略。
 *
 * @since 0.0.4
 * @author binbin.hou
 * date 2019/1/9
 */
@Inherited
@Documented
@Target(ElementType.ANNOTATION_TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface SensitiveStrategy {

    /**
     * 自定义脱敏的策略实现
     * @return 策略实现类信息
     */
    Class value();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy