directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r561697 - in /directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol: AbstractAuthenticationServiceTest.java AbstractTicketGrantingServiceTest.java
Date Wed, 01 Aug 2007 08:04:56 GMT
Author: erodriguez
Date: Wed Aug  1 01:04:55 2007
New Revision: 561697

URL: http://svn.apache.org/viewvc?view=rev&rev=561697
Log:
Minor enhancements to protocol-kerberos abstract base classes for tests:
o  Added SecureRandom to AS base class for use by subclassing tests.
o  Fixed incorrect key usage in TGS test base class helper method for building Authenticators.

Modified:
    directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractAuthenticationServiceTest.java
    directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractTicketGrantingServiceTest.java

Modified: directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractAuthenticationServiceTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractAuthenticationServiceTest.java?view=diff&rev=561697&r1=561696&r2=561697
==============================================================================
--- directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractAuthenticationServiceTest.java
(original)
+++ directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractAuthenticationServiceTest.java
Wed Aug  1 01:04:55 2007
@@ -22,6 +22,7 @@
 
 import java.net.InetSocketAddress;
 import java.net.SocketAddress;
+import java.security.SecureRandom;
 
 import javax.security.auth.kerberos.KerberosKey;
 import javax.security.auth.kerberos.KerberosPrincipal;
@@ -62,6 +63,7 @@
 public abstract class AbstractAuthenticationServiceTest extends TestCase
 {
     protected CipherTextHandler lockBox;
+    protected static final SecureRandom random = new SecureRandom();
 
 
     protected PreAuthenticationData[] getPreAuthEncryptedTimeStamp( KerberosPrincipal clientPrincipal,
String passPhrase )

Modified: directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractTicketGrantingServiceTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractTicketGrantingServiceTest.java?view=diff&rev=561697&r1=561696&r2=561697
==============================================================================
--- directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractTicketGrantingServiceTest.java
(original)
+++ directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractTicketGrantingServiceTest.java
Wed Aug  1 01:04:55 2007
@@ -271,7 +271,7 @@
 
         Authenticator authenticator = authenticatorModifier.getAuthenticator();
 
-        EncryptedData encryptedAuthenticator = lockBox.seal( sessionKey, authenticator, KeyUsage.NUMBER11
);
+        EncryptedData encryptedAuthenticator = lockBox.seal( sessionKey, authenticator, KeyUsage.NUMBER7
);
 
         return encryptedAuthenticator;
     }



Mime
View raw message