directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r151446 - in incubator/directory/kerberos/trunk/core/src/java/org/apache/kerberos: kdc/AuthenticationService.java sam/SamSubsystem.java
Date Fri, 04 Feb 2005 23:26:16 GMT
Author: akarasulu
Date: Fri Feb  4 15:26:14 2005
New Revision: 151446

URL: http://svn.apache.org/viewcvs?view=rev&rev=151446
Log:
added methods to set the environment in SamSubsystem

Modified:
    incubator/directory/kerberos/trunk/core/src/java/org/apache/kerberos/kdc/AuthenticationService.java
    incubator/directory/kerberos/trunk/core/src/java/org/apache/kerberos/sam/SamSubsystem.java

Modified: incubator/directory/kerberos/trunk/core/src/java/org/apache/kerberos/kdc/AuthenticationService.java
URL: http://svn.apache.org/viewcvs/incubator/directory/kerberos/trunk/core/src/java/org/apache/kerberos/kdc/AuthenticationService.java?view=diff&r1=151445&r2=151446
==============================================================================
--- incubator/directory/kerberos/trunk/core/src/java/org/apache/kerberos/kdc/AuthenticationService.java
(original)
+++ incubator/directory/kerberos/trunk/core/src/java/org/apache/kerberos/kdc/AuthenticationService.java
Fri Feb  4 15:26:14 2005
@@ -64,6 +64,8 @@
 	public AuthenticationService( KdcConfiguration config, PrincipalStore bootstrap, PrincipalStore
store )
     {
         super( config, bootstrap, store );
+
+        SamSubsystem.setEnvironment( config.getProperties() );
 	}
 	
 	public AuthenticationReply getReplyFor( KdcRequest request ) throws KerberosException

Modified: incubator/directory/kerberos/trunk/core/src/java/org/apache/kerberos/sam/SamSubsystem.java
URL: http://svn.apache.org/viewcvs/incubator/directory/kerberos/trunk/core/src/java/org/apache/kerberos/sam/SamSubsystem.java?view=diff&r1=151445&r2=151446
==============================================================================
--- incubator/directory/kerberos/trunk/core/src/java/org/apache/kerberos/sam/SamSubsystem.java
(original)
+++ incubator/directory/kerberos/trunk/core/src/java/org/apache/kerberos/sam/SamSubsystem.java
Fri Feb  4 15:26:14 2005
@@ -18,6 +18,7 @@
 
 
 import java.util.HashMap;
+import java.util.Hashtable;
 
 import javax.security.auth.kerberos.KerberosKey;
 
@@ -39,6 +40,9 @@
     /** a map of verifiers so we do not need to create a new one every time */
     private static final HashMap verifiers = new HashMap();
 
+    /** a set of environment parameter */
+    private static final Hashtable env = new Hashtable();
+
     /** the key integrity checker used by the subsystem for all sam types */
     private static KeyIntegrityChecker keyChecker;
 
@@ -141,5 +145,11 @@
 
             throw new SamException( entry.getSamType(), msg, e );
         }
+    }
+
+
+    public static void setEnvironment( Hashtable properties )
+    {
+        env.putAll( properties );
     }
 }



Mime
View raw message