Author: erodriguez
Date: Sat Nov  6 20:51:30 2004
New Revision: 56808

Added:
   
incubator/directory/kerberos/trunk/kerberos/src/java/org/apache/kerberos/kdc/jaas/KdcConfiguration.java
Log:
New Configuration impl for the KDC.

Added: 
incubator/directory/kerberos/trunk/kerberos/src/java/org/apache/kerberos/kdc/jaas/KdcConfiguration.java
==============================================================================
--- (empty file)
+++ 
incubator/directory/kerberos/trunk/kerberos/src/java/org/apache/kerberos/kdc/jaas/KdcConfiguration.java
     Sat Nov  6 20:51:30 2004
@@ -0,0 +1,52 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.kerberos.kdc.jaas;
+
+import javax.security.auth.login.AppConfigurationEntry;
+import javax.security.auth.login.AppConfigurationEntry.LoginModuleControlFlag;
+import javax.security.auth.login.Configuration;
+import java.util.HashMap;
+
+public class KdcConfiguration extends Configuration
+{
+       private static AppConfigurationEntry[] _configList = new 
AppConfigurationEntry[1];
+       
+       public KdcConfiguration()
+    {
+               String loginModule = 
"org.apache.kerberos.kdc.jaas.KdcLoginModule";
+               LoginModuleControlFlag flag = LoginModuleControlFlag.REQUIRED;
+               _configList[0] = new AppConfigurationEntry(loginModule, flag, 
new HashMap());
+       }
+
+       /**
+        * Interface method requiring us to return all the LoginModules we know 
about.
+        */
+       public AppConfigurationEntry[] getAppConfigurationEntry(String 
applicationName)
+    {
+               // We will ignore the applicationName, since we want all apps 
to use Kerberos V5
+               return _configList;
+       }
+
+       /**
+        * Interface method for reloading the configuration.  We don't need 
this.
+        */
+       public void refresh()
+    {
+               // Right now this is a load once scheme and we will not 
implement the refresh method
+       }
+}
+

Reply via email to