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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
package cn.wisenergy.chnmuseum.party.conf;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties
public class JwtConfig {
private Jwt jwt = new Jwt();
public Jwt getJwt() {
return jwt;
}
public void setJwt(Jwt jwt) {
this.jwt = jwt;
}
public static class Jwt {
private String header;
private String secret;
private Long expiration;
private String issuer;
private String authenticationPath;
private String exceptAuthcPath;
private String authTokenPrefix;
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 getIssuer() {
return issuer;
}
public void setIssuer(String issuer) {
this.issuer = issuer;
}
public String getAuthenticationPath() {
return authenticationPath;
}
public void setAuthenticationPath(String authenticationPath) {
this.authenticationPath = authenticationPath;
}
public String getExceptAuthcPath() {
return exceptAuthcPath;
}
public void setExceptAuthcPath(String exceptAuthcPath) {
this.exceptAuthcPath = exceptAuthcPath;
}
public String getAuthTokenPrefix() {
return authTokenPrefix;
}
public void setAuthTokenPrefix(String authTokenPrefix) {
this.authTokenPrefix = authTokenPrefix;
}
}
}