puzhibing
2023-08-01 98bc380ae322eaac2ee7e21d0c565e30eacce2b5
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package com.stylefeng.guns.rest.config.properties;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
/**
 * jwt相关配置
 *
 * @author fengshuonan
 * @date 2017-08-23 9:23
 */
@Configuration
@ConfigurationProperties(prefix = JwtProperties.JWT_PREFIX)
public class JwtProperties {
 
    public static final String JWT_PREFIX = "jwt";
 
    private String header = "Authorization";
 
    private String secret = "defaultSecret";
 
    private Long expiration = 604800L;
 
    private String authPath = "auth";
 
    private String md5Key = "randomKey";
 
    public static String getJwtPrefix() {
        return JWT_PREFIX;
    }
 
    public String getHeader() {
        return header;
    }
 
    public void setHeader(String header) {
        this.header = header;
    }
 
    public String getSecret() {
        return secret;
    }
 
    public void setSecret(String secret) {
        this.secret = secret;
    }
 
    public Long getExpiration() {
        return expiration;
    }
 
    public void setExpiration(Long expiration) {
        this.expiration = expiration;
    }
 
    public String getAuthPath() {
        return authPath;
    }
 
    public void setAuthPath(String authPath) {
        this.authPath = authPath;
    }
 
    public String getMd5Key() {
        return md5Key;
    }
 
    public void setMd5Key(String md5Key) {
        this.md5Key = md5Key;
    }
}