directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1038373 - in /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos: codec/encKrbPrivPart/EncKrbPrivPartStatesEnum.java components/EncKrbPrivPart.java
Date Tue, 23 Nov 2010 23:11:45 GMT
Author: elecharny
Date: Tue Nov 23 23:11:45 2010
New Revision: 1038373

URL: http://svn.apache.org/viewvc?rev=1038373&view=rev
Log:
Minor Javadoc fixes

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

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encKrbPrivPart/EncKrbPrivPartStatesEnum.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encKrbPrivPart/EncKrbPrivPartStatesEnum.java?rev=1038373&r1=1038372&r2=1038373&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encKrbPrivPart/EncKrbPrivPartStatesEnum.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encKrbPrivPart/EncKrbPrivPartStatesEnum.java
Tue Nov 23 23:11:45 2010
@@ -34,11 +34,11 @@ import org.apache.directory.shared.kerbe
 public enum EncKrbPrivPartStatesEnum implements States
 {
     // Start
-    START_STATE,                                // 0
+    START_STATE,                                    // 0
     
-    // ----- KRB-ERROR component --------------------------------------
+    // ----- EncKrbPrivPart component --------------------------------------
     
-    ENC_KRB_PRIV_PART_TAG_STATE,                // 2
+    ENC_KRB_PRIV_PART_TAG_STATE,                    // 2
     
     ENC_KRB_PRIV_PART_SEQ_TAG_STATE,                // 3
     

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncKrbPrivPart.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncKrbPrivPart.java?rev=1038373&r1=1038372&r2=1038373&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncKrbPrivPart.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncKrbPrivPart.java
Tue Nov 23 23:11:45 2010
@@ -36,6 +36,10 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
+ * The EncKrbPrivPart structure is used to store a EncKrbPrivPart associated to a type.
+ * 
+ * The ASN.1 grammar is :
+ * <pre>
  * EncKrbPrivPart  ::= [APPLICATION 28] SEQUENCE {
  *      user-data       [0] OCTET STRING,
  *      timestamp       [1] KerberosTime OPTIONAL,
@@ -44,7 +48,7 @@ import org.slf4j.LoggerFactory;
  *      s-address       [4] HostAddress -- sender's addr --,
  *      r-address       [5] HostAddress OPTIONAL -- recip's addr
  * }
- *
+ * </pre>
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 //NOTE: this ASN.1 structure is quite identical to KrbSafeBody
@@ -74,6 +78,7 @@ public class EncKrbPrivPart extends Abst
     /** the recipient's address */
     private HostAddress recipientAddress;
 
+    // Storage for computed lengths
     private transient int userDataLen;
     private transient int timestampLen;
     private transient int usecLen;
@@ -83,6 +88,126 @@ public class EncKrbPrivPart extends Abst
     private transient int encKrbPrivPartSeqLen;
     private transient int encKrbPrivPartLen;
 
+
+
+    /**
+     * @return the userData
+     */
+    public byte[] getUserData()
+    {
+        return userData;
+    }
+
+
+    /**
+     * @param userData the userData to set
+     */
+    public void setUserData( byte[] userData )
+    {
+        this.userData = userData;
+    }
+
+
+    /**
+     * @return the timestamp
+     */
+    public KerberosTime getTimestamp()
+    {
+        return timestamp;
+    }
+
+
+    /**
+     * @param timestamp the timestamp to set
+     */
+    public void setTimestamp( KerberosTime timestamp )
+    {
+        this.timestamp = timestamp;
+    }
+
+
+    /**
+     * @return the usec
+     */
+    public int getUsec()
+    {
+        if ( usec == null )
+        {
+            return 0;
+        }
+
+        return usec;
+    }
+
+
+    /**
+     * @param usec the usec to set
+     */
+    public void setUsec( int usec )
+    {
+        this.usec = usec;
+    }
+
+
+    /**
+     * @return the seqNumber
+     */
+    public int getSeqNumber()
+    {
+        if ( seqNumber == null )
+        {
+            return 0;
+        }
+
+        return seqNumber;
+    }
+
+
+    /**
+     * @param seqNumber the seqNumber to set
+     */
+    public void setSeqNumber( int seqNumber )
+    {
+        this.seqNumber = seqNumber;
+    }
+
+
+    /**
+     * @return the senderAddress
+     */
+    public HostAddress getSenderAddress()
+    {
+        return senderAddress;
+    }
+
+
+    /**
+     * @param senderAddress the senderAddress to set
+     */
+    public void setSenderAddress( HostAddress senderAddress )
+    {
+        this.senderAddress = senderAddress;
+    }
+
+
+    /**
+     * @return the recipientAddress
+     */
+    public HostAddress getRecipientAddress()
+    {
+        return recipientAddress;
+    }
+
+
+    /**
+     * @param recipientAddress the recipientAddress to set
+     */
+    public void setRecipientAddress( HostAddress recipientAddress )
+    {
+        this.recipientAddress = recipientAddress;
+    }
+
+
     /**
      * Compute the EncKrbPrivPart length:
      * 
@@ -240,125 +365,7 @@ public class EncKrbPrivPart extends Abst
         return buffer;
     }
 
-
-    /**
-     * @return the userData
-     */
-    public byte[] getUserData()
-    {
-        return userData;
-    }
-
-
-    /**
-     * @param userData the userData to set
-     */
-    public void setUserData( byte[] userData )
-    {
-        this.userData = userData;
-    }
-
-
-    /**
-     * @return the timestamp
-     */
-    public KerberosTime getTimestamp()
-    {
-        return timestamp;
-    }
-
-
-    /**
-     * @param timestamp the timestamp to set
-     */
-    public void setTimestamp( KerberosTime timestamp )
-    {
-        this.timestamp = timestamp;
-    }
-
-
-    /**
-     * @return the usec
-     */
-    public int getUsec()
-    {
-        if ( usec == null )
-        {
-            return 0;
-        }
-
-        return usec;
-    }
-
-
-    /**
-     * @param usec the usec to set
-     */
-    public void setUsec( int usec )
-    {
-        this.usec = usec;
-    }
-
-
-    /**
-     * @return the seqNumber
-     */
-    public int getSeqNumber()
-    {
-        if ( seqNumber == null )
-        {
-            return 0;
-        }
-
-        return seqNumber;
-    }
-
-
-    /**
-     * @param seqNumber the seqNumber to set
-     */
-    public void setSeqNumber( int seqNumber )
-    {
-        this.seqNumber = seqNumber;
-    }
-
-
-    /**
-     * @return the senderAddress
-     */
-    public HostAddress getSenderAddress()
-    {
-        return senderAddress;
-    }
-
-
-    /**
-     * @param senderAddress the senderAddress to set
-     */
-    public void setSenderAddress( HostAddress senderAddress )
-    {
-        this.senderAddress = senderAddress;
-    }
-
-
-    /**
-     * @return the recipientAddress
-     */
-    public HostAddress getRecipientAddress()
-    {
-        return recipientAddress;
-    }
-
-
-    /**
-     * @param recipientAddress the recipientAddress to set
-     */
-    public void setRecipientAddress( HostAddress recipientAddress )
-    {
-        this.recipientAddress = recipientAddress;
-    }
-
-
+    
     /**
      * @see Object#toString()
      */



Mime
View raw message