|
|
@ -54,7 +54,7 @@ public class RemoteDesignerWorkspaceInfo implements DesignerWorkspaceInfo { |
|
|
|
String url = reader.getAttrAsString("url", StringUtils.EMPTY); |
|
|
|
String url = reader.getAttrAsString("url", StringUtils.EMPTY); |
|
|
|
String username = reader.getAttrAsString("username", StringUtils.EMPTY); |
|
|
|
String username = reader.getAttrAsString("username", StringUtils.EMPTY); |
|
|
|
//密码解密
|
|
|
|
//密码解密
|
|
|
|
String password = SecurityToolbox.decrypt(reader.getAttrAsString("password", StringUtils.EMPTY)); |
|
|
|
String password = SecurityToolbox.defaultDecrypt(reader.getAttrAsString("password", StringUtils.EMPTY)); |
|
|
|
this.connection = new WorkspaceConnection(url, username, password); |
|
|
|
this.connection = new WorkspaceConnection(url, username, password); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -68,14 +68,14 @@ public class RemoteDesignerWorkspaceInfo implements DesignerWorkspaceInfo { |
|
|
|
writer.startTAG("Connection"); |
|
|
|
writer.startTAG("Connection"); |
|
|
|
writer.attr("url", connection.getUrl()); |
|
|
|
writer.attr("url", connection.getUrl()); |
|
|
|
writer.attr("username", connection.getUserName()); |
|
|
|
writer.attr("username", connection.getUserName()); |
|
|
|
writer.attr("password", SecurityToolbox.encrypt(connection.getPassword())); |
|
|
|
writer.attr("password", SecurityToolbox.defaultEncrypt(connection.getPassword())); |
|
|
|
writer.end(); |
|
|
|
writer.end(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Object clone() throws CloneNotSupportedException { |
|
|
|
public Object clone() throws CloneNotSupportedException { |
|
|
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|