com.taotao.boot.sensitive.houbb.annotation.metadata.SensitiveStrategy Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2020-2030, Shuigedeng ([email protected] & https://blog.taotaocloud.top/).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.taotao.boot.sensitive.houbb.annotation.metadata;
import com.taotao.boot.sensitive.houbb.api.IStrategy;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/** 用于自定义 sensitive 脱敏策略注解 1. 自定义的策略默认生效。 2. 如果有多个 condition, 则优先执行一次满足条件的策略。 */
@Inherited
@Documented
@Target(ElementType.ANNOTATION_TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface SensitiveStrategy {
/**
* 自定义脱敏的策略实现
*
* @return 策略实现类信息
*/
Class extends IStrategy> value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy