aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java
diff options
context:
space:
mode:
authorsunil unnava <su622b@att.com>2018-08-31 11:05:31 -0400
committersunil unnava <su622b@att.com>2018-08-31 11:05:52 -0400
commitf25de1912f09ed6d5e3172332913daee1851e704 (patch)
treeb0620ed26e2321ee470d8793e4bdb138e75c4f58 /src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java
parent4cb1f9a13d30bdf0a2b4bd71b74ade305f5ff112 (diff)
Remove the username/password check
Issue-ID: DMAAP-689 Change-Id: I1b6528bd3aaa2d9d117d0970444123a3c93ac597 Signed-off-by: sunil unnava <su622b@att.com>
Diffstat (limited to 'src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java')
-rw-r--r--src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java b/src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java
index fb49096..76bf5ce 100644
--- a/src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java
+++ b/src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java
@@ -261,19 +261,14 @@ public class MRBaseClient extends HttpClient implements MRClient {
}
}
- public JSONObject getNoAuth(final String path, final String username, final String password,
- final String protocolFlag) throws HttpException, JSONException {
- if (null != username && null != password) {
- WebTarget target=null;
- Response response=null;
- target = DmaapClientUtil.getTarget(path, username, password);
- response = DmaapClientUtil.getResponsewtNoAuth(target);
+ public JSONObject getNoAuth(final String path) throws HttpException, JSONException {
- return getResponseDataInJson(response);
- } else {
- throw new HttpException(
- "Authentication Failed: Username/password/AuthKey/Authdate parameter(s) cannot be null or empty.");
- }
+ WebTarget target = null;
+ Response response = null;
+ target = DmaapClientUtil.getTarget(path);
+ response = DmaapClientUtil.getResponsewtNoAuth(target);
+
+ return getResponseDataInJson(response);
}
public String getAuthResponse(final String path, final String authKey, final String authDate, final String username,