mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +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.InternalIdentity;
|
||||
|
||||
import com.cloud.utils.db.Encrypt;
|
||||
|
||||
@Entity
|
||||
@Table(name="ucs_manager")
|
||||
public class UcsManagerVO implements InternalIdentity, Identity {
|
||||
@ -50,15 +52,18 @@ public class UcsManagerVO implements InternalIdentity, Identity {
|
||||
@Column(name="username")
|
||||
private String username;
|
||||
|
||||
@Encrypt
|
||||
@Column(name="password")
|
||||
private String password;
|
||||
|
||||
@Override
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(long id) {
|
||||
this.id = id;
|
||||
}
|
||||
@Override
|
||||
public String getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user