feature(all): 服务增加配置文件信息加密

This commit is contained in:
2023-07-04 14:16:03 +08:00
parent 1ce0b74e2d
commit 740a9aea45
17 changed files with 166 additions and 42 deletions

View File

@@ -17,6 +17,7 @@ public class RuntimeInfo {
private String zkUrl;
private String eurekaUrl;
private HudiInfo hudi;
private SecurityInfo security;
public String getUser() {
return user;
@@ -98,6 +99,14 @@ public class RuntimeInfo {
this.hudi = hudi;
}
public SecurityInfo getSecurity() {
return security;
}
public void setSecurity(SecurityInfo security) {
this.security = security;
}
@Override
public String toString() {
return "RuntimeInfo{" +
@@ -111,6 +120,7 @@ public class RuntimeInfo {
", zkUrl='" + zkUrl + '\'' +
", eurekaUrl='" + eurekaUrl + '\'' +
", hudi=" + hudi +
", security=" + security +
'}';
}
@@ -152,4 +162,43 @@ public class RuntimeInfo {
'}';
}
}
public static final class SecurityInfo {
private String authority;
private String username;
private String darkcode;
public String getAuthority() {
return authority;
}
public void setAuthority(String authority) {
this.authority = authority;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getDarkcode() {
return darkcode;
}
public void setDarkcode(String darkcode) {
this.darkcode = darkcode;
}
@Override
public String toString() {
return "SecurityInfo{" +
"authority='" + authority + '\'' +
", username='" + username + '\'' +
", darkcode='" + darkcode + '\'' +
'}';
}
}
}