You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by fr...@apache.org on 2013/07/23 00:43:17 UTC
git commit: updated refs/heads/master to 5ff83e9
Updated Branches:
refs/heads/master 04cdd90a8 -> 5ff83e9c3
Adding encryption flag
CLOUDSTACK-3308
UCS:DB: UCS Manager password should not get stored in plain text.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/5ff83e9c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/5ff83e9c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/5ff83e9c
Branch: refs/heads/master
Commit: 5ff83e9c313bb8889b0d4ecf936323e32fa01fbf
Parents: 04cdd90
Author: Amogh Vasekar <am...@amoghs.citrite.net>
Authored: Fri Jul 19 16:17:45 2013 -0700
Committer: frank <fr...@citrix.com>
Committed: Mon Jul 22 15:45:17 2013 -0700
----------------------------------------------------------------------
.../ucs/src/com/cloud/ucs/database/UcsManagerVO.java | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5ff83e9c/plugins/hypervisors/ucs/src/com/cloud/ucs/database/UcsManagerVO.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/ucs/src/com/cloud/ucs/database/UcsManagerVO.java b/plugins/hypervisors/ucs/src/com/cloud/ucs/database/UcsManagerVO.java
index 416ba95..45abf23 100644
--- a/plugins/hypervisors/ucs/src/com/cloud/ucs/database/UcsManagerVO.java
+++ b/plugins/hypervisors/ucs/src/com/cloud/ucs/database/UcsManagerVO.java
@@ -5,9 +5,9 @@
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
-//
+//
// http://www.apache.org/licenses/LICENSE-2.0
-//
+//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -27,6 +27,8 @@ import javax.persistence.Table;
import org.apache.cloudstack.api.Identity;
import org.apache.cloudstack.api.InternalIdentity;
+import com.cloud.utils.db.Encrypt;
+
@Entity
@Table(name="ucs_manager")
public class UcsManagerVO implements InternalIdentity, Identity {
@@ -50,16 +52,19 @@ public class UcsManagerVO implements InternalIdentity, Identity {
@Column(name="username")
private String username;
+ @Encrypt
@Column(name="password")
private String password;
- public long getId() {
+ @Override
+ public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
- public String getUuid() {
+ @Override
+ public String getUuid() {
return uuid;
}
public void setUuid(String uuid) {