summaryrefslogtreecommitdiffstats
path: root/aai-aaf-auth/src
diff options
context:
space:
mode:
authorDavid Brilla <xbrilla@fi.muni.cz>2020-03-24 13:08:36 +0100
committerDavid Brilla <david.brilla@tieto.com>2020-04-21 11:29:53 +0200
commit6915f57d07f466a6dd54be693b2af2cec9b8e0c1 (patch)
tree7c1309f6575aee88434fca15b2001e72f81a46bc /aai-aaf-auth/src
parent71d81fa49428fcd2080844482e4e1205a9481ae4 (diff)
AAI-common sonar fixes
Issue-ID: AAI-2786 Change-Id: Ia37e660886fce56c8ab5c53888fcbf265692a359 Signed-off-by: David Brilla <david.brilla@tieto.com>
Diffstat (limited to 'aai-aaf-auth/src')
-rw-r--r--aai-aaf-auth/src/main/java/org/onap/aai/aaf/auth/AAIAuthCore.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/aai-aaf-auth/src/main/java/org/onap/aai/aaf/auth/AAIAuthCore.java b/aai-aaf-auth/src/main/java/org/onap/aai/aaf/auth/AAIAuthCore.java
index c64251ad..0e170301 100644
--- a/aai-aaf-auth/src/main/java/org/onap/aai/aaf/auth/AAIAuthCore.java
+++ b/aai-aaf-auth/src/main/java/org/onap/aai/aaf/auth/AAIAuthCore.java
@@ -54,7 +54,7 @@ public final class AAIAuthCore {
private String globalAuthFileName = AAIConstants.AAI_AUTH_CONFIG_FILENAME;
- private final Pattern AUTH_POLICY_PATTERN;
+ private final Pattern authPolicyPattern;
private final Set<String> validFunctions = new HashSet<>();
private Map<String, AAIUser> users;
private boolean timerSet = false;
@@ -72,14 +72,14 @@ public final class AAIAuthCore {
public AAIAuthCore(String basePath, String filename){
this.basePath = basePath;
this.globalAuthFileName = filename;
- AUTH_POLICY_PATTERN = Pattern.compile("^" + this.basePath + "/v\\d+/([\\w\\-]*)");
+ authPolicyPattern = Pattern.compile("^" + this.basePath + "/v\\d+/([\\w\\-]*)");
init();
}
public AAIAuthCore(String basePath, String filename, String pattern){
this.basePath = basePath;
this.globalAuthFileName = filename;
- AUTH_POLICY_PATTERN = Pattern.compile(pattern);
+ authPolicyPattern = Pattern.compile(pattern);
init();
}
@@ -253,7 +253,7 @@ public final class AAIAuthCore {
} else if (uri.startsWith(basePath + "/tools")) {
authPolicyFunctionName = "tools";
} else {
- Matcher match = AUTH_POLICY_PATTERN.matcher(uri);
+ Matcher match = authPolicyPattern.matcher(uri);
if (match.find()) {
authPolicyFunctionName = match.group(1);
}