directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject directory-kerby git commit: Fix DIRKRB-694, removing CacheableIdentityService in KDC server.
Date Thu, 19 Apr 2018 03:13:59 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk 7635355b7 -> f48eae33c


Fix DIRKRB-694, removing CacheableIdentityService in KDC server.


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/f48eae33
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/f48eae33
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/f48eae33

Branch: refs/heads/trunk
Commit: f48eae33c15854e4c340428e81bfe7d4be1c83c3
Parents: 7635355
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Thu Apr 19 11:11:13 2018 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Thu Apr 19 11:11:13 2018 +0800

----------------------------------------------------------------------
 .../kerb/server/impl/AbstractInternalKdcServer.java  | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/f48eae33/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/impl/AbstractInternalKdcServer.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/impl/AbstractInternalKdcServer.java
b/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/impl/AbstractInternalKdcServer.java
index d5f2761..619b2ab 100644
--- a/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/impl/AbstractInternalKdcServer.java
+++ b/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/impl/AbstractInternalKdcServer.java
@@ -20,11 +20,9 @@
 package org.apache.kerby.kerberos.kerb.server.impl;
 
 import org.apache.kerby.kerberos.kerb.KrbException;
-import org.apache.kerby.kerberos.kerb.identity.CacheableIdentityService;
 import org.apache.kerby.kerberos.kerb.identity.IdentityService;
-import org.apache.kerby.kerberos.kerb.identity.backend.IdentityBackend;
-import org.apache.kerby.kerberos.kerb.identity.backend.MemoryIdentityBackend;
 import org.apache.kerby.kerberos.kerb.identity.backend.BackendConfig;
+import org.apache.kerby.kerberos.kerb.identity.backend.IdentityBackend;
 import org.apache.kerby.kerberos.kerb.server.KdcConfig;
 import org.apache.kerby.kerberos.kerb.server.KdcSetting;
 import org.apache.kerby.kerberos.kerb.server.KdcUtil;
@@ -38,7 +36,6 @@ public class AbstractInternalKdcServer implements InternalKdcServer {
     private final BackendConfig backendConfig;
     private final KdcSetting kdcSetting;
     private IdentityBackend backend;
-    private IdentityService identityService;
 
     public AbstractInternalKdcServer(KdcSetting kdcSetting) {
         this.kdcSetting = kdcSetting;
@@ -60,15 +57,7 @@ public class AbstractInternalKdcServer implements InternalKdcServer {
     }
 
     protected IdentityService getIdentityService() {
-        if (identityService == null) {
-            if (backend instanceof MemoryIdentityBackend) { // Already in memory
-                identityService = backend;
-            } else {
-                identityService = new CacheableIdentityService(
-                        backendConfig, backend);
-            }
-        }
-        return identityService;
+        return backend;
     }
 
     @Override


Mime
View raw message