aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/onap/music/authentication/AuthUtil.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/org/onap/music/authentication/AuthUtil.java b/src/main/java/org/onap/music/authentication/AuthUtil.java
index 223fa74e..ee3b77a4 100644
--- a/src/main/java/org/onap/music/authentication/AuthUtil.java
+++ b/src/main/java/org/onap/music/authentication/AuthUtil.java
@@ -3,6 +3,8 @@
* org.onap.music
* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property
+ *
+ * Modifications Copyright (C) 2019 IBM.
* ===================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -91,7 +93,7 @@ public class AuthUtil {
List<AAFPermission> allPermissionsList) {
List<AAFPermission> list = new ArrayList<>();
for (Iterator<AAFPermission> iterator = allPermissionsList.iterator(); iterator.hasNext();) {
- AAFPermission aafPermission = (AAFPermission) iterator.next();
+ AAFPermission aafPermission = iterator.next();
if(aafPermission.getType().indexOf(nameSpace) == 0) {
list.add(aafPermission);
}
@@ -166,7 +168,7 @@ public class AuthUtil {
"AuthUtil requestUri :::" + requestUri);
for (Iterator<AAFPermission> iterator = aafPermsFinalList.iterator(); iterator.hasNext();) {
- AAFPermission aafPermission = (AAFPermission) iterator.next();
+ AAFPermission aafPermission = iterator.next();
if(!isauthorized) {
isauthorized = isMatchPattern(aafPermission, requestUri, httpRequest.getMethod());
}