aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2017-11-17 17:01:33 +0100
committerDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2017-11-17 17:01:33 +0100
commitfd8cb97d1e0ade1f0a21f3a90e6d9d91562d3788 (patch)
treeadbaa59550c15cecbd99a99a596c61e00033311f /src/main/java
parent2cb5e2a945d27232f296b88c4b9e9439d5849fa2 (diff)
Fix sonar issue
Attempt to remove the Blocker sonar issue Change-Id: I9ce4eea668579acbc19e9fc0e64f82688322dd49 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.java20
1 files changed, 17 insertions, 3 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 dc3f7d512..3dfeaebdd 100644
--- a/src/main/java/org/onap/clamp/clds/service/CldsUser.java
+++ b/src/main/java/org/onap/clamp/clds/service/CldsUser.java
@@ -25,6 +25,9 @@ package org.onap.clamp.clds.service;
import java.util.Arrays;
+/**
+ * The class represents the CldsUser that can be extracted from cldsusers.json.
+ */
public class CldsUser {
private String user;
@@ -32,6 +35,8 @@ public class CldsUser {
private SecureServicePermission[] permissions;
/**
+ * Returns the user.
+ *
* @return the user
*/
public String getUser() {
@@ -39,6 +44,8 @@ public class CldsUser {
}
/**
+ * Sets the user.
+ *
* @param user
* the user to set
*/
@@ -47,6 +54,8 @@ public class CldsUser {
}
/**
+ * Returns the password.
+ *
* @return the password
*/
public String getPassword() {
@@ -54,6 +63,8 @@ public class CldsUser {
}
/**
+ * Sets the password.
+ *
* @param password
* the password to set
*/
@@ -62,6 +73,8 @@ public class CldsUser {
}
/**
+ * Returns the permissions.
+ *
* @return the permissions
*/
public SecureServicePermission[] getPermissions() {
@@ -69,12 +82,13 @@ public class CldsUser {
}
public String[] getPermissionsString() {
- //NOSONAR
- return Arrays.stream(getPermissions()).map(SecureServicePermission::getKey).toArray(String[]::new);
+ return Arrays.stream(getPermissions()).map(SecureServicePermission::getKey).toArray(String[]::new);// NOSONAR
}
/**
- * @param permissions
+ * Sets the permissions.
+ *
+ * @param permissionsArray
* the permissions to set
*/
public void setPermissions(SecureServicePermission[] permissionsArray) {