directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: rev 57129 - incubator/directory/kerberos/trunk/kerberos/src/java/org/apache/kerberos/kdc/store
Date Wed, 10 Nov 2004 03:49:06 GMT
Author: erodriguez
Date: Tue Nov  9 19:49:05 2004
New Revision: 57129

Modified:
   incubator/directory/kerberos/trunk/kerberos/src/java/org/apache/kerberos/kdc/store/BootstrapStore.java
Log:
randkey generation its own class now.

Modified: incubator/directory/kerberos/trunk/kerberos/src/java/org/apache/kerberos/kdc/store/BootstrapStore.java
==============================================================================
--- incubator/directory/kerberos/trunk/kerberos/src/java/org/apache/kerberos/kdc/store/BootstrapStore.java
(original)
+++ incubator/directory/kerberos/trunk/kerberos/src/java/org/apache/kerberos/kdc/store/BootstrapStore.java
Tue Nov  9 19:49:05 2004
@@ -16,7 +16,7 @@
  */
 package org.apache.kerberos.kdc.store;
 
-import org.apache.kerberos.crypto.CryptoService;
+import org.apache.kerberos.crypto.RandomKey;
 import org.apache.kerberos.kdc.KdcConfiguration;
 
 import javax.security.auth.kerberos.KerberosKey;
@@ -86,19 +86,19 @@
 
         if ( config.getKdcPrincipal() != null )
         {
-            addToMap( newKeys, CryptoService.getRandomKeyFor( config.getKdcPrincipal() )
);
+            addToMap( newKeys, RandomKey.getRandomKeyFor( config.getKdcPrincipal() ) );
         }
 
         if ( config.getChangepwPrincipal() != null )
         {
-		    addToMap( newKeys, CryptoService.getRandomKeyFor( config.getChangepwPrincipal() ) );
+		    addToMap( newKeys, RandomKey.getRandomKeyFor( config.getChangepwPrincipal() ) );
         }
 
         if ( config.getLdapPrincipal() != null )
         {
 		    addToMap( newKeys, makePredefinedKey( config.getLdapPrincipal(), "3e804307fbad9bbf",
1) );
-            addToMap( newKeys, CryptoService.getRandomKeyFor( new KerberosPrincipal( "krbtgt/25OZ.COM@25OZ.COM"
) ) );
-            addToMap( newKeys, CryptoService.getRandomKeyFor( new KerberosPrincipal( "krbtgt/EXAMPLE.COM@25OZ.COM"
) ) );
+            addToMap( newKeys, RandomKey.getRandomKeyFor( new KerberosPrincipal( "krbtgt/25OZ.COM@25OZ.COM"
) ) );
+            addToMap( newKeys, RandomKey.getRandomKeyFor( new KerberosPrincipal( "krbtgt/EXAMPLE.COM@25OZ.COM"
) ) );
         }
 
 		FileOutputStream out = new FileOutputStream( keyStore );

Mime
View raw message