aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2017-11-16 13:31:39 +0100
committerDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2017-11-16 13:44:54 +0100
commitb315e03572a752c3f12cd4b97d2e05f2bdbc1ec5 (patch)
tree23db893ce6aed89a6e159f998457be79c4b77c30 /src/main/java
parent96dc01ee00007b4e076c51b0d7e848cadd19b9d7 (diff)
Rework the cldsUser
Reformat the JSON files and update the code in CldsUser Change-Id: If82e5e21695189532d7352912db4d4a7be504852 Issue-ID: CLAMP-74 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/onap/clamp/clds/service/CldsUser.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/org/onap/clamp/clds/service/CldsUser.java b/src/main/java/org/onap/clamp/clds/service/CldsUser.java
index 34a3f8ea2..db8a24f31 100644
--- a/src/main/java/org/onap/clamp/clds/service/CldsUser.java
+++ b/src/main/java/org/onap/clamp/clds/service/CldsUser.java
@@ -26,11 +26,8 @@ package org.onap.clamp.clds.service;
import java.util.Arrays;
public class CldsUser {
-
private String user;
-
private String password;
-
private SecureServicePermission[] permissions;
/**
@@ -67,7 +64,7 @@ public class CldsUser {
* @return the permissions
*/
public SecureServicePermission[] getPermissions() {
- return permissions;
+ return Arrays.copyOf(permissions, permissions.length);
}
public String[] getPermissionsString() {
@@ -78,7 +75,7 @@ public class CldsUser {
* @param permissions
* the permissions to set
*/
- public void setPermissions(SecureServicePermission[] permissions) {
- this.permissions = permissions;
+ public void setPermissions(SecureServicePermission[] permissionsArray) {
+ this.permissions = Arrays.copyOf(permissionsArray, permissionsArray.length);
}
}