package com.qianwen.core.secure.props;
|
|
import java.util.ArrayList;
|
import java.util.List;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
@ConfigurationProperties("blade.secure")
|
/* loaded from: blade-core-secure-9.3.0.0-SNAPSHOT.jar:org/springblade/core/secure/props/BladeSecureProperties.class */
|
public class BladeSecureProperties {
|
private Boolean enabled = false;
|
private final List<String> skipUrl = new ArrayList();
|
private Boolean authEnabled = true;
|
private final List<AuthSecure> auth = new ArrayList();
|
private Boolean basicEnabled = true;
|
private final List<BasicSecure> basic = new ArrayList();
|
private Boolean signEnabled = true;
|
private final List<SignSecure> sign = new ArrayList();
|
private Boolean clientEnabled = true;
|
private final List<ClientSecure> client = new ArrayList();
|
|
public void setEnabled(final Boolean enabled) {
|
this.enabled = enabled;
|
}
|
|
public void setAuthEnabled(final Boolean authEnabled) {
|
this.authEnabled = authEnabled;
|
}
|
|
public void setBasicEnabled(final Boolean basicEnabled) {
|
this.basicEnabled = basicEnabled;
|
}
|
|
public void setSignEnabled(final Boolean signEnabled) {
|
this.signEnabled = signEnabled;
|
}
|
|
public void setClientEnabled(final Boolean clientEnabled) {
|
this.clientEnabled = clientEnabled;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof BladeSecureProperties) {
|
BladeSecureProperties other = (BladeSecureProperties) o;
|
if (other.canEqual(this)) {
|
Object this$enabled = getEnabled();
|
Object other$enabled = other.getEnabled();
|
if (this$enabled == null) {
|
if (other$enabled != null) {
|
return false;
|
}
|
} else if (!this$enabled.equals(other$enabled)) {
|
return false;
|
}
|
Object this$authEnabled = getAuthEnabled();
|
Object other$authEnabled = other.getAuthEnabled();
|
if (this$authEnabled == null) {
|
if (other$authEnabled != null) {
|
return false;
|
}
|
} else if (!this$authEnabled.equals(other$authEnabled)) {
|
return false;
|
}
|
Object this$basicEnabled = getBasicEnabled();
|
Object other$basicEnabled = other.getBasicEnabled();
|
if (this$basicEnabled == null) {
|
if (other$basicEnabled != null) {
|
return false;
|
}
|
} else if (!this$basicEnabled.equals(other$basicEnabled)) {
|
return false;
|
}
|
Object this$signEnabled = getSignEnabled();
|
Object other$signEnabled = other.getSignEnabled();
|
if (this$signEnabled == null) {
|
if (other$signEnabled != null) {
|
return false;
|
}
|
} else if (!this$signEnabled.equals(other$signEnabled)) {
|
return false;
|
}
|
Object this$clientEnabled = getClientEnabled();
|
Object other$clientEnabled = other.getClientEnabled();
|
if (this$clientEnabled == null) {
|
if (other$clientEnabled != null) {
|
return false;
|
}
|
} else if (!this$clientEnabled.equals(other$clientEnabled)) {
|
return false;
|
}
|
Object this$skipUrl = getSkipUrl();
|
Object other$skipUrl = other.getSkipUrl();
|
if (this$skipUrl == null) {
|
if (other$skipUrl != null) {
|
return false;
|
}
|
} else if (!this$skipUrl.equals(other$skipUrl)) {
|
return false;
|
}
|
Object this$auth = getAuth();
|
Object other$auth = other.getAuth();
|
if (this$auth == null) {
|
if (other$auth != null) {
|
return false;
|
}
|
} else if (!this$auth.equals(other$auth)) {
|
return false;
|
}
|
Object this$basic = getBasic();
|
Object other$basic = other.getBasic();
|
if (this$basic == null) {
|
if (other$basic != null) {
|
return false;
|
}
|
} else if (!this$basic.equals(other$basic)) {
|
return false;
|
}
|
Object this$sign = getSign();
|
Object other$sign = other.getSign();
|
if (this$sign == null) {
|
if (other$sign != null) {
|
return false;
|
}
|
} else if (!this$sign.equals(other$sign)) {
|
return false;
|
}
|
Object this$client = getClient();
|
Object other$client = other.getClient();
|
return this$client == null ? other$client == null : this$client.equals(other$client);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof BladeSecureProperties;
|
}
|
|
public int hashCode() {
|
Object $enabled = getEnabled();
|
int result = (1 * 59) + ($enabled == null ? 43 : $enabled.hashCode());
|
Object $authEnabled = getAuthEnabled();
|
int result2 = (result * 59) + ($authEnabled == null ? 43 : $authEnabled.hashCode());
|
Object $basicEnabled = getBasicEnabled();
|
int result3 = (result2 * 59) + ($basicEnabled == null ? 43 : $basicEnabled.hashCode());
|
Object $signEnabled = getSignEnabled();
|
int result4 = (result3 * 59) + ($signEnabled == null ? 43 : $signEnabled.hashCode());
|
Object $clientEnabled = getClientEnabled();
|
int result5 = (result4 * 59) + ($clientEnabled == null ? 43 : $clientEnabled.hashCode());
|
Object $skipUrl = getSkipUrl();
|
int result6 = (result5 * 59) + ($skipUrl == null ? 43 : $skipUrl.hashCode());
|
Object $auth = getAuth();
|
int result7 = (result6 * 59) + ($auth == null ? 43 : $auth.hashCode());
|
Object $basic = getBasic();
|
int result8 = (result7 * 59) + ($basic == null ? 43 : $basic.hashCode());
|
Object $sign = getSign();
|
int result9 = (result8 * 59) + ($sign == null ? 43 : $sign.hashCode());
|
Object $client = getClient();
|
return (result9 * 59) + ($client == null ? 43 : $client.hashCode());
|
}
|
|
public String toString() {
|
return "BladeSecureProperties(enabled=" + getEnabled() + ", skipUrl=" + getSkipUrl() + ", authEnabled=" + getAuthEnabled() + ", auth=" + getAuth() + ", basicEnabled=" + getBasicEnabled() + ", basic=" + getBasic() + ", signEnabled=" + getSignEnabled() + ", sign=" + getSign() + ", clientEnabled=" + getClientEnabled() + ", client=" + getClient() + ")";
|
}
|
|
public Boolean getEnabled() {
|
return this.enabled;
|
}
|
|
public List<String> getSkipUrl() {
|
return this.skipUrl;
|
}
|
|
public Boolean getAuthEnabled() {
|
return this.authEnabled;
|
}
|
|
public List<AuthSecure> getAuth() {
|
return this.auth;
|
}
|
|
public Boolean getBasicEnabled() {
|
return this.basicEnabled;
|
}
|
|
public List<BasicSecure> getBasic() {
|
return this.basic;
|
}
|
|
public Boolean getSignEnabled() {
|
return this.signEnabled;
|
}
|
|
public List<SignSecure> getSign() {
|
return this.sign;
|
}
|
|
public Boolean getClientEnabled() {
|
return this.clientEnabled;
|
}
|
|
public List<ClientSecure> getClient() {
|
return this.client;
|
}
|
}
|