You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2010/11/13 11:22:28 UTC

svn commit: r1034720 - /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java

Author: elecharny
Date: Sat Nov 13 10:22:28 2010
New Revision: 1034720

URL: http://svn.apache.org/viewvc?rev=1034720&view=rev
Log:
Some slight modifications in the Javadoc

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

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java?rev=1034720&r1=1034719&r2=1034720&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java (original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java Sat Nov 13 10:22:28 2010
@@ -56,13 +56,13 @@ public class EncryptionKey extends Abstr
     /** Speedup for logs */
     private static final boolean IS_DEBUG = log.isDebugEnabled();
 
-    // The encryption type
+    /** The encryption type */
     private EncryptionType keyType;
 
-    // The encrypted value
+    /** The encrypted value */
     private byte[] keyValue;
     
-    // The key version
+    /** The key version */
     private int keyVersion;
 
     // Storage for computed lengths
@@ -219,7 +219,7 @@ public class EncryptionKey extends Abstr
 
     /**
      * Compute the EncryptionKey length
-     * 
+     * <pre>
      * EncryptionKey :
      * 
      * 0x30 L1 EncryptionKey
@@ -236,7 +236,8 @@ public class EncryptionKey extends Abstr
      *             L3 + lenght(0xA1) + length(L3) 
      *  and
      *  L2 = L2-1 + length(0x02) + length( L2-1) 
-     *  L3 = L3-1 + length(0x04) + length( L3-1) 
+     *  L3 = L3-1 + length(0x04) + length( L3-1)
+     *  </pre> 
      */
     public int computeLength()
     {
@@ -266,7 +267,7 @@ public class EncryptionKey extends Abstr
 
     /**
      * Encode the EncryptionKey message to a PDU. 
-     * 
+     * <pre>
      * EncryptionKey :
      * 
      * 0x30 LL
@@ -274,7 +275,7 @@ public class EncryptionKey extends Abstr
      *     0x02 0x01 keyType
      *   0xA1 LL 
      *     0x04 LL keyValue
-     * 
+     * </pre>
      * @param buffer The buffer where to put the PDU. It should have been allocated
      * before, with the right size.
      * @return The constructed PDU.