com.yanyun.auth.config.AuthProperties Maven / Gradle / Ivy
package com.yanyun.auth.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "authentication")
public class AuthProperties {
private String clientId;
private String signingKey;
private String authUrl;
private String clientSecret;
private boolean enable;
public String getAuthUrl() {
return authUrl;
}
public void setAuthUrl(String authUrl) {
this.authUrl = authUrl;
}
public String getClientId() {
return clientId;
}
public void setClientId(String clientId) {
this.clientId = clientId;
}
public String getSigningKey() {
return signingKey;
}
public void setSigningKey(String signingKey) {
this.signingKey = signingKey;
}
public String getClientSecret() {
return clientSecret;
}
public void setClientSecret(String clientSecret) {
this.clientSecret = clientSecret;
}
public boolean isEnable() {
return enable;
}
public void setEnable(boolean enable) {
this.enable = enable;
}
@Override
public String toString() {
return "AuthProperties{" +
"clientId='" + clientId + '\'' +
", signingKey='" + signingKey + '\'' +
", authUrl='" + authUrl + '\'' +
", clientSecret='" + clientSecret + '\'' +
", enable=" + enable +
'}';
}
}