aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorTschaen, Brendan <ctschaen@att.com>2019-06-02 13:56:14 -0400
committerTschaen, Brendan <ctschaen@att.com>2019-06-02 13:56:14 -0400
commitb7431be81e01554b21a94c2e7c1b1a527c329845 (patch)
tree232578071c8210d3fdd59486bbbe19da9772ac9b /src/main/java/org
parentfdf19711e482e5c22f3d6fdb18e0bc052ec37e4e (diff)
Increase MusicUtil Code Coverage
Change-Id: I99bdec64d00a3822e4f40ed75b496c591b070057 Issue-ID: MUSIC-405 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
Diffstat (limited to 'src/main/java/org')
-rwxr-xr-xsrc/main/java/org/onap/music/main/MusicUtil.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/main/java/org/onap/music/main/MusicUtil.java b/src/main/java/org/onap/music/main/MusicUtil.java
index 2ad7117b..17e3fcf6 100755
--- a/src/main/java/org/onap/music/main/MusicUtil.java
+++ b/src/main/java/org/onap/music/main/MusicUtil.java
@@ -642,22 +642,6 @@ public class MusicUtil {
return response;
}
-
- public static Map<String,String> extractBasicAuthentication(String authorization){
- Map<String,String> authValues = new HashMap<>();
- if(authorization == null) {
- authValues.put("ERROR", "Authorization cannot be null");
- return authValues;
- }
- authorization = authorization.replaceFirst("Basic", "");
- String decoded = Base64.base64Decode(authorization);
- StringTokenizer token = new StringTokenizer(decoded, ":");
- authValues.put(MusicUtil.USERID, token.nextToken());
- authValues.put(MusicUtil.PASSWORD,token.nextToken());
- return authValues;
-
- }
-
public static boolean isValidConsistency(String consistency) {
for (String string : cosistencyLevel) {
if (string.equalsIgnoreCase(consistency))