directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r561920 - /directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/GetServiceTicket.java
Date Wed, 01 Aug 2007 19:09:19 GMT
Author: erodriguez
Date: Wed Aug  1 12:09:17 2007
New Revision: 561920

URL: http://svn.apache.org/viewvc?view=rev&rev=561920
Log:
Updated kerberos-client to take advantage of slight API improvement for body checksum calculation.

Modified:
    directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/GetServiceTicket.java

Modified: directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/GetServiceTicket.java
URL: http://svn.apache.org/viewvc/directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/GetServiceTicket.java?view=diff&rev=561920&r1=561919&r2=561920
==============================================================================
--- directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/GetServiceTicket.java
(original)
+++ directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/GetServiceTicket.java
Wed Aug  1 12:09:17 2007
@@ -337,10 +337,8 @@
         int pvno = 5;
         MessageType messageType = MessageType.KRB_TGS_REQ;
 
-        // TODO - make body encoder not require KdcRequest
-        KdcRequest req = new KdcRequest( pvno, messageType, null, requestBody );
         KdcRequestEncoder bodyEncoder = new KdcRequestEncoder();
-        byte[] bodyBytes = bodyEncoder.encodeBody( req );
+        byte[] bodyBytes = bodyEncoder.encodeRequestBody( requestBody );
 
         ChecksumHandler checksumHandler = new ChecksumHandler();
         Checksum checksum = checksumHandler.calculateChecksum( ChecksumType.RSA_MD5, bodyBytes,
null, KeyUsage.NUMBER8 );



Mime
View raw message