CS-20680: The user's secret key is not encrypted in the UserCredentialsVO class

Changes:
-Added annotation to encrypt the secret key while persisting to the DB

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit c5754e693f0272b29fc0aa89278a30ee967f12f9)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Prachi Damle 2014-10-15 14:53:45 -07:00 committed by Rohit Yadav
parent 6ccb9b1fc3
commit 64816dbfbd

View File

@ -23,6 +23,8 @@ import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import com.cloud.utils.db.Encrypt;
@Entity
@Table(name = "usercredentials")
public class UserCredentialsVO {
@ -36,6 +38,7 @@ public class UserCredentialsVO {
@Column(name = "AccessKey")
private String accessKey;
@Encrypt
@Column(name = "SecretKey")
private String secretKey;