summaryrefslogtreecommitdiffstats
path: root/auth/auth-cmd/src/main/java
diff options
context:
space:
mode:
authorJonathan Gathman <jonathan.gathman@att.com>2019-04-11 17:57:28 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-11 17:57:28 +0000
commit67092a81dd5c5fcb5b6793a1e03e751620407f0d (patch)
treec92697a00189bce2d50084e75028548147c9d6c9 /auth/auth-cmd/src/main/java
parentb86a6ddf73d79a79e2f078a628bd6033cbc35878 (diff)
parent2cbabb68ede4416fdf132758e8364566d5cca743 (diff)
Merge "Cred.java - Sonar fixes"
Diffstat (limited to 'auth/auth-cmd/src/main/java')
-rw-r--r--auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/Cred.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/Cred.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/Cred.java
index cc9ccf98..d41f0cf3 100644
--- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/Cred.java
+++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/Cred.java
@@ -38,7 +38,6 @@ public class Cred extends Cmd {
public static final String ATTEMPT_FAILED_SPECIFICS_WITHELD = "Attempt Failed. Specifics witheld.";
private static final String CRED_PATH = "/authn/cred";
private static final String[] options = {"add","del","reset","extend"/*,"clean"*/};
-// private Clean clean;
public Cred(User parent) {
super(parent,"cred",
new Param(optionsToString(options),true),
@@ -46,7 +45,6 @@ public class Cred extends Cmd {
new Param("password (! D|E)",false),
new Param("entry# (if multi)",false)
);
-// clean = new Clean(this);
}
@Override
@@ -62,11 +60,10 @@ public class Cred extends Cmd {
cr.setPassword(args[idx++]);
}
if (args.length>idx)
- cr.setEntry(args[idx++]);
+ cr.setEntry(args[idx]);
// Set Start/End commands
setStartEnd(cr);
-// final int cleanIDX = _idx+1;
Integer ret = same(new Retryable<Integer>() {
@Override
public Integer code(Rcli<?> client) throws CadiException, APIException {
@@ -82,7 +79,6 @@ public class Cred extends Cmd {
verb = "Added Credential [";
break;
case 1:
-// if (aafcli.addForce())cr.setForce("TRUE");
setQueryParamsOn(client);
fp = client.delete(CRED_PATH,
getDF(CredRequest.class),
@@ -106,8 +102,8 @@ public class Cred extends Cmd {
);
verb = "Extended Credential [";
break;
-// case 4:
-// return clean.exec(cleanIDX, args);
+ default:
+ break;
}
if (fp==null) {
return null; // get by Sonar check.