yangys
2024-03-27 e48aa2ac8dea1be5db11c63edf0b912c4ad5ce65
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
package com.qianwen.core.jwt.props;
 
import com.qianwen.core.jwt.constant.JwtConstant;
import org.springframework.boot.context.properties.ConfigurationProperties;
 
@ConfigurationProperties("blade.token")
/* loaded from: blade-starter-jwt-9.3.0.0-SNAPSHOT.jar:org/springblade/core/jwt/props/JwtProperties.class */
public class JwtProperties {
    private Boolean state = Boolean.FALSE;
    private Boolean single = Boolean.FALSE;
    private String signKey = JwtConstant.DEFAULT_SECRET_KEY;
 
    public void setState(final Boolean state) {
        this.state = state;
    }
 
    public void setSingle(final Boolean single) {
        this.single = single;
    }
 
    public void setSignKey(final String signKey) {
        this.signKey = signKey;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof JwtProperties) {
            JwtProperties other = (JwtProperties) o;
            if (other.canEqual(this)) {
                Object this$state = getState();
                Object other$state = other.getState();
                if (this$state == null) {
                    if (other$state != null) {
                        return false;
                    }
                } else if (!this$state.equals(other$state)) {
                    return false;
                }
                Object this$single = getSingle();
                Object other$single = other.getSingle();
                if (this$single == null) {
                    if (other$single != null) {
                        return false;
                    }
                } else if (!this$single.equals(other$single)) {
                    return false;
                }
                Object this$signKey = getSignKey();
                Object other$signKey = other.getSignKey();
                return this$signKey == null ? other$signKey == null : this$signKey.equals(other$signKey);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof JwtProperties;
    }
 
    public int hashCode() {
        Object $state = getState();
        int result = (1 * 59) + ($state == null ? 43 : $state.hashCode());
        Object $single = getSingle();
        int result2 = (result * 59) + ($single == null ? 43 : $single.hashCode());
        Object $signKey = getSignKey();
        return (result2 * 59) + ($signKey == null ? 43 : $signKey.hashCode());
    }
 
    public String toString() {
        return "JwtProperties(state=" + getState() + ", single=" + getSingle() + ", signKey=" + getSignKey() + ")";
    }
 
    public Boolean getState() {
        return this.state;
    }
 
    public Boolean getSingle() {
        return this.single;
    }
 
    public String getSignKey() {
        if (this.signKey.length() < 32) {
            return JwtConstant.DEFAULT_SECRET_KEY;
        }
        return this.signKey;
    }
}