forked from kidgrow-microservices-platform

bingbing
2020-11-18 ba2d8fdc04d32bd18552c124338520afad4db508
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
94
95
package com.kidgrow.zuul.config;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
 
import java.util.Set;
 
/**
 * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
 *
 * @Description: <br>
 * @Project: <br>
 * @CreateDate: Created in 2020/2/4 14:49 <br>
 * @Author: <a href="4345453@kidgrow.com">liuke</a>
 */
@ConfigurationProperties(prefix = "kidgrow.api")
public class ApiProperties {
    /**
     * 是否开启签名验证
     */
    private Boolean checkSign = true;
    /**
     * 是否开启动态访问控制
     */
    private Boolean accessControl = true;
 
    /**
     * 是否开启接口调试
     */
    private Boolean apiDebug = false;
 
    /**
     * 始终放行
     */
    private Set<String> permitAll;
 
    /**
     * 无需鉴权的请求
     */
    private Set<String> authorityIgnores;
 
    /**
     * 签名忽略请求
     */
    private Set<String> signIgnores;
 
 
    public Boolean getCheckSign() {
        return checkSign;
    }
 
    public void setCheckSign(Boolean checkSign) {
        this.checkSign = checkSign;
    }
 
    public Boolean getAccessControl() {
        return accessControl;
    }
 
    public void setAccessControl(Boolean accessControl) {
        this.accessControl = accessControl;
    }
 
    public Set<String> getPermitAll() {
        return permitAll;
    }
 
    public void setPermitAll(Set<String> permitAll) {
        this.permitAll = permitAll;
    }
 
    public Set<String> getAuthorityIgnores() {
        return authorityIgnores;
    }
 
    public void setAuthorityIgnores(Set<String> authorityIgnores) {
        this.authorityIgnores = authorityIgnores;
    }
 
    public Boolean getApiDebug() {
        return apiDebug;
    }
 
    public void setApiDebug(Boolean apiDebug) {
        this.apiDebug = apiDebug;
    }
 
    public Set<String> getSignIgnores() {
        return signIgnores;
    }
 
    public void setSignIgnores(Set<String> signIgnores) {
        this.signIgnores = signIgnores;
    }
 
}