directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1042066 - /directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/
Date Sat, 04 Dec 2010 00:33:55 GMT
Author: elecharny
Date: Sat Dec  4 00:33:54 2010
New Revision: 1042066

URL: http://svn.apache.org/viewvc?rev=1042066&view=rev
Log:
Replaced reference to RequestBody by KdcReqBody

Modified:
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractTicketGrantingServiceTest.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/EncTktInSkeyTest.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingEncryptionTypeTest.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingPolicyTest.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingServiceTest.java

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractTicketGrantingServiceTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractTicketGrantingServiceTest.java?rev=1042066&r1=1042065&r2=1042066&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractTicketGrantingServiceTest.java
(original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AbstractTicketGrantingServiceTest.java
Sat Dec  4 00:33:54 2010
@@ -45,6 +45,7 @@ import org.apache.directory.shared.kerbe
 import org.apache.directory.shared.kerberos.components.EncTicketPart;
 import org.apache.directory.shared.kerberos.components.EncryptedData;
 import org.apache.directory.shared.kerberos.components.EncryptionKey;
+import org.apache.directory.shared.kerberos.components.KdcReqBody;
 import org.apache.directory.shared.kerberos.components.PaData;
 import org.apache.directory.shared.kerberos.components.PrincipalName;
 import org.apache.directory.shared.kerberos.components.TransitedEncoding;
@@ -190,7 +191,7 @@ public abstract class AbstractTicketGran
     }
 
 
-    protected KdcRequest getKdcRequest( Ticket tgt, RequestBody requestBody ) throws Exception
+    protected KdcRequest getKdcRequest( Ticket tgt, KdcReqBody requestBody ) throws Exception
     {
         return getKdcRequest( tgt, requestBody, ChecksumType.RSA_MD5 );
     }
@@ -199,7 +200,7 @@ public abstract class AbstractTicketGran
     /**
      * Create a KdcRequest, suitable for requesting a service Ticket.
      */
-    protected KdcRequest getKdcRequest( Ticket tgt, RequestBody requestBody, ChecksumType
checksumType )
+    protected KdcRequest getKdcRequest( Ticket tgt, KdcReqBody requestBody, ChecksumType
checksumType )
         throws Exception
     {
         // Get the session key from the service ticket.
@@ -227,7 +228,7 @@ public abstract class AbstractTicketGran
      * @return The {@link EncryptedData} containing the {@link Authenticator}.
      * @throws KerberosException
      */
-    protected EncryptedData getAuthenticator( KerberosPrincipal clientPrincipal, RequestBody
requestBody,
+    protected EncryptedData getAuthenticator( KerberosPrincipal clientPrincipal, KdcReqBody
requestBody,
         ChecksumType checksumType ) throws IOException, KerberosException
     {
         Authenticator authenticator = new Authenticator();
@@ -250,7 +251,7 @@ public abstract class AbstractTicketGran
     }
 
 
-    protected Checksum getBodyChecksum( RequestBody requestBody, ChecksumType checksumType
) throws IOException,
+    protected Checksum getBodyChecksum( KdcReqBody requestBody, ChecksumType checksumType
) throws IOException,
         KerberosException
     {
         KdcRequestEncoder bodyEncoder = new KdcRequestEncoder();

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/EncTktInSkeyTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/EncTktInSkeyTest.java?rev=1042066&r1=1042065&r2=1042066&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/EncTktInSkeyTest.java
(original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/EncTktInSkeyTest.java
Sat Dec  4 00:33:54 2010
@@ -34,6 +34,7 @@ import org.apache.directory.server.kerbe
 import org.apache.directory.shared.kerberos.KerberosTime;
 import org.apache.directory.shared.kerberos.codec.options.KdcOptions;
 import org.apache.directory.shared.kerberos.components.EncryptionKey;
+import org.apache.directory.shared.kerberos.components.KdcReqBody;
 import org.apache.directory.shared.kerberos.messages.Ticket;
 import org.junit.After;
 import org.junit.Before;
@@ -137,7 +138,7 @@ public class EncTktInSkeyTest extends Ab
         KerberosTime requestedRenewTillTime = new KerberosTime( now + KerberosTime.WEEK /
2 );
         modifier.setRtime( requestedRenewTillTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingEncryptionTypeTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingEncryptionTypeTest.java?rev=1042066&r1=1042065&r2=1042066&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingEncryptionTypeTest.java
(original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingEncryptionTypeTest.java
Sat Dec  4 00:33:54 2010
@@ -41,6 +41,7 @@ import org.apache.directory.shared.kerbe
 import org.apache.directory.shared.kerberos.codec.options.KdcOptions;
 import org.apache.directory.shared.kerberos.codec.types.EncryptionType;
 import org.apache.directory.shared.kerberos.components.EncryptionKey;
+import org.apache.directory.shared.kerberos.components.KdcReqBody;
 import org.apache.directory.shared.kerberos.messages.Ticket;
 import org.junit.After;
 import org.junit.Before;
@@ -127,7 +128,7 @@ public class TicketGrantingEncryptionTyp
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -181,7 +182,7 @@ public class TicketGrantingEncryptionTyp
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -248,7 +249,7 @@ public class TicketGrantingEncryptionTyp
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -315,7 +316,7 @@ public class TicketGrantingEncryptionTyp
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -383,7 +384,7 @@ public class TicketGrantingEncryptionTyp
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -452,7 +453,7 @@ public class TicketGrantingEncryptionTyp
 
         subSessionKey = RandomKeyFactory.getRandomKey( EncryptionType.DES_CBC_MD5 );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingPolicyTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingPolicyTest.java?rev=1042066&r1=1042065&r2=1042066&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingPolicyTest.java
(original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingPolicyTest.java
Sat Dec  4 00:33:54 2010
@@ -39,6 +39,7 @@ import org.apache.directory.shared.kerbe
 import org.apache.directory.shared.kerberos.components.EncryptionKey;
 import org.apache.directory.shared.kerberos.components.HostAddress;
 import org.apache.directory.shared.kerberos.components.HostAddresses;
+import org.apache.directory.shared.kerberos.components.KdcReqBody;
 import org.apache.directory.shared.kerberos.flags.TicketFlag;
 import org.apache.directory.shared.kerberos.messages.Ticket;
 import org.junit.After;
@@ -130,7 +131,7 @@ public class TicketGrantingPolicyTest ex
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -182,7 +183,7 @@ public class TicketGrantingPolicyTest ex
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -239,7 +240,7 @@ public class TicketGrantingPolicyTest ex
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -291,7 +292,7 @@ public class TicketGrantingPolicyTest ex
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -348,7 +349,7 @@ public class TicketGrantingPolicyTest ex
         HostAddresses addresses = new HostAddresses( address );
         modifier.setAddresses( addresses );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -405,7 +406,7 @@ public class TicketGrantingPolicyTest ex
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -457,7 +458,7 @@ public class TicketGrantingPolicyTest ex
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -509,7 +510,7 @@ public class TicketGrantingPolicyTest ex
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -561,7 +562,7 @@ public class TicketGrantingPolicyTest ex
         KerberosTime requestedEndTime = new KerberosTime( currentTime + KerberosTime.DAY
);
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
 
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
@@ -607,7 +608,7 @@ public class TicketGrantingPolicyTest ex
         KerberosTime requestedEndTime = new KerberosTime( currentTime + KerberosTime.DAY
);
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
 
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
@@ -660,7 +661,7 @@ public class TicketGrantingPolicyTest ex
         KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.WEEK );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -715,7 +716,7 @@ public class TicketGrantingPolicyTest ex
         KerberosTime requestedRenewTillTime = new KerberosTime( now + KerberosTime.WEEK /
2 );
         modifier.setRtime( requestedRenewTillTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingServiceTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingServiceTest.java?rev=1042066&r1=1042065&r2=1042066&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingServiceTest.java
(original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingServiceTest.java
Sat Dec  4 00:33:54 2010
@@ -48,6 +48,7 @@ import org.apache.directory.shared.kerbe
 import org.apache.directory.shared.kerberos.components.EncryptionKey;
 import org.apache.directory.shared.kerberos.components.HostAddress;
 import org.apache.directory.shared.kerberos.components.HostAddresses;
+import org.apache.directory.shared.kerberos.components.KdcReqBody;
 import org.apache.directory.shared.kerberos.crypto.checksum.ChecksumType;
 import org.apache.directory.shared.kerberos.flags.TicketFlag;
 import org.apache.directory.shared.kerberos.messages.Ticket;
@@ -134,7 +135,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( currentTime + KerberosTime.DAY
);
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
 
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
@@ -192,7 +193,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( currentTime + KerberosTime.DAY
);
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
 
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
@@ -237,7 +238,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( currentTime + KerberosTime.DAY
);
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
 
         // Get the session key from the service ticket.
         sessionKey = tgt.getEncTicketPart().getSessionKey();
@@ -287,7 +288,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( currentTime + KerberosTime.DAY
);
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
 
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
@@ -330,7 +331,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( currentTime + KerberosTime.DAY
);
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
 
         try
         {
@@ -372,7 +373,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( currentTime + KerberosTime.DAY
);
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
 
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
@@ -413,7 +414,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( currentTime + KerberosTime.DAY
);
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
 
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
@@ -456,7 +457,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( currentTime + KerberosTime.DAY
);
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
 
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
@@ -509,7 +510,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( currentTime + KerberosTime.DAY
);
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
 
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
@@ -567,7 +568,7 @@ public class TicketGrantingServiceTest e
         HostAddresses addresses = new HostAddresses( address );
         modifier.setAddresses( addresses );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -628,7 +629,7 @@ public class TicketGrantingServiceTest e
         HostAddresses addresses = new HostAddresses( address );
         modifier.setAddresses( addresses );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -684,7 +685,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -735,7 +736,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -786,7 +787,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY / 2 );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -840,7 +841,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY / 2 );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -923,7 +924,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( currentTime + KerberosTime.DAY
);
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
 
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
@@ -976,7 +977,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1035,7 +1036,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1094,7 +1095,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1154,7 +1155,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1210,7 +1211,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + 4 * KerberosTime.MINUTE );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1264,7 +1265,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1332,7 +1333,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + 2 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1389,7 +1390,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1441,7 +1442,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.DAY / 2 );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1494,7 +1495,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.WEEK );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1543,7 +1544,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = KerberosTime.getTime( epoch );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
 
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
@@ -1604,7 +1605,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + KerberosTime.WEEK );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1666,7 +1667,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1723,7 +1724,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1780,7 +1781,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1843,7 +1844,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedRenewTillTime = new KerberosTime( now + KerberosTime.WEEK /
2 );
         modifier.setRtime( requestedRenewTillTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1909,7 +1910,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedRenewTillTime = new KerberosTime( now + 2 * KerberosTime.WEEK
);
         modifier.setRtime( requestedRenewTillTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -1968,7 +1969,7 @@ public class TicketGrantingServiceTest e
 
         subSessionKey = RandomKeyFactory.getRandomKey( EncryptionType.DES_CBC_MD5 );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
         KdcRequest message = getKdcRequest( tgt, requestBody );
 
         handler.messageReceived( session, message );
@@ -2012,7 +2013,7 @@ public class TicketGrantingServiceTest e
         KerberosTime requestedEndTime = new KerberosTime( currentTime + KerberosTime.DAY
);
         modifier.setTill( requestedEndTime );
 
-        RequestBody requestBody = modifier.getRequestBody();
+        KdcReqBody requestBody = modifier.getRequestBody();
 
         KdcRequest message = getKdcRequest( tgt, requestBody );
 



Mime
View raw message