directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1035024 - /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReqBody.java
Date Sun, 14 Nov 2010 17:14:12 GMT
Author: elecharny
Date: Sun Nov 14 17:14:11 2010
New Revision: 1035024

URL: http://svn.apache.org/viewvc?rev=1035024&view=rev
Log:
o Fixed/Added some Javadoc
o Fixed a call to ordinal(), replaced by getValue()

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReqBody.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReqBody.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReqBody.java?rev=1035024&r1=1035023&r2=1035024&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReqBody.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReqBody.java
Sun Nov 14 17:14:11 2010
@@ -444,11 +444,11 @@ public class KdcReqBody
      *  |     |
      *  |     +--> 0x30 L11-1 addresses (HostAddresses)
      *  |     
-     *  +--> 0xA10 L12 enc-authorization-data tag
+     *  +--> 0xAA L12 enc-authorization-data tag
      *  |     |
      *  |     +--> 0x30 L12-1 enc-authorization-data
      *  |     
-     *  +--> 0xA11 L13 additional-tickets tag
+     *  +--> 0xAB L13 additional-tickets tag
      *        |
      *        +--> 0x30 L13-1 additional-tickets
      *              |
@@ -504,7 +504,7 @@ public class KdcReqBody
         
         for ( EncryptionType encryptionType : eType )
         {
-            eTypeLengths[pos] = 1 + 1 + Value.getNbBytes( encryptionType.ordinal() );
+            eTypeLengths[pos] = 1 + 1 + Value.getNbBytes( encryptionType.getValue() );
             eTypeSeqLength += eTypeLengths[pos];
             pos++;
         }
@@ -590,6 +590,13 @@ public class KdcReqBody
     }
     
     
+    /**
+     * Encode the KDC-REQ-BODY component
+     * 
+     * @param buffer The buffer containing the encoded result
+     * @return The encoded component
+     * @throws EncoderException If the encoding failed
+     */
     public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException
     {
         if ( buffer == null )



Mime
View raw message