directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: rev 56118 - in incubator/directory/kerberos/trunk/source/main/org/apache/kerberos: kdc messages/value
Date Sun, 31 Oct 2004 04:15:12 GMT
Author: erodriguez
Date: Sat Oct 30 21:15:11 2004
New Revision: 56118

Modified:
   incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/KdcDispatcher.java
   incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/value/KerberosTime.java
Log:
Removed dependencies on former hard-coded configuration.

Modified: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/KdcDispatcher.java
==============================================================================
--- incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/KdcDispatcher.java
(original)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/KdcDispatcher.java
Sat Oct 30 21:15:11 2004
@@ -31,7 +31,7 @@
 	private static final byte TGS_REQ = (byte) 0x6C;
 	private static final byte TGS_REP = (byte) 0x6D;
 	
-	private static final ReplayCache replay = LocalConfig.REPLAY_CACHE;
+	private static final ReplayCache replay = new InMemoryReplayCache();
 	
 	private static final KdcRequestDecoder decoder = new KdcRequestDecoder();
 	private static final KdcReplyEncoder   encoder = new KdcReplyEncoder();

Modified: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/value/KerberosTime.java
==============================================================================
--- incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/value/KerberosTime.java
(original)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/value/KerberosTime.java
Sat Oct 30 21:15:11 2004
@@ -16,8 +16,6 @@
  */
 package org.apache.kerberos.messages.value;
 
-import org.apache.kerberos.kdc.*;
-
 import java.util.*;
 
 /**
@@ -76,10 +74,6 @@
 	public boolean isInClockSkew(long clockSkew) {
 		KerberosTime now = new KerberosTime();
 		return Math.abs(_localTime - now._localTime) < clockSkew;
-	}
-
-	public boolean isInClockSkew() {
-		return isInClockSkew(LocalConfig.KDC_ALLOWABLE_CLOCKSKEW);
 	}
 
 	public boolean greaterThan(KerberosTime time) {

Mime
View raw message