MCPcopy Create free account
hub / github.com/LQF-dev/smart-hr / JwtProperties

Class JwtProperties

back/src/main/java/com/smarthr/config/JwtProperties.java:13–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11import org.springframework.stereotype.Component;
12
13@Data
14@Component
15@ConfigurationProperties(prefix = "smart-hr.jwt")
16public class JwtProperties {
17
18 /**
19 * JWT 密钥
20 */
21 private String secret;
22
23 /**
24 * Token 过期时间(毫秒),默认 24 小时
25 */
26 private Long expiration = 86400000L;
27
28 /**
29 * Refresh Token 过期时间(毫秒),默认 7 天
30 */
31 private Long refreshExpiration = 604800000L;
32
33 /**
34 * Token 前缀
35 */
36 private String tokenPrefix = "Bearer ";
37
38 /**
39 * Header 名称
40 */
41 private String headerName = "Authorization";
42}
43
44

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected