directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r539684 - in /directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared: io/decoder/ io/encoder/ messages/ messages/application/
Date Sat, 19 May 2007 03:32:57 GMT
Author: erodriguez
Date: Fri May 18 20:32:55 2007
New Revision: 539684

URL: http://svn.apache.org/viewvc?view=rev&rev=539684
Log:
Javadocs and minor warning clean-up.

Modified:
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/ApplicationRequestDecoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/EncryptedDataDecoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/EncryptionKeyDecoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/KdcRequestDecoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PreAuthenticationDataDecoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PrincipalNameDecoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PrivateMessageDecoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/TicketDecoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ApplicationReplyEncoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ChecksumEncoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncApRepPartEncoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncAsRepPartEncoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTgsRepPartEncoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTicketPartEncoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/Encoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncoderFactory.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptedDataEncoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionKeyEncoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionTypeInfoEncoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ErrorMessageEncoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/KdcReplyEncoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/KdcReqBodyEncoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PreAuthenticationDataEncoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrivateMessageEncoder.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ApplicationRequest.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/AuthenticationReply.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ErrorMessage.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ErrorMessageModifier.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KdcReply.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KdcRequest.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KerberosMessage.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/TicketGrantReply.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/ApplicationReply.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/CredentialMessage.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/PrivateMessage.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/SafeBody.java
    directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/SafeMessage.java

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/ApplicationRequestDecoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/ApplicationRequestDecoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/ApplicationRequestDecoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/ApplicationRequestDecoder.java Fri May 18 20:32:55 2007
@@ -41,6 +41,13 @@
  */
 public class ApplicationRequestDecoder
 {
+    /**
+     * Decodes a byte array into an {@link ApplicationRequest}.
+     *
+     * @param encodedAuthHeader
+     * @return The {@link ApplicationRequest}.
+     * @throws IOException
+     */
     public ApplicationRequest decode( byte[] encodedAuthHeader ) throws IOException
     {
         ASN1InputStream ais = new ASN1InputStream( encodedAuthHeader );

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/EncryptedDataDecoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/EncryptedDataDecoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/EncryptedDataDecoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/EncryptedDataDecoder.java Fri May 18 20:32:55 2007
@@ -40,6 +40,13 @@
  */
 public class EncryptedDataDecoder
 {
+    /**
+     * Decodes a byte array into an {@link EncryptedData}.
+     *
+     * @param encodedEncryptedData
+     * @return The {@link EncryptedData}.
+     * @throws IOException
+     */
     public static EncryptedData decode( byte[] encodedEncryptedData ) throws IOException
     {
         ASN1InputStream ais = new ASN1InputStream( encodedEncryptedData );
@@ -51,11 +58,16 @@
 
 
     /**
+     * Decodes a {@link DERSequence} into an {@link EncryptedData}.
+     * 
      * EncryptedData ::=   SEQUENCE {
      *             etype[0]     INTEGER, -- EncryptionEngine
      *             kvno[1]      INTEGER OPTIONAL,
      *             cipher[2]    OCTET STRING -- ciphertext
      * }
+     * 
+     * @param sequence 
+     * @return The {@link EncryptedData}.
      */
     public static EncryptedData decode( DERSequence sequence )
     {

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/EncryptionKeyDecoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/EncryptionKeyDecoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/EncryptionKeyDecoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/EncryptionKeyDecoder.java Fri May 18 20:32:55 2007
@@ -39,6 +39,13 @@
  */
 public class EncryptionKeyDecoder
 {
+    /**
+     * Decodes a byte array into an {@link EncryptionKey}.
+     *
+     * @param encodedEncryptionKey
+     * @return The {@link EncryptionKey}.
+     * @throws IOException
+     */
     public static EncryptionKey decode( byte[] encodedEncryptionKey ) throws IOException
     {
         ASN1InputStream ais = new ASN1InputStream( encodedEncryptionKey );

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/KdcRequestDecoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/KdcRequestDecoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/KdcRequestDecoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/KdcRequestDecoder.java Fri May 18 20:32:55 2007
@@ -47,6 +47,13 @@
  */
 public class KdcRequestDecoder
 {
+    /**
+     * Decodes a {@link ByteBuffer} into a {@link KdcRequest}.
+     *
+     * @param in
+     * @return The {@link KdcRequest}.
+     * @throws IOException
+     */
     public KdcRequest decode( ByteBuffer in ) throws IOException
     {
         ASN1InputStream ais = new ASN1InputStream( in );

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PreAuthenticationDataDecoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PreAuthenticationDataDecoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PreAuthenticationDataDecoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PreAuthenticationDataDecoder.java Fri May 18 20:32:55 2007
@@ -40,6 +40,13 @@
  */
 public class PreAuthenticationDataDecoder
 {
+    /**
+     * Decodes a byte array into {@link PreAuthenticationData}.
+     *
+     * @param encodedPreAuthData
+     * @return The {@link PreAuthenticationData}.
+     * @throws IOException
+     */
     public PreAuthenticationData decode( byte[] encodedPreAuthData ) throws IOException
     {
         ASN1InputStream ais = new ASN1InputStream( encodedPreAuthData );

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PrincipalNameDecoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PrincipalNameDecoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PrincipalNameDecoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PrincipalNameDecoder.java Fri May 18 20:32:55 2007
@@ -38,10 +38,15 @@
 public class PrincipalNameDecoder
 {
     /**
+     * Decodes a {@link DERSequence} into a {@link PrincipalName}.
+     * 
      * PrincipalName ::=   SEQUENCE {
      *               name-type[0]     INTEGER,
      *               name-string[1]   SEQUENCE OF GeneralString
      * }
+     * 
+     * @param sequence 
+     * @return The {@link PrincipalName}.
      */
     public static PrincipalName decode( DERSequence sequence )
     {

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PrivateMessageDecoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PrivateMessageDecoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PrivateMessageDecoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/PrivateMessageDecoder.java Fri May 18 20:32:55 2007
@@ -39,6 +39,13 @@
  */
 public class PrivateMessageDecoder
 {
+    /**
+     * Decodes a byte array into a {@link PrivateMessage}.
+     *
+     * @param encodedPrivateMessage
+     * @return The {@link PrivateMessage}.
+     * @throws IOException
+     */
     public PrivateMessage decode( byte[] encodedPrivateMessage ) throws IOException
     {
         ASN1InputStream ais = new ASN1InputStream( encodedPrivateMessage );

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/TicketDecoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/TicketDecoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/TicketDecoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/decoder/TicketDecoder.java Fri May 18 20:32:55 2007
@@ -39,6 +39,13 @@
  */
 public class TicketDecoder
 {
+    /**
+     * Decodes a {@link DERSequence} into an array of {@link Ticket}s.
+     *
+     * @param sequence
+     * @return The array of {@link Ticket}s.
+     * @throws IOException
+     */
     public static Ticket[] decodeSequence( DERSequence sequence ) throws IOException
     {
         Ticket[] tickets = new Ticket[sequence.size()];

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ApplicationReplyEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ApplicationReplyEncoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ApplicationReplyEncoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ApplicationReplyEncoder.java Fri May 18 20:32:55 2007
@@ -37,9 +37,19 @@
  */
 public class ApplicationReplyEncoder
 {
+    /**
+     * Application code constant for the {@link ApplicationReply} (15).
+     */
     public static final int APPLICATION_CODE = 15;
 
 
+    /**
+     * Encodes an {@link ApplicationReply} into a byte array.
+     *
+     * @param reply
+     * @return The byte array.
+     * @throws IOException
+     */
     public byte[] encode( ApplicationReply reply ) throws IOException
     {
         ByteArrayOutputStream baos = new ByteArrayOutputStream();

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ChecksumEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ChecksumEncoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ChecksumEncoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ChecksumEncoder.java Fri May 18 20:32:55 2007
@@ -34,10 +34,15 @@
 public class ChecksumEncoder
 {
     /**
+     * Encodes a {@link Checksum} into a {@link DERSequence}.
+     * 
      * Checksum ::=   SEQUENCE {
      *          cksumtype[0]   INTEGER,
      *          checksum[1]    OCTET STRING
      * }
+     * 
+     * @param checksum 
+     * @return The {@link DERSequence}.
      */
     public static DERSequence encode( Checksum checksum )
     {

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncApRepPartEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncApRepPartEncoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncApRepPartEncoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncApRepPartEncoder.java Fri May 18 20:32:55 2007
@@ -38,6 +38,9 @@
  */
 public class EncApRepPartEncoder implements Encoder, EncoderFactory
 {
+    /**
+     * The application code constant for the {@link EncApRepPart} (27).
+     */
     public static final int APPLICATION_CODE = 27;
 
 

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncAsRepPartEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncAsRepPartEncoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncAsRepPartEncoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncAsRepPartEncoder.java Fri May 18 20:32:55 2007
@@ -20,18 +20,26 @@
 package org.apache.directory.server.kerberos.shared.io.encoder;
 
 
+import org.apache.directory.server.kerberos.shared.messages.components.EncAsRepPart;
+
+
 /**
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
 public class EncAsRepPartEncoder extends EncKdcRepPartEncoder implements EncoderFactory
 {
-    /*
+    /**
+     * The application code constant for an {@link EncAsRepPart}.
+     * 
      * EncASRepPart ::=    [APPLICATION 25[25]] EncKDCRepPart
      */
     public static final int APPLICATION_CODE = 25;
 
 
+    /**
+     * Creates a new instance of EncAsRepPartEncoder.
+     */
     public EncAsRepPartEncoder()
     {
         super( APPLICATION_CODE );

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTgsRepPartEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTgsRepPartEncoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTgsRepPartEncoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTgsRepPartEncoder.java Fri May 18 20:32:55 2007
@@ -32,6 +32,9 @@
     public static final int APPLICATION_CODE = 26;
 
 
+    /**
+     * Creates a new instance of EncTgsRepPartEncoder.
+     */
     public EncTgsRepPartEncoder()
     {
         super( APPLICATION_CODE );

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTicketPartEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTicketPartEncoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTicketPartEncoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTicketPartEncoder.java Fri May 18 20:32:55 2007
@@ -62,6 +62,8 @@
 
 
     /**
+     * Encodes an {@link EncTicketPart} into a {@link DERSequence}.
+     * 
      * -- Encrypted part of ticket
      * EncTicketPart ::=     [APPLICATION 3] SEQUENCE {
      *                       flags[0]             TicketFlags,
@@ -76,6 +78,9 @@
      *                       caddr[9]             HostAddresses OPTIONAL,
      *                       authorization-data[10]   AuthorizationData OPTIONAL
      * }
+     * 
+     * @param ticketPart 
+     * @return The {@link DERSequence}.
      */
     public DERSequence encodeInitialSequence( EncTicketPart ticketPart )
     {

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/Encoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/Encoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/Encoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/Encoder.java Fri May 18 20:32:55 2007
@@ -32,5 +32,12 @@
  */
 public interface Encoder
 {
+    /**
+     * Encodes an ASN.1 {@link Encodable} object into a byte array.
+     *
+     * @param object
+     * @return The byte array.
+     * @throws IOException
+     */
     public byte[] encode( Encodable object ) throws IOException;
 }

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncoderFactory.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncoderFactory.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncoderFactory.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncoderFactory.java Fri May 18 20:32:55 2007
@@ -27,5 +27,10 @@
  */
 public interface EncoderFactory
 {
+    /**
+     * Returns an {@link Encoder}.
+     *
+     * @return The {@link Encoder}.
+     */
     public Encoder getEncoder();
 }

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptedDataEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptedDataEncoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptedDataEncoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptedDataEncoder.java Fri May 18 20:32:55 2007
@@ -37,6 +37,13 @@
  */
 public class EncryptedDataEncoder
 {
+    /**
+     * Encodes an {@link EncryptedData} into a byte array.
+     *
+     * @param encryptedData
+     * @return The byte array.
+     * @throws IOException
+     */
     public static byte[] encode( EncryptedData encryptedData ) throws IOException
     {
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
@@ -50,11 +57,16 @@
 
 
     /**
+     * Encodes an {@link EncryptedData} into a {@link DERSequence}.
+     * 
      * EncryptedData ::=   SEQUENCE {
      *             etype[0]     INTEGER, -- EncryptionEngine
      *             kvno[1]      INTEGER OPTIONAL,
      *             cipher[2]    OCTET STRING -- ciphertext
      * }
+     * 
+     * @param encryptedData 
+     * @return The {@link DERSequence}.
      */
     public static DERSequence encodeSequence( EncryptedData encryptedData )
     {

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionKeyEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionKeyEncoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionKeyEncoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionKeyEncoder.java Fri May 18 20:32:55 2007
@@ -37,6 +37,13 @@
  */
 public class EncryptionKeyEncoder
 {
+    /**
+     * Encodes an {@link EncryptionKey} into a byte array.
+     *
+     * @param key
+     * @return The byte array.
+     * @throws IOException
+     */
     public static byte[] encode( EncryptionKey key ) throws IOException
     {
         ByteArrayOutputStream baos = new ByteArrayOutputStream();

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionTypeInfoEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionTypeInfoEncoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionTypeInfoEncoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionTypeInfoEncoder.java Fri May 18 20:32:55 2007
@@ -37,6 +37,13 @@
  */
 public class EncryptionTypeInfoEncoder
 {
+    /**
+     * Encodes an array of {@link EncryptionTypeInfoEntry}s into a byte array.
+     *
+     * @param entries
+     * @return The byte array.
+     * @throws IOException
+     */
     public static byte[] encode( EncryptionTypeInfoEntry[] entries ) throws IOException
     {
         ByteArrayOutputStream baos = new ByteArrayOutputStream();

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ErrorMessageEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ErrorMessageEncoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ErrorMessageEncoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ErrorMessageEncoder.java Fri May 18 20:32:55 2007
@@ -40,6 +40,13 @@
  */
 public class ErrorMessageEncoder
 {
+    /**
+     * Encodes an {@link ErrorMessage} into a {@link ByteBuffer}.
+     *
+     * @param message
+     * @param out
+     * @throws IOException
+     */
     public void encode( ErrorMessage message, ByteBuffer out ) throws IOException
     {
         ASN1OutputStream aos = new ASN1OutputStream( out );
@@ -51,6 +58,13 @@
     }
 
 
+    /**
+     * Encodes an {@link ErrorMessage} into a byte array.
+     *
+     * @param message
+     * @return The byte array.
+     * @throws IOException
+     */
     public byte[] encode( ErrorMessage message ) throws IOException
     {
         ByteArrayOutputStream baos = new ByteArrayOutputStream();

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/KdcReplyEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/KdcReplyEncoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/KdcReplyEncoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/KdcReplyEncoder.java Fri May 18 20:32:55 2007
@@ -40,9 +40,15 @@
  */
 public class KdcReplyEncoder
 {
-    /*
-     AS-REP ::=    [APPLICATION 11] KDC-REP
-     TGS-REP ::=   [APPLICATION 13] KDC-REP
+    /**
+     * Encodes a {@link KdcReply} into a {@link ByteBuffer}.
+     * 
+     * AS-REP ::=    [APPLICATION 11] KDC-REP
+     * TGS-REP ::=   [APPLICATION 13] KDC-REP
+     *
+     * @param app
+     * @param out
+     * @throws IOException
      */
     public void encode( KdcReply app, ByteBuffer out ) throws IOException
     {

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/KdcReqBodyEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/KdcReqBodyEncoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/KdcReqBodyEncoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/KdcReqBodyEncoder.java Fri May 18 20:32:55 2007
@@ -38,6 +38,13 @@
  */
 public class KdcReqBodyEncoder
 {
+    /**
+     * Encodes a {@link KdcRequest} into a byte array.
+     *
+     * @param request
+     * @return The byte array.
+     * @throws IOException
+     */
     public byte[] encode( KdcRequest request ) throws IOException
     {
         ByteArrayOutputStream baos = new ByteArrayOutputStream();

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PreAuthenticationDataEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PreAuthenticationDataEncoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PreAuthenticationDataEncoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PreAuthenticationDataEncoder.java Fri May 18 20:32:55 2007
@@ -37,6 +37,13 @@
  */
 public class PreAuthenticationDataEncoder
 {
+    /**
+     * Encodes an array of {@link PreAuthenticationData}s into a byte array.
+     *
+     * @param preAuth
+     * @return The byte array.
+     * @throws IOException
+     */
     public static byte[] encode( PreAuthenticationData[] preAuth ) throws IOException
     {
         ByteArrayOutputStream baos = new ByteArrayOutputStream();

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrivateMessageEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrivateMessageEncoder.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrivateMessageEncoder.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrivateMessageEncoder.java Fri May 18 20:32:55 2007
@@ -37,6 +37,13 @@
  */
 public class PrivateMessageEncoder
 {
+    /**
+     * Encodes a {@link PrivateMessage} into a byte array.
+     *
+     * @param message
+     * @return The byte array.
+     * @throws IOException
+     */
     public byte[] encode( PrivateMessage message ) throws IOException
     {
         ByteArrayOutputStream baos = new ByteArrayOutputStream();

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ApplicationRequest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ApplicationRequest.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ApplicationRequest.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ApplicationRequest.java Fri May 18 20:32:55 2007
@@ -39,7 +39,7 @@
 
 
     /**
-     * Class constructors
+     * Creates a new instance of ApplicationRequest.
      */
     public ApplicationRequest()
     {
@@ -48,7 +48,14 @@
     }
 
 
-    public ApplicationRequest(ApOptions apOptions, Ticket ticket, EncryptedData encPart)
+    /**
+     * Creates a new instance of ApplicationRequest.
+     *
+     * @param apOptions
+     * @param ticket
+     * @param encPart
+     */
+    public ApplicationRequest( ApOptions apOptions, Ticket ticket, EncryptedData encPart )
     {
         super( MessageType.KRB_AP_REQ );
         this.apOptions = apOptions;
@@ -57,67 +64,122 @@
     }
 
 
+    /**
+     * Returns the {@link ApOptions}.
+     *
+     * @return The {@link ApOptions}.
+     */
     public ApOptions getApOptions()
     {
         return apOptions;
     }
 
 
+    /**
+     * Returns the {@link Authenticator}.
+     *
+     * @return The {@link Authenticator}.
+     */
     public Authenticator getAuthenticator()
     {
         return authenticator;
     }
 
 
+    /**
+     * Returns the {@link Ticket}.
+     *
+     * @return The {@link Ticket}.
+     */
     public Ticket getTicket()
     {
         return ticket;
     }
 
 
-    // delegate ApOptions methods
+    /**
+     * Returns the option at a specified index.
+     *
+     * @param option
+     * @return The option.
+     */
     public boolean getOption( int option )
     {
         return apOptions.get( option );
     }
 
 
+    /**
+     * Sets the option at a specified index.
+     *
+     * @param option
+     */
     public void setOption( int option )
     {
         apOptions.set( option );
     }
 
 
+    /**
+     * Clears the option at a specified index.
+     *
+     * @param option
+     */
     public void clearOption( int option )
     {
         apOptions.clear( option );
     }
 
 
+    /**
+     * Returns the {@link EncryptedData}.
+     *
+     * @return The {@link EncryptedData}.
+     */
     public EncryptedData getEncPart()
     {
         return encPart;
     }
 
 
+    /**
+     * Sets the {@link EncryptedData}.
+     *
+     * @param data
+     */
     public void setEncPart( EncryptedData data )
     {
         encPart = data;
     }
 
 
+    /**
+     * Sets the {@link ApOptions}.
+     *
+     * @param options
+     */
     public void setApOptions( ApOptions options )
     {
         apOptions = options;
     }
 
 
+    /**
+     * Sets the {@link Authenticator}.
+     *
+     * @param authenticator
+     */
     public void setAuthenticator( Authenticator authenticator )
     {
         this.authenticator = authenticator;
     }
 
 
+    /**
+     * Sets the {@link Ticket}.
+     *
+     * @param ticket
+     */
     public void setTicket( Ticket ticket )
     {
         this.ticket = ticket;

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/AuthenticationReply.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/AuthenticationReply.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/AuthenticationReply.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/AuthenticationReply.java Fri May 18 20:32:55 2007
@@ -34,7 +34,7 @@
 public class AuthenticationReply extends KdcReply
 {
     /**
-     * Class constructors
+     * Creates a new instance of AuthenticationReply.
      */
     public AuthenticationReply()
     {
@@ -42,8 +42,16 @@
     }
 
 
-    public AuthenticationReply(PreAuthenticationData[] paData, KerberosPrincipal clientPrincipal, Ticket ticket,
-        EncryptedData encPart)
+    /**
+     * Creates a new instance of AuthenticationReply.
+     *
+     * @param paData
+     * @param clientPrincipal
+     * @param ticket
+     * @param encPart
+     */
+    public AuthenticationReply( PreAuthenticationData[] paData, KerberosPrincipal clientPrincipal, Ticket ticket,
+        EncryptedData encPart )
     {
         super( paData, clientPrincipal, ticket, encPart, MessageType.KRB_AS_REP );
     }

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ErrorMessage.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ErrorMessage.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ErrorMessage.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ErrorMessage.java Fri May 18 20:32:55 2007
@@ -42,9 +42,22 @@
     private byte[] explanatoryData; //optional
 
 
-    public ErrorMessage(KerberosTime clientTime, Integer clientMicroSecond, KerberosTime serverTime,
+    /**
+     * Creates a new instance of ErrorMessage.
+     *
+     * @param clientTime
+     * @param clientMicroSecond
+     * @param serverTime
+     * @param serverMicroSecond
+     * @param errorCode
+     * @param clientPrincipal
+     * @param serverPrincipal
+     * @param explanatoryText
+     * @param explanatoryData
+     */
+    public ErrorMessage( KerberosTime clientTime, Integer clientMicroSecond, KerberosTime serverTime,
         int serverMicroSecond, int errorCode, KerberosPrincipal clientPrincipal, KerberosPrincipal serverPrincipal,
-        String explanatoryText, byte[] explanatoryData)
+        String explanatoryText, byte[] explanatoryData )
     {
         super( MessageType.KRB_ERROR );
 
@@ -60,54 +73,99 @@
     }
 
 
+    /**
+     * Returns the client {@link KerberosPrincipal}.
+     *
+     * @return The client {@link KerberosPrincipal}.
+     */
     public KerberosPrincipal getClientPrincipal()
     {
         return clientPrincipal;
     }
 
 
+    /**
+     * Returns the client {@link KerberosTime}.
+     *
+     * @return The client {@link KerberosTime}.
+     */
     public KerberosTime getClientTime()
     {
         return clientTime;
     }
 
 
+    /**
+     * Returns the client microsecond.
+     *
+     * @return The client microsecond.
+     */
     public Integer getClientMicroSecond()
     {
         return clientMicroSecond;
     }
 
 
+    /**
+     * Returns the explanatory data.
+     *
+     * @return The explanatory data.
+     */
     public byte[] getExplanatoryData()
     {
         return explanatoryData;
     }
 
 
+    /**
+     * Returns the error code.
+     *
+     * @return The error code.
+     */
     public int getErrorCode()
     {
         return errorCode;
     }
 
 
+    /**
+     * Returns the explanatory text.
+     *
+     * @return The explanatory text.
+     */
     public String getExplanatoryText()
     {
         return explanatoryText;
     }
 
 
+    /**
+     * Returns the server {@link KerberosPrincipal}.
+     *
+     * @return The server {@link KerberosPrincipal}.
+     */
     public KerberosPrincipal getServerPrincipal()
     {
         return serverPrincipal;
     }
 
 
+    /**
+     * Returns the server {@link KerberosTime}.
+     *
+     * @return The server {@link KerberosTime}.
+     */
     public KerberosTime getServerTime()
     {
         return serverTime;
     }
 
 
+    /**
+     * Returns the server microsecond.
+     *
+     * @return The server microsecond.
+     */
     public int getServerMicroSecond()
     {
         return serverMicroSecond;

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ErrorMessageModifier.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ErrorMessageModifier.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ErrorMessageModifier.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/ErrorMessageModifier.java Fri May 18 20:32:55 2007
@@ -42,6 +42,11 @@
     private byte[] explanatoryData; //optional
 
 
+    /**
+     * Returns the {@link ErrorMessage}.
+     *
+     * @return The {@link ErrorMessage}.
+     */
     public ErrorMessage getErrorMessage()
     {
         return new ErrorMessage( clientTime, clientMicroSecond, serverTime, serverMicroSecond, errorCode,
@@ -49,54 +54,99 @@
     }
 
 
+    /**
+     * Sets the client {@link KerberosPrincipal}.
+     *
+     * @param principal
+     */
     public void setClientPrincipal( KerberosPrincipal principal )
     {
         this.clientPrincipal = principal;
     }
 
 
+    /**
+     * Sets the client {@link KerberosTime}.
+     *
+     * @param time
+     */
     public void setClientTime( KerberosTime time )
     {
         this.clientTime = time;
     }
 
 
+    /**
+     * Sets the client microsecond.
+     *
+     * @param clientMicroSecond
+     */
     public void setClientMicroSecond( Integer clientMicroSecond )
     {
         this.clientMicroSecond = clientMicroSecond;
     }
 
 
+    /**
+     * Sets the explanatory data.
+     *
+     * @param data
+     */
     public void setExplanatoryData( byte[] data )
     {
         this.explanatoryData = data;
     }
 
 
+    /**
+     * Sets the error code.
+     *
+     * @param code
+     */
     public void setErrorCode( int code )
     {
         this.errorCode = code;
     }
 
 
+    /**
+     * Sets the explanatory text.
+     *
+     * @param text
+     */
     public void setExplanatoryText( String text )
     {
         this.explanatoryText = text;
     }
 
 
+    /**
+     * Sets the server {@link KerberosPrincipal}.
+     *
+     * @param principal
+     */
     public void setServerPrincipal( KerberosPrincipal principal )
     {
         this.serverPrincipal = principal;
     }
 
 
+    /**
+     * Sets the server {@link KerberosTime}.
+     *
+     * @param time
+     */
     public void setServerTime( KerberosTime time )
     {
         this.serverTime = time;
     }
 
 
+    /**
+     * Sets the server microsecond.
+     *
+     * @param serverMicroSecond
+     */
     public void setServerMicroSecond( int serverMicroSecond )
     {
         this.serverMicroSecond = serverMicroSecond;

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KdcReply.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KdcReply.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KdcReply.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KdcReply.java Fri May 18 20:32:55 2007
@@ -47,14 +47,28 @@
     private EncryptedData encPart;
 
 
-    public KdcReply(MessageType msgType)
+    /**
+     * Creates a new instance of KdcReply.
+     *
+     * @param msgType
+     */
+    public KdcReply( MessageType msgType )
     {
         super( msgType );
     }
 
 
-    public KdcReply(PreAuthenticationData[] paData, KerberosPrincipal clientPrincipal, Ticket ticket,
-        EncryptedData encPart, MessageType msgType)
+    /**
+     * Creates a new instance of KdcReply.
+     *
+     * @param paData
+     * @param clientPrincipal
+     * @param ticket
+     * @param encPart
+     * @param msgType
+     */
+    public KdcReply( PreAuthenticationData[] paData, KerberosPrincipal clientPrincipal, Ticket ticket,
+        EncryptedData encPart, MessageType msgType )
     {
         this( msgType );
         this.paData = paData;
@@ -64,62 +78,110 @@
     }
 
 
-    // getters
+    /**
+     * Returns the client {@link KerberosPrincipal}.
+     *
+     * @return The client {@link KerberosPrincipal}.
+     */
     public KerberosPrincipal getClientPrincipal()
     {
         return clientPrincipal;
     }
 
 
+    /**
+     * Returns the client realm.
+     *
+     * @return The client realm.
+     */
     public String getClientRealm()
     {
         return clientPrincipal.getRealm();
     }
 
 
+    /**
+     * Returns the {@link EncryptedData}.
+     *
+     * @return The {@link EncryptedData}.
+     */
     public EncryptedData getEncPart()
     {
         return encPart;
     }
 
 
+    /**
+     * Returns an array of {@link PreAuthenticationData}s.
+     *
+     * @return The array of {@link PreAuthenticationData}s.
+     */
     public PreAuthenticationData[] getPaData()
     {
         return paData;
     }
 
 
+    /**
+     * Returns the {@link Ticket}.
+     *
+     * @return The {@link Ticket}.
+     */
     public Ticket getTicket()
     {
         return ticket;
     }
 
 
-    // setters
+    /**
+     * Sets the client {@link KerberosPrincipal}.
+     *
+     * @param clientPrincipal
+     */
     public void setClientPrincipal( KerberosPrincipal clientPrincipal )
     {
         this.clientPrincipal = clientPrincipal;
     }
 
 
+    /**
+     * Sets the {@link EncKdcRepPart}.
+     *
+     * @param repPart
+     */
     public void setEncKDCRepPart( EncKdcRepPart repPart )
     {
         encKDCRepPart = repPart;
     }
 
 
+    /**
+     * Sets the {@link EncryptedData}.
+     *
+     * @param part
+     */
     public void setEncPart( EncryptedData part )
     {
         encPart = part;
     }
 
 
+    /**
+     * Sets the array of {@link PreAuthenticationData}s.
+     *
+     * @param data
+     */
     public void setPaData( PreAuthenticationData[] data )
     {
         paData = data;
     }
 
 
+    /**
+     * Sets the {@link Ticket}.
+     *
+     * @param ticket
+     */
     public void setTicket( Ticket ticket )
     {
         this.ticket = ticket;
@@ -127,72 +189,133 @@
 
 
     // EncKdcRepPart delegate getters
+
+    /**
+     * Returns the auth {@link KerberosTime}.
+     *
+     * @return The auth {@link KerberosTime}.
+     */
     public KerberosTime getAuthTime()
     {
         return encKDCRepPart.getAuthTime();
     }
 
 
+    /**
+     * Returns the client {@link HostAddresses}.
+     *
+     * @return The client {@link HostAddresses}.
+     */
     public HostAddresses getClientAddresses()
     {
         return encKDCRepPart.getClientAddresses();
     }
 
 
+    /**
+     * Return the end {@link KerberosTime}.
+     *
+     * @return The end {@link KerberosTime}.
+     */
     public KerberosTime getEndTime()
     {
         return encKDCRepPart.getEndTime();
     }
 
 
+    /**
+     * Returns the {@link TicketFlags}.
+     *
+     * @return The {@link TicketFlags}.
+     */
     public TicketFlags getFlags()
     {
         return encKDCRepPart.getFlags();
     }
 
 
+    /**
+     * Returns the {@link EncryptionKey}.
+     *
+     * @return The {@link EncryptionKey}.
+     */
     public EncryptionKey getKey()
     {
         return encKDCRepPart.getKey();
     }
 
 
+    /**
+     * Returns the key expiration {@link KerberosTime}.
+     *
+     * @return The key expiration {@link KerberosTime}.
+     */
     public KerberosTime getKeyExpiration()
     {
         return encKDCRepPart.getKeyExpiration();
     }
 
 
+    /**
+     * Returns the {@link LastRequest}.
+     *
+     * @return The {@link LastRequest}.
+     */
     public LastRequest getLastRequest()
     {
         return encKDCRepPart.getLastRequest();
     }
 
 
+    /**
+     * Returns the nonce.
+     *
+     * @return The nonce.
+     */
     public int getNonce()
     {
         return encKDCRepPart.getNonce();
     }
 
 
+    /**
+     * Returns the renew till {@link KerberosTime}.
+     *
+     * @return The renew till {@link KerberosTime}.
+     */
     public KerberosTime getRenewTill()
     {
         return encKDCRepPart.getRenewTill();
     }
 
 
+    /**
+     * Returns the server {@link KerberosPrincipal}.
+     *
+     * @return The server {@link KerberosPrincipal}.
+     */
     public KerberosPrincipal getServerPrincipal()
     {
         return encKDCRepPart.getServerPrincipal();
     }
 
 
+    /**
+     * Return the server realm.
+     *
+     * @return The server realm.
+     */
     public String getServerRealm()
     {
         return encKDCRepPart.getServerRealm();
     }
 
 
+    /**
+     * Returns the start {@link KerberosTime}.
+     *
+     * @return The start {@link KerberosTime}.
+     */
     public KerberosTime getStartTime()
     {
         return encKDCRepPart.getStartTime();
@@ -200,66 +323,122 @@
 
 
     // EncKdcRepPart delegate setters
+
+    /**
+     * Sets the auth {@link KerberosTime}.
+     *
+     * @param time
+     */
     public void setAuthTime( KerberosTime time )
     {
         encKDCRepPart.setAuthTime( time );
     }
 
 
+    /**
+     * Sets the client {@link HostAddresses}.
+     *
+     * @param addresses
+     */
     public void setClientAddresses( HostAddresses addresses )
     {
         encKDCRepPart.setClientAddresses( addresses );
     }
 
 
+    /**
+     * Sets the end {@link KerberosTime}.
+     *
+     * @param time
+     */
     public void setEndTime( KerberosTime time )
     {
         encKDCRepPart.setEndTime( time );
     }
 
 
+    /**
+     * Sets the {@link TicketFlags}.
+     *
+     * @param flags
+     */
     public void setFlags( TicketFlags flags )
     {
         encKDCRepPart.setFlags( flags );
     }
 
 
+    /**
+     * Sets the {@link EncryptionKey}.
+     *
+     * @param key
+     */
     public void setKey( EncryptionKey key )
     {
         encKDCRepPart.setKey( key );
     }
 
 
+    /**
+     * Sets the key expiration {@link KerberosTime}.
+     *
+     * @param expiration
+     */
     public void setKeyExpiration( KerberosTime expiration )
     {
         encKDCRepPart.setKeyExpiration( expiration );
     }
 
 
+    /**
+     * Sets the {@link LastRequest}.
+     *
+     * @param request
+     */
     public void setLastRequest( LastRequest request )
     {
         encKDCRepPart.setLastRequest( request );
     }
 
 
+    /**
+     * Sets the nonce.
+     *
+     * @param nonce
+     */
     public void setNonce( int nonce )
     {
         encKDCRepPart.setNonce( nonce );
     }
 
 
+    /**
+     * Sets the renew till {@link KerberosTime}.
+     *
+     * @param till
+     */
     public void setRenewTill( KerberosTime till )
     {
         encKDCRepPart.setRenewTill( till );
     }
 
 
+    /**
+     * Sets the server {@link KerberosPrincipal}.
+     *
+     * @param principal
+     */
     public void setServerPrincipal( KerberosPrincipal principal )
     {
         encKDCRepPart.setServerPrincipal( principal );
     }
 
 
+    /**
+     * Sets the start {@link KerberosTime}.
+     *
+     * @param time
+     */
     public void setStartTime( KerberosTime time )
     {
         encKDCRepPart.setStartTime( time );

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KdcRequest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KdcRequest.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KdcRequest.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KdcRequest.java Fri May 18 20:32:55 2007
@@ -43,7 +43,15 @@
     private byte[] bodyBytes;
 
 
-    public KdcRequest(int pvno, MessageType messageType, PreAuthenticationData[] preAuthData, RequestBody requestBody)
+    /**
+     * Creates a new instance of KdcRequest.
+     *
+     * @param pvno
+     * @param messageType
+     * @param preAuthData
+     * @param requestBody
+     */
+    public KdcRequest( int pvno, MessageType messageType, PreAuthenticationData[] preAuthData, RequestBody requestBody )
     {
         super( pvno, messageType );
         this.preAuthData = preAuthData;
@@ -51,20 +59,40 @@
     }
 
 
-    public KdcRequest(int pvno, MessageType messageType, PreAuthenticationData[] preAuthData, RequestBody requestBody,
-        byte[] bodyBytes)
+    /**
+     * Creates a new instance of KdcRequest.
+     *
+     * @param pvno
+     * @param messageType
+     * @param preAuthData
+     * @param requestBody
+     * @param bodyBytes
+     */
+    public KdcRequest( int pvno, MessageType messageType, PreAuthenticationData[] preAuthData, RequestBody requestBody,
+        byte[] bodyBytes )
     {
         this( pvno, messageType, preAuthData, requestBody );
         this.bodyBytes = bodyBytes;
     }
 
 
+    /**
+     * Returns an array of {@link PreAuthenticationData}s.
+     *
+     * @return The array of {@link PreAuthenticationData}s.
+     */
     public PreAuthenticationData[] getPreAuthData()
     {
         return preAuthData;
     }
 
 
+    /**
+     * Returns the bytes of the body.  This is used for verifying checksums in
+     * the Ticket-Granting Service (TGS).
+     *
+     * @return The bytes of the body.
+     */
     public byte[] getBodyBytes()
     {
         return bodyBytes;
@@ -72,72 +100,133 @@
 
 
     // RequestBody delegate methods
+
+    /**
+     * Returns additional {@link Ticket}s.
+     *
+     * @return The {@link Ticket}s.
+     */
     public Ticket[] getAdditionalTickets()
     {
         return requestBody.getAdditionalTickets();
     }
 
 
+    /**
+     * Returns the {@link HostAddresses}.
+     *
+     * @return The {@link HostAddresses}.
+     */
     public HostAddresses getAddresses()
     {
         return requestBody.getAddresses();
     }
 
 
+    /**
+     * Returns the client {@link KerberosPrincipal}.
+     *
+     * @return The client {@link KerberosPrincipal}.
+     */
     public KerberosPrincipal getClientPrincipal()
     {
         return requestBody.getClientPrincipal();
     }
 
 
+    /**
+     * Returns the realm of the server principal.
+     *
+     * @return The realm.
+     */
     public String getRealm()
     {
         return requestBody.getServerPrincipal().getRealm();
     }
 
 
+    /**
+     * Returns the {@link EncryptedData}.
+     *
+     * @return The {@link EncryptedData}.
+     */
     public EncryptedData getEncAuthorizationData()
     {
         return requestBody.getEncAuthorizationData();
     }
 
 
+    /**
+     * Returns an array of requested {@link EncryptionType}s.
+     *
+     * @return The array of {@link EncryptionType}s.
+     */
     public EncryptionType[] getEType()
     {
         return requestBody.getEType();
     }
 
 
+    /**
+     * Returns the from {@link KerberosTime}.
+     *
+     * @return The from {@link KerberosTime}.
+     */
     public KerberosTime getFrom()
     {
         return requestBody.getFrom();
     }
 
 
+    /**
+     * Returns the {@link KdcOptions}.
+     *
+     * @return The {@link KdcOptions}.
+     */
     public KdcOptions getKdcOptions()
     {
         return requestBody.getKdcOptions();
     }
 
 
+    /**
+     * Returns the nonce.
+     *
+     * @return The nonce.
+     */
     public int getNonce()
     {
         return requestBody.getNonce();
     }
 
 
+    /**
+     * Returns the "R" {@link KerberosTime}.
+     *
+     * @return The "R" {@link KerberosTime}.
+     */
     public KerberosTime getRtime()
     {
         return requestBody.getRtime();
     }
 
 
+    /**
+     * Returns the server {@link KerberosPrincipal}.
+     *
+     * @return The server {@link KerberosPrincipal}.
+     */
     public KerberosPrincipal getServerPrincipal()
     {
         return requestBody.getServerPrincipal();
     }
 
 
+    /**
+     * Returns the till {@link KerberosTime}.
+     *
+     * @return The till {@link KerberosTime}.
+     */
     public KerberosTime getTill()
     {
         return requestBody.getTill();
@@ -145,18 +234,35 @@
 
 
     // RequestBody KdcOptions delegate accesors
+
+    /**
+     * Returns the option at the specified index.
+     *
+     * @param option
+     * @return The option.
+     */
     public boolean getOption( int option )
     {
         return requestBody.getKdcOptions().get( option );
     }
 
 
+    /**
+     * Sets the option at the specified index.
+     *
+     * @param option
+     */
     public void setOption( int option )
     {
         requestBody.getKdcOptions().set( option );
     }
 
 
+    /**
+     * Clears the option at the specified index.
+     *
+     * @param option
+     */
     public void clearOption( int option )
     {
         requestBody.getKdcOptions().clear( option );

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KerberosMessage.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KerberosMessage.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KerberosMessage.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/KerberosMessage.java Fri May 18 20:32:55 2007
@@ -26,44 +26,77 @@
  */
 public class KerberosMessage
 {
-    // Kerberos protocol version number
+    /**
+     * The Kerberos protocol version number (5).
+     */
     public static final int PVNO = 5;
 
     private int protocolVersionNumber;
     private MessageType messageType;
 
 
-    public KerberosMessage(MessageType type)
+    /**
+     * Creates a new instance of KerberosMessage.
+     *
+     * @param type
+     */
+    public KerberosMessage( MessageType type )
     {
         this( PVNO, type );
     }
 
 
-    public KerberosMessage(int versionNumber, MessageType type)
+    /**
+     * Creates a new instance of KerberosMessage.
+     *
+     * @param versionNumber
+     * @param type
+     */
+    public KerberosMessage( int versionNumber, MessageType type )
     {
         protocolVersionNumber = versionNumber;
         messageType = type;
     }
 
 
+    /**
+     * Returns the {@link MessageType}.
+     *
+     * @return The {@link MessageType}.
+     */
     public MessageType getMessageType()
     {
         return messageType;
     }
 
 
+    /**
+     * Sets the {@link MessageType}.
+     *
+     * @param type
+     */
     public void setMessageType( MessageType type )
     {
         messageType = type;
     }
 
 
+    /**
+     * Returns the protocol version number.
+     *
+     * @return The protocol version number.
+     */
     public int getProtocolVersionNumber()
     {
         return protocolVersionNumber;
     }
 
 
+    /**
+     * Sets the protocol version number.
+     *
+     * @param versionNumber
+     */
     public void setProtocolVersionNumber( int versionNumber )
     {
         protocolVersionNumber = versionNumber;

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/TicketGrantReply.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/TicketGrantReply.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/TicketGrantReply.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/TicketGrantReply.java Fri May 18 20:32:55 2007
@@ -34,7 +34,7 @@
 public class TicketGrantReply extends KdcReply
 {
     /**
-     * Class constructors
+     * Creates a new instance of TicketGrantReply.
      */
     public TicketGrantReply()
     {
@@ -42,8 +42,16 @@
     }
 
 
-    public TicketGrantReply(PreAuthenticationData[] pAData, KerberosPrincipal clientPrincipal, Ticket ticket,
-        EncryptedData encPart)
+    /**
+     * Creates a new instance of TicketGrantReply.
+     *
+     * @param pAData
+     * @param clientPrincipal
+     * @param ticket
+     * @param encPart
+     */
+    public TicketGrantReply( PreAuthenticationData[] pAData, KerberosPrincipal clientPrincipal, Ticket ticket,
+        EncryptedData encPart )
     {
         super( pAData, clientPrincipal, ticket, encPart, MessageType.KRB_TGS_REP );
     }

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/ApplicationReply.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/ApplicationReply.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/ApplicationReply.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/ApplicationReply.java Fri May 18 20:32:55 2007
@@ -34,13 +34,23 @@
     private EncryptedData encryptedPart;
 
 
-    public ApplicationReply(EncryptedData encPart)
+    /**
+     * Creates a new instance of ApplicationReply.
+     *
+     * @param encPart
+     */
+    public ApplicationReply( EncryptedData encPart )
     {
         super( MessageType.KRB_AP_REP );
         encryptedPart = encPart;
     }
 
 
+    /**
+     * Returns the {@link EncryptedData}.
+     *
+     * @return The {@link EncryptedData}.
+     */
     public EncryptedData getEncPart()
     {
         return encryptedPart;

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/CredentialMessage.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/CredentialMessage.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/CredentialMessage.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/CredentialMessage.java Fri May 18 20:32:55 2007
@@ -36,7 +36,13 @@
     private Ticket[] tickets;
 
 
-    public CredentialMessage(EncryptedData encPart, Ticket[] tickets)
+    /**
+     * Creates a new instance of CredentialMessage.
+     *
+     * @param encPart
+     * @param tickets
+     */
+    public CredentialMessage( EncryptedData encPart, Ticket[] tickets )
     {
         super( MessageType.KRB_CRED );
         this.encPart = encPart;
@@ -44,12 +50,22 @@
     }
 
 
+    /**
+     * Returns the {@link EncryptedData}.
+     *
+     * @return The {@link EncryptedData}.
+     */
     public EncryptedData getEncPart()
     {
         return encPart;
     }
 
 
+    /**
+     * Returns an array of {@link Ticket}s.
+     *
+     * @return The array of {@link Ticket}s.
+     */
     public Ticket[] getTickets()
     {
         return tickets;

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/PrivateMessage.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/PrivateMessage.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/PrivateMessage.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/PrivateMessage.java Fri May 18 20:32:55 2007
@@ -34,6 +34,9 @@
     private EncryptedData encryptedPart;
 
 
+    /**
+     * Creates a new instance of PrivateMessage.
+     */
     public PrivateMessage()
     {
         super( MessageType.KRB_PRIV );
@@ -41,19 +44,34 @@
     }
 
 
-    public PrivateMessage(EncryptedData encryptedPart)
+    /**
+     * Creates a new instance of PrivateMessage.
+     *
+     * @param encryptedPart
+     */
+    public PrivateMessage( EncryptedData encryptedPart )
     {
         super( MessageType.KRB_PRIV );
         this.encryptedPart = encryptedPart;
     }
 
 
+    /**
+     * Returns the {@link EncryptedData}.
+     *
+     * @return The {@link EncryptedData}.
+     */
     public EncryptedData getEncryptedPart()
     {
         return encryptedPart;
     }
 
 
+    /**
+     * Sets the {@link EncryptedData}.
+     *
+     * @param encryptedData
+     */
     public void setEncryptedPart( EncryptedData encryptedData )
     {
         encryptedPart = encryptedData;

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/SafeBody.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/SafeBody.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/SafeBody.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/SafeBody.java Fri May 18 20:32:55 2007
@@ -39,10 +39,17 @@
 
 
     /**
-     * Class constructor
+     * Creates a new instance of SafeBody.
+     *
+     * @param userData
+     * @param timestamp
+     * @param usec
+     * @param seqNumber
+     * @param sAddress
+     * @param rAddress
      */
-    public SafeBody(byte[] userData, KerberosTime timestamp, Integer usec, Integer seqNumber, HostAddress sAddress,
-        HostAddress rAddress)
+    public SafeBody( byte[] userData, KerberosTime timestamp, Integer usec, Integer seqNumber, HostAddress sAddress,
+        HostAddress rAddress )
     {
         this.userData = userData;
         this.timestamp = timestamp;
@@ -53,36 +60,66 @@
     }
 
 
+    /**
+     * Returns the "R" {@link HostAddress}.
+     *
+     * @return The "R" {@link HostAddress}.
+     */
     public HostAddress getRAddress()
     {
         return rAddress;
     }
 
 
+    /**
+     * Returns the "S" {@link HostAddress}.
+     *
+     * @return The "S" {@link HostAddress}.
+     */
     public HostAddress getSAddress()
     {
         return sAddress;
     }
 
 
+    /**
+     * Returns the sequence number.
+     *
+     * @return The sequence number.
+     */
     public Integer getSeqNumber()
     {
         return seqNumber;
     }
 
 
+    /**
+     * Returns the {@link KerberosTime} timestamp.
+     *
+     * @return The {@link KerberosTime} timestamp.
+     */
     public KerberosTime getTimestamp()
     {
         return timestamp;
     }
 
 
+    /**
+     * Returns the microsecond.
+     *
+     * @return The microsecond.
+     */
     public Integer getUsec()
     {
         return usec;
     }
 
 
+    /**
+     * Returns the user data.
+     *
+     * @return The user data.
+     */
     public byte[] getUserData()
     {
         return userData;

Modified: directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/SafeMessage.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/SafeMessage.java?view=diff&rev=539684&r1=539683&r2=539684
==============================================================================
--- directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/SafeMessage.java (original)
+++ directory/apacheds/branches/kerberos-encryption-types/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/application/SafeMessage.java Fri May 18 20:32:55 2007
@@ -37,7 +37,13 @@
     private Checksum cksum;
 
 
-    public SafeMessage(SafeBody safeBody, Checksum cksum)
+    /**
+     * Creates a new instance of SafeMessage.
+     *
+     * @param safeBody
+     * @param cksum
+     */
+    public SafeMessage( SafeBody safeBody, Checksum cksum )
     {
         super( MessageType.KRB_SAFE );
         this.safeBody = safeBody;
@@ -45,6 +51,11 @@
     }
 
 
+    /**
+     * Returns the {@link Checksum}.
+     *
+     * @return The {@link Checksum}.
+     */
     public Checksum getCksum()
     {
         return cksum;
@@ -52,36 +63,67 @@
 
 
     // SafeBody delegate methods
+
+    /**
+     * Returns the "R" {@link HostAddress}.
+     *
+     * @return The "R" {@link HostAddress}.
+     */
     public HostAddress getRAddress()
     {
         return safeBody.getRAddress();
     }
 
 
+    /**
+     * Returns the "S" {@link HostAddress}.
+     *
+     * @return The "S" {@link HostAddress}.
+     */
     public HostAddress getSAddress()
     {
         return safeBody.getSAddress();
     }
 
 
+    /**
+     * Returns the sequence number.
+     *
+     * @return The sequence number.
+     */
     public Integer getSeqNumber()
     {
         return safeBody.getSeqNumber();
     }
 
 
+    /**
+     * Returns the {@link KerberosTime} timestamp.
+     *
+     * @return The {@link KerberosTime} timestamp.
+     */
     public KerberosTime getTimestamp()
     {
         return safeBody.getTimestamp();
     }
 
 
+    /**
+     * Returns the microsecond.
+     *
+     * @return The microsecond.
+     */
     public Integer getUsec()
     {
         return safeBody.getUsec();
     }
 
 
+    /**
+     * Returns the user data.
+     *
+     * @return The user data.
+     */
     public byte[] getUserData()
     {
         return safeBody.getUserData();



Mime
View raw message