mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-21 04:53:37 +01:00
Adding encryption flag
CLOUDSTACK-3308 UCS:DB: UCS Manager password should not get stored in plain text.
This commit is contained in:
parent
04cdd90a84
commit
5ff83e9c31
@ -27,6 +27,8 @@ import javax.persistence.Table;
|
|||||||
import org.apache.cloudstack.api.Identity;
|
import org.apache.cloudstack.api.Identity;
|
||||||
import org.apache.cloudstack.api.InternalIdentity;
|
import org.apache.cloudstack.api.InternalIdentity;
|
||||||
|
|
||||||
|
import com.cloud.utils.db.Encrypt;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name="ucs_manager")
|
@Table(name="ucs_manager")
|
||||||
public class UcsManagerVO implements InternalIdentity, Identity {
|
public class UcsManagerVO implements InternalIdentity, Identity {
|
||||||
@ -50,15 +52,18 @@ public class UcsManagerVO implements InternalIdentity, Identity {
|
|||||||
@Column(name="username")
|
@Column(name="username")
|
||||||
private String username;
|
private String username;
|
||||||
|
|
||||||
|
@Encrypt
|
||||||
@Column(name="password")
|
@Column(name="password")
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
|
@Override
|
||||||
public long getId() {
|
public long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
public void setId(long id) {
|
public void setId(long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public String getUuid() {
|
public String getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user