directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1035698 - in /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos: components/ messages/
Date Tue, 16 Nov 2010 17:09:44 GMT
Author: elecharny
Date: Tue Nov 16 17:09:43 2010
New Revision: 1035698

URL: http://svn.apache.org/viewvc?rev=1035698&view=rev
Log:
o Added <pre></pre> tags in Javadocs
o Added some missing Javadoc

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/AuthorizationData.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/Checksum.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptedData.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddress.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddresses.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReq.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReqBody.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/PaData.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/PrincipalName.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/AsReq.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/TgsReq.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/Ticket.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/AuthorizationData.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/AuthorizationData.java?rev=1035698&r1=1035697&r2=1035698&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/AuthorizationData.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/AuthorizationData.java
Tue Nov 16 17:09:43 2010
@@ -41,11 +41,12 @@ import org.slf4j.LoggerFactory;
 /**
  * A structure to hold the authorization data.
  * 
+ * <pre>
  * AuthorizationData      ::= SEQUENCE OF SEQUENCE {
  *               ad-type  [0] Int32,
  *               ad-data  [1] OCTET STRING
  * }
- *
+ *</pre>
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public class AuthorizationData extends AbstractAsn1Object
@@ -105,7 +106,7 @@ public class AuthorizationData extends A
 
     /**
      * Compute the AuthorizationData length
-     * 
+     * <pre>
      * 0x30 L1 AuthorizationData sequence
      *  |
      *  +-- 0x30 L2 The AD sequence
@@ -117,7 +118,7 @@ public class AuthorizationData extends A
      *       +--> 0xA2 L4 adData tag
      *             |
      *             +--> 0x04 L<4-1 adData (OCTET STRING)
-     * 
+     * </pre>
      */
     @Override
     public int computeLength()

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/Checksum.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/Checksum.java?rev=1035698&r1=1035697&r2=1035698&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/Checksum.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/Checksum.java
Tue Nov 16 17:09:43 2010
@@ -41,11 +41,12 @@ import org.slf4j.LoggerFactory;
  * The Checksum structure is used to store a checksum associated to a type.
  * 
  * The ASN.1 grammar is :
+ * <pre>
  * Checksum        ::= SEQUENCE {
  *       cksumtype       [0] Int32,
  *       checksum        [1] OCTET STRING
  * }
- * 
+ * </pre>
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public class Checksum extends AbstractAsn1Object
@@ -171,7 +172,7 @@ public class Checksum extends AbstractAs
 
     /**
      * Compute the checksum length
-     * 
+     * <pre>
      * Checksum :
      * 
      * 0x30 L1 checksum sequence
@@ -189,6 +190,7 @@ public class Checksum extends AbstractAs
      *  and
      *  L2 = L2-1 + length(0x02) + length( L2-1) 
      *  L3 = L3-1 + length(0x04) + length( L3-1) 
+     *  </pre>
      */
     public int computeLength()
     {
@@ -219,6 +221,7 @@ public class Checksum extends AbstractAs
     /**
      * Encode the Checksum message to a PDU. 
      * 
+     * <pre>
      * Checksum :
      * 
      * 0x30 LL
@@ -226,7 +229,7 @@ public class Checksum extends AbstractAs
      *     0x02 0x01 cksumtype
      *   0xA1 LL 
      *     0x04 LL Checksum
-     * 
+     * </pre>
      * @param buffer The buffer where to put the PDU. It should have been allocated
      * before, with the right size.
      * @return The constructed PDU.

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptedData.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptedData.java?rev=1035698&r1=1035697&r2=1035698&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptedData.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptedData.java
Tue Nov 16 17:09:43 2010
@@ -37,13 +37,13 @@ import org.slf4j.LoggerFactory;
 
 /**
  * A structure storing an encrypted data element. The ASN.1 grammar is :
- * 
+ * <pre>
  * EncryptedData   ::= SEQUENCE {
  *        etype   [0] Int32 -- EncryptionType --,
  *        kvno    [1] UInt32 OPTIONAL,
  *        cipher  [2] OCTET STRING -- ciphertext
  * }
- *
+ *</pre>
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public class EncryptedData extends AbstractAsn1Object
@@ -188,7 +188,7 @@ public class EncryptedData extends Abstr
 
     /**
      * Compute the EncryptedData length
-     * 
+     * <pre>
      * EncryptedData :
      * 
      * 0x30 L1 EncryptedData sequence
@@ -204,6 +204,7 @@ public class EncryptedData extends Abstr
      *  +--> 0xA2 L4 cipher tag
      *        |
      *        +--> 0x04 L4-1 cipher (OCTET STRING)
+     * </pre>
      */
     public int computeLength()
     {
@@ -246,7 +247,7 @@ public class EncryptedData extends Abstr
 
     /**
      * Encode the EncryptedData message to a PDU. 
-     * 
+     * <pre>
      * EncryptedData :
      * 
      * 0x30 LL
@@ -256,7 +257,7 @@ public class EncryptedData extends Abstr
      *     0x02 0x01 kvno (integer)] (optional)
      *   0xA2 LL 
      *     0x04 LL cipher (OCTET STRING)
-     * 
+     * </pre>
      * @param buffer The buffer where to put the PDU. It should have been allocated
      * before, with the right size.
      * @return The constructed PDU.

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=1035698&r1=1035697&r2=1035698&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
Tue Nov 16 17:09:43 2010
@@ -42,11 +42,12 @@ import org.slf4j.LoggerFactory;
  * the associated key type and key version number.
  * 
  * The ASN.1 description for this structure is :
+ * <pre>
  * EncryptionKey   ::= SEQUENCE {
  *       keytype         [0] Int32 -- actually encryption type --,
  *       keyvalue        [1] OCTET STRING
  * }
- * 
+ * </pre>
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public class EncryptionKey extends AbstractAsn1Object

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddress.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddress.java?rev=1035698&r1=1035697&r2=1035698&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddress.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddress.java
Tue Nov 16 17:09:43 2010
@@ -42,12 +42,12 @@ import org.slf4j.LoggerFactory;
  * Provides host address information.
  * 
  * The ASN.1 grammaor for this structure is :
- * 
+ * <pre>
  * HostAddress     ::= SEQUENCE  {
  *        addr-type       [0] Int32,
  *        address         [1] OCTET STRING
  * }
- * 
+ * </pre>
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public class HostAddress extends AbstractAsn1Object
@@ -206,7 +206,7 @@ public class HostAddress extends Abstrac
 
     /**
      * Compute the host address length
-     * 
+     * <pre>
      * HostAddress :
      * 
      * 0x30 L1 hostAddress sequence
@@ -224,6 +224,7 @@ public class HostAddress extends Abstrac
      *  and
      *  L2 = L2-1 + length(0x02) + length( L2-1) 
      *  L3 = L3-1 + length(0x04) + length( L3-1) 
+     *  </pre>
      */
     public int computeLength()
     {
@@ -252,7 +253,7 @@ public class HostAddress extends Abstrac
 
     /**
      * Encode the HostAddress message to a PDU. 
-     * 
+     * <pre>
      * HostAddress :
      * 
      * 0x30 LL
@@ -260,7 +261,7 @@ public class HostAddress extends Abstrac
      *     0x02 0x01 addr-type
      *   0xA1 LL 
      *     0x04 LL address
-     * 
+     * </pre>
      * @param buffer The buffer where to put the PDU. It should have been allocated
      * before, with the right size.
      * @return The constructed PDU.

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddresses.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddresses.java?rev=1035698&r1=1035697&r2=1035698&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddresses.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddresses.java
Tue Nov 16 17:09:43 2010
@@ -180,7 +180,7 @@ public class HostAddresses extends Abstr
 
     /**
      * Compute the hostAddresses length
-     * 
+     * <pre>
      * HostAddresses :
      * 
      * 0x30 L1 hostAddresses sequence of HostAddresses
@@ -194,6 +194,7 @@ public class HostAddresses extends Abstr
      *  +--> 0x30 L2[n] Hostaddress[n]
      *        
      *  where L1 = sum( L2[1], l2[2], ..., L2[n] )
+     * </pre>
      */
     public int computeLength()
     {
@@ -215,7 +216,7 @@ public class HostAddresses extends Abstr
 
     /**
      * Encode the HostAddress message to a PDU. 
-     * 
+     * <pre>
      * HostAddress :
      * 
      * 0x30 LL
@@ -223,7 +224,7 @@ public class HostAddresses extends Abstr
      *   0x30 LL hostaddress[1]
      *   ... 
      *   0x30 LL hostaddress[1] 
-     * 
+     * </pre>
      * @param buffer The buffer where to put the PDU. It should have been allocated
      * before, with the right size.
      * @return The constructed PDU.

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReq.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReq.java?rev=1035698&r1=1035697&r2=1035698&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReq.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReq.java
Tue Nov 16 17:09:43 2010
@@ -147,7 +147,7 @@ public abstract class KdcReq
     
     /**
      * Compute the KDC-REQ length
-     * 
+     * <pre>
      * KDC-REQ :
      * 
      * 0x30 L1 KDC-REQ sequence
@@ -167,7 +167,7 @@ public abstract class KdcReq
      *  +--> 0xA4 L3 req-body tag
      *  |     |
      *  |     +--> 0x30 L3-1 req-body (KDC-REQ-BODY)
-     *        
+     * </pre>       
      */
     public int computeLength()
     {

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=1035698&r1=1035697&r2=1035698&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
Tue Nov 16 17:09:43 2010
@@ -393,7 +393,7 @@ public class KdcReqBody
     
     /**
      * Compute the KdcReqBody length
-     * 
+     * <pre>
      * KdcReqBody :
      * 
      * 0x30 L1 KdcReqBody sequence
@@ -457,7 +457,7 @@ public class KdcReqBody
      *              +--> 0x61 L13-1-2 Ticket
      *              |
      *              :
-     *        
+     * </pre>       
      */
     public int computeLength()
     {

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/PaData.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/PaData.java?rev=1035698&r1=1035697&r2=1035698&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/PaData.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/PaData.java
Tue Nov 16 17:09:43 2010
@@ -38,13 +38,13 @@ import org.slf4j.LoggerFactory;
 
 /**
  * The Pre-Authentication data. Tha ASN.1 GRAMMAR IS :
- * 
+ * <pre>
  * PA-DATA         ::= SEQUENCE {
  *         -- NOTE: first tag is [1], not [0]
  *         padata-type     [1] Int32,
  *         padata-value    [2] OCTET STRING -- might be encoded AP-REQ
  * }
- * 
+ * </pre>
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public class PaData extends AbstractAsn1Object
@@ -145,7 +145,7 @@ public class PaData extends AbstractAsn1
     
     /**
      * Compute the PreAuthenticationData length
-     * 
+     * <pre>
      * PreAuthenticationData :
      * 
      * 0x30 L1 PreAuthenticationData sequence
@@ -163,6 +163,7 @@ public class PaData extends AbstractAsn1
      *  and
      *  L2 = L2-1 + length(0x02) + length( L2-1) 
      *  L3 = L3-1 + length(0x04) + length( L3-1) 
+     *  </pre>
      */
     public int computeLength()
     {
@@ -191,7 +192,7 @@ public class PaData extends AbstractAsn1
 
     /**
      * Encode the PreAuthenticationData message to a PDU. 
-     * 
+     * <pre>
      * PreAuthenticationData :
      * 
      * 0x30 LL
@@ -199,7 +200,7 @@ public class PaData extends AbstractAsn1
      *     0x02 0x01 padata-type
      *   0xA2 LL 
      *     0x04 LL padata-value
-     * 
+     * </pre>
      * @param buffer The buffer where to put the PDU. It should have been allocated
      * before, with the right size.
      * @return The constructed PDU.

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/PrincipalName.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/PrincipalName.java?rev=1035698&r1=1035697&r2=1035698&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/PrincipalName.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/PrincipalName.java
Tue Nov 16 17:09:43 2010
@@ -109,12 +109,12 @@ import org.slf4j.LoggerFactory;
 
 /**
  * A principal Name, composed of a type and N names.
- * 
+ * <pre>
  * PrincipalName   ::= SEQUENCE {
  *        name-type       [0] Int32,
  *        name-string     [1] SEQUENCE OF KerberosString
  * }
- *
+ * </pre>
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public class PrincipalName extends AbstractAsn1Object
@@ -287,7 +287,7 @@ public class PrincipalName extends Abstr
 
     /**
      * Compute the PrincipalName length
-     * 
+     * <pre>
      * PrincipalName :
      * 
      * 0x30 L1 PrincipalName sequence
@@ -307,6 +307,7 @@ public class PrincipalName extends Abstr
      *              ...
      *              |
      *              +--> 0x1B L4[n] value (KerberosString)
+     * </pre>
      */
     public int computeLength()
     {
@@ -352,7 +353,7 @@ public class PrincipalName extends Abstr
 
     /**
      * Encode the PrincipalName message to a PDU. 
-     * 
+     * <pre>
      * PrincipalName :
      * 
      * 0x30 LL
@@ -364,7 +365,7 @@ public class PrincipalName extends Abstr
      *       0x1B LL name-string[2]
      *       ...
      *       0x1B LL name-string[n]
-     * 
+     * </pre>
      * @param buffer The buffer where to put the PDU. It should have been allocated
      * before, with the right size.
      * @return The constructed PDU.

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/AsReq.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/AsReq.java?rev=1035698&r1=1035697&r2=1035698&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/AsReq.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/AsReq.java
Tue Nov 16 17:09:43 2010
@@ -31,7 +31,10 @@ import org.apache.directory.shared.kerbe
 
 /**
  * AS-REQ message. It's just a KDC-REQ message with a message type set to 10.
- * 
+ *  It will store the object described by the ASN.1 grammar :
+ * <pre>
+ * AS-REQ          ::= [APPLICATION 10] <KDC-REQ>
+ * </pre>
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public class AsReq extends KdcReq
@@ -57,6 +60,7 @@ public class AsReq extends KdcReq
      * 0x6A L1 AS-REQ message
      *  |
      *  +-->  0x30 L2 KDC-REQ sequence
+     * </pre>
      */
     public int computeLength()
     {

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/TgsReq.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/TgsReq.java?rev=1035698&r1=1035697&r2=1035698&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/TgsReq.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/TgsReq.java
Tue Nov 16 17:09:43 2010
@@ -31,7 +31,10 @@ import org.apache.directory.shared.kerbe
 
 /**
  * TGS-REQ message. It's just a KDC-REQ message with a message type set to 12.
- * 
+ *  It will store the object described by the ASN.1 grammar :
+ * <pre>
+ * TGS-REQ         ::= [APPLICATION 12] <KDC-REQ>
+ * </pre>
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public class TgsReq extends KdcReq
@@ -57,6 +60,7 @@ public class TgsReq extends KdcReq
      * 0x6A L1 TGS-REQ message
      *  |
      *  +-->  0x30 L2 KDC-REQ sequence
+     * </pre>
      */
     public int computeLength()
     {

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/Ticket.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/Ticket.java?rev=1035698&r1=1035697&r2=1035698&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/Ticket.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/Ticket.java
Tue Nov 16 17:09:43 2010
@@ -46,7 +46,16 @@ import sun.security.krb5.internal.EncTic
 
 
 /**
- * Ticket message component as handed out by the ticket granting service.
+ * Ticket message component as handed out by the ticket granting service. It will store
+ * the object described by the ASN.1 grammar :
+ * <pre>
+ * Ticket          ::= [APPLICATION 1] SEQUENCE {
+ *         tkt-vno         [0] INTEGER (5),
+ *         realm           [1] Realm,
+ *         sname           [2] <PrincipalName>,
+ *         enc-part        [3] <EncryptedData> -- EncTicketPart
+ * }
+ * </pre>
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
@@ -419,7 +428,7 @@ public class Ticket extends KerberosMess
     
     /**
      * Compute the Ticket length
-     * 
+     * <pre>
      * Ticket :
      * 
      * 0x61 L1 Ticket [APPLICATION 1]
@@ -437,6 +446,7 @@ public class Ticket extends KerberosMess
      *        +--> 0xA2 L5 sname (PrincipalName)
      *        |
      *        +--> 0xA3 L6 enc-part (EncryptedData)
+     * </pre>
      */
     public int computeLength()
     {
@@ -468,7 +478,7 @@ public class Ticket extends KerberosMess
     
     /**
      * Encode the Ticket message to a PDU. 
-     * 
+     * <pre>
      * Ticket :
      * 
      * 0x61 LL
@@ -479,7 +489,7 @@ public class Ticket extends KerberosMess
      *       sname (PrincipalName)
      *     0xA3 LL
      *       enc-part (EncryptedData)
-     * 
+     * </pre>
      * @return The constructed PDU.
      */
     public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException



Mime
View raw message