Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 85297 invoked from network); 14 Nov 2010 17:14:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Nov 2010 17:14:54 -0000 Received: (qmail 16421 invoked by uid 500); 14 Nov 2010 17:15:26 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 16385 invoked by uid 500); 14 Nov 2010 17:15:26 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 16378 invoked by uid 99); 14 Nov 2010 17:15:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Nov 2010 17:15:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Nov 2010 17:15:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2BE2B23889E9; Sun, 14 Nov 2010 17:14:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101114171412.2BE2B23889E9@eris.apache.org> 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 )