summaryrefslogtreecommitdiffstats
path: root/cadi/client/src/main/java
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-11-08 16:29:04 -0600
committerInstrumental <jonathan.gathman@att.com>2018-11-08 16:29:10 -0600
commitb2925aafd63f031392a4a5d44e105d047af7eed2 (patch)
tree5be791b54c270cee2116b48578e6cd1088e1c1e6 /cadi/client/src/main/java
parent07c721465a0cc40d8e215cf5411bfd825b2c6b13 (diff)
Improve nonContainer Agent Config2.1.7
Issue-ID: AAF-619 Change-Id: I9ea4a5a7fb1d5006d50ffc70f0bc0f98812d1513 Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'cadi/client/src/main/java')
-rw-r--r--cadi/client/src/main/java/org/onap/aaf/cadi/http/HBasicAuthSS.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/cadi/client/src/main/java/org/onap/aaf/cadi/http/HBasicAuthSS.java b/cadi/client/src/main/java/org/onap/aaf/cadi/http/HBasicAuthSS.java
index 7e5cbd3b..30673f75 100644
--- a/cadi/client/src/main/java/org/onap/aaf/cadi/http/HBasicAuthSS.java
+++ b/cadi/client/src/main/java/org/onap/aaf/cadi/http/HBasicAuthSS.java
@@ -33,6 +33,9 @@ import org.onap.aaf.cadi.principal.BasicPrincipal;
public class HBasicAuthSS extends HAuthorizationHeader implements BasicAuth {
public HBasicAuthSS(SecurityInfoC<HttpURLConnection> si, String user, String password) throws IOException {
super(si, user, "Basic " + Symm.base64noSplit.encode(user + ':' + password));
+ if(password==null) {
+ throw new IOException("No password passed for " + user);
+ }
}
public HBasicAuthSS(SecurityInfoC<HttpURLConnection> si) throws IOException {