ludc
2023-03-16 86b6157299a50579f454e4fb45a09ff21d252dab
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package org.springblade.core.api.crypto.config;
 
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
 
/**
 * api 签名配置类
 *
 * @author licoy.cn, L.cm
 */
@Getter
@Setter
@ConfigurationProperties(ApiCryptoProperties.PREFIX)
public class ApiCryptoProperties {
    /**
     * 前缀
     */
    public static final String PREFIX = "blade.api.crypto";
 
    /**
     * 是否开启 api 签名
     */
    private Boolean enabled = Boolean.TRUE;
 
    /**
     * url的参数签名,传递的参数名。例如:/user?data=签名后的数据
     */
    private String paramName = "data";
 
    /**
     * aes 密钥
     */
    private String aesKey;
 
    /**
     * des 密钥
     */
    private String desKey;
 
    /**
     * rsa 私钥
     */
    private String rsaPrivateKey;
 
}