xiejun
2024-11-01 80b6cbfc9c861469146318d0b3dd5f8b8b525b8a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package org.springblade.core.api.crypto.annotation.decrypt;
 
import org.springblade.core.api.crypto.enums.CryptoType;
 
import java.lang.annotation.*;
 
/**
 * <p>解密含有{@link org.springframework.web.bind.annotation.RequestBody}注解的参数请求数据,可用于整个控制类或者某个控制器上</p>
 *
 * @author licoy.cn, L.cm
 */
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface ApiDecrypt {
 
    /**
     * 解密类型
     *
     * @return 类型
     */
    CryptoType value();
 
    /**
     * 私钥,用于某些需要单独配置私钥的方法,没有时读取全局配置的私钥
     *
     * @return 私钥
     */
    String secretKey() default "";
 
}