aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/music/authentication/CachingUtil.java
diff options
context:
space:
mode:
authorTschaen, Brendan <ctschaen@att.com>2019-02-28 13:57:51 -0500
committerTschaen, Brendan <ctschaen@att.com>2019-02-28 15:46:49 -0500
commit4d6e2a982cc0ee48aca9d8531424d795e44842c9 (patch)
tree3b07a546a57e5f500a06cc8f5d8dff97f96147df /src/main/java/org/onap/music/authentication/CachingUtil.java
parent24accb9cb8000591cc22a5d98d2c079b8084b123 (diff)
Complete new authentication across REST APIs
Change-Id: I0d8ae84bdebbad986d557f722047318d5b72b591 Issue-ID: MUSIC-345 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
Diffstat (limited to 'src/main/java/org/onap/music/authentication/CachingUtil.java')
-rwxr-xr-xsrc/main/java/org/onap/music/authentication/CachingUtil.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/main/java/org/onap/music/authentication/CachingUtil.java b/src/main/java/org/onap/music/authentication/CachingUtil.java
index 80eed1e6..5c379c6e 100755
--- a/src/main/java/org/onap/music/authentication/CachingUtil.java
+++ b/src/main/java/org/onap/music/authentication/CachingUtil.java
@@ -72,7 +72,6 @@ public class CachingUtil implements Runnable {
private static CacheAccess<String, Map<String, String>> musicValidateCache = JCS.getInstance("musicValidateCache");
private static Map<String, Number> userAttempts = new HashMap<>();
private static Map<String, Calendar> lastFailedTime = new HashMap<>();
- private static CacheAccess<String, PreparedStatement> queryBank = JCS.getInstance("statementBank");
private static CacheAccess<String, String> adminUserCache = JCS.getInstance("adminUserCache");
public static CacheAccess<String, String> getAdminUserCache() {
@@ -83,19 +82,6 @@ public class CachingUtil implements Runnable {
adminUserCache.put(authorization,userId);
}
-
- public static void updateStatementBank(String query,PreparedStatement statement) {
- queryBank.put(query, statement);
- }
-
- public static void resetStatementBank() {
- queryBank.clear();
- }
-
- public static CacheAccess<String, PreparedStatement> getStatementBank() {
- return queryBank;
- }
-
private static final String USERNAME="username";
private static final String PASSWORD="password";