directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1034211 - /directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/
Date Thu, 11 Nov 2010 23:42:23 GMT
Author: elecharny
Date: Thu Nov 11 23:42:22 2010
New Revision: 1034211

URL: http://svn.apache.org/viewvc?rev=1034211&view=rev
Log:
Updated the Javadoc

Modified:
    directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/AuthenticatorEncoder.java
    directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/AuthorizationDataEncoder.java
    directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTicketPartEncoder.java
    directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptedDataEncoder.java
    directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionKeyEncoder.java
    directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ErrorMessageEncoder.java
    directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/HostAddressesEncoder.java
    directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PreAuthenticationDataEncoder.java
    directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrincipalNameEncoder.java
    directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrivateMessageEncoder.java
    directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/TicketEncoder.java
    directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/TransitedEncodingEncoder.java

Modified: directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/AuthenticatorEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/AuthenticatorEncoder.java?rev=1034211&r1=1034210&r2=1034211&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/AuthenticatorEncoder.java
(original)
+++ directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/AuthenticatorEncoder.java
Thu Nov 11 23:42:22 2010
@@ -87,6 +87,47 @@ public class AuthenticatorEncoder implem
      *  
      *                authorization-data[8]         AuthorizationData OPTIONAL
      * }
+     * Authenticator :
+     *
+     * 0x62 L1 Authenticator Tag (Application 2)
+     * |
+     * +--> 0x30 L2 Authenticator sequence
+     * |
+     * +--> 0xA0 L2 authenticator-vno tag
+     * |     |
+     * |     +--> 0x02 L2-1 authenticator-vno (int)
+     * | 
+     * +--> 0xA1 L3 crealm tag
+     * |     |
+     * |     +--> 0x1B L3-1 crealm (crealm)
+     * | 
+     * +--> 0xA2 L4 cname tag
+     * |     |
+     * |     +--> 0x30 L4-1 cname (PrincipalName)
+     * | 
+     * +--> [0xA3 L5 cksum tag
+     * |     |
+     * |     +--> 0x30 L5-1 cksum (Checksum)] (optional)
+     * | 
+     * +--> 0xA4 L6 cusec tag 
+     * |     |
+     * |     +--> 0x02 L6-1 cusec (int)
+     * | 
+     * +--> 0xA5 0x11 ctime tag
+     * |     |
+     * |     +--> 0x18 0x0F ctime (KerberosTime)
+     * | 
+     * +--> [0xA6 L7 subkey tag
+     * |      |
+     * |      +--> 0x30 L7-1 subkey (EncryptionKey)] (optional)
+     * | 
+     * +--> [0xA7 L8 seqNumber tag
+     * |      |
+     * |      +--> 0x02 L8-1 seqNulber (int > 0)] (optional)
+     * | 
+     * +--> [0xA8 L9 authorization-data tag
+     * |
+     * +--> 0x30 L9-1 authorization-data (AuthorizationData)] (optional)
      * 
      * @param authenticator 
      * @return The {@link DERSequence}.

Modified: directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/AuthorizationDataEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/AuthorizationDataEncoder.java?rev=1034211&r1=1034210&r2=1034211&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/AuthorizationDataEncoder.java
(original)
+++ directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/AuthorizationDataEncoder.java
Thu Nov 11 23:42:22 2010
@@ -38,6 +38,26 @@ public class AuthorizationDataEncoder
      *     ad-type[0]               INTEGER,
      *     ad-data[1]               OCTET STRING
      * }
+     * 
+     * 0x30 L1 AuthorizationData
+     *  |
+     *  +--> 0x30 L2 AuthorizationDataEntry
+     *  |
+     *  +--> 0x30 L2 AuthorizationDataEntry
+     *  |
+     *  ...
+     *  |
+     *  +--> 0x30 L2 AuthorizationDataEntry
+     *  
+     * 0x30 L1 AuthorizationDataEntry
+     *  |
+     *  +--> 0xA0 L2 adType tag
+     *  |     |
+     *  |     +--> 0x02 L2-1 adType (int)
+     *  |
+     *  +--> 0xA1 L3 adData tag
+     *        |
+     *        +--> 0x04 L3-1 adData (OCTET STRING)
      */
     protected static DERSequence encode( AuthorizationData data )
     {

Modified: directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTicketPartEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTicketPartEncoder.java?rev=1034211&r1=1034210&r2=1034211&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTicketPartEncoder.java
(original)
+++ directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncTicketPartEncoder.java
Thu Nov 11 23:42:22 2010
@@ -81,6 +81,45 @@ public class EncTicketPartEncoder implem
      *                       authorization-data[10]   AuthorizationData OPTIONAL
      * }
      * 
+     * EncTicketPart :
+     *
+     * 0x63 L1 EncTicketPart
+     * |
+     * +--> 0x30 L2 EncTicketPart SEQUENCE
+     * |
+     * +--> 0xA0 L3 flags tag
+     * |     |
+     * |     +--> 0x05 L3-1 flags (bitstring)
+     * |
+     * +--> 0xA1 L4 key (EncryptionKey)
+     * |
+     * +--> 0xA2 L5 crealm tag
+     * |     |
+     * |     +--> 0x1B L5-1 crealm (generalizedString)
+     * |
+     * +--> 0xA3 L6 cname (PrincipalName)
+     * |
+     * +--> 0xA4 L7 transited (TransitedEncoding)
+     * |
+     * +--> 0xA5 L8 authtime tag
+     * |     |
+     * |     +--> 0x18 L8-1 authtime (generalizedTime)
+     * |
+     * +--> [0xA6 L9 starttime tag
+     * |      |
+     * |      +--> 0x18 L9-1 starttime (generalizedTime)]
+     * |
+     * +--> 0xA7 L10 endtime tag
+     * |     |
+     * |     +--> 0x18 L10-1 endtime (generalizedTime)
+     * |
+     * +--> [0xA8 L11 renew-till tag
+     * |     |
+     * |     +--> 0x18 L11-1 renew-till (generalizedTime)]
+     * |
+     * +--> [0xA9 L12 caddr:HostAddresses]
+     * |
+     * +--> [0xAA L13 authorization-data:AuthorizationData]
      * @param ticketPart 
      * @return The {@link DERSequence}.
      */

Modified: directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptedDataEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptedDataEncoder.java?rev=1034211&r1=1034210&r2=1034211&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptedDataEncoder.java
(original)
+++ directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptedDataEncoder.java
Thu Nov 11 23:42:22 2010
@@ -64,6 +64,20 @@ public class EncryptedDataEncoder
      *             cipher[2]    OCTET STRING -- ciphertext
      * }
      * 
+     * 0x30 L1 EncryptedData sequence
+     *  |
+     *  +--> 0xA1 L2 etype tag
+     *  |     |
+     *  |     +--> 0x02 L2-1 etype (int)
+     *  |
+     *  +--> [0xA2 L3 kvno tag
+     *  |      |
+     *  |      +--> 0x30 L3-1 kvno (int)] (optional)
+     *  |
+     *  +--> 0xA2 L4 cipher tag
+     *        |
+     *        +--> 0x04 L4-1 cipher (OCTET STRING)
+     *  
      * @param encryptedData 
      * @return The {@link DERSequence}.
      */

Modified: directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionKeyEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionKeyEncoder.java?rev=1034211&r1=1034210&r2=1034211&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionKeyEncoder.java
(original)
+++ directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/EncryptionKeyEncoder.java
Thu Nov 11 23:42:22 2010
@@ -39,6 +39,16 @@ public class EncryptionKeyEncoder
     /**
      * Encodes an {@link EncryptionKey} into a byte array.
      *
+     * 0x30 L1 EncryptionKey
+     *  |
+     *  +--> 0xA0 L2 keyType tag
+     *  |     |
+     *  |     +--> 0x02 L2-1 keyType (int)
+     *  |
+     *  +--> 0xA1 L3 keyValue tag
+     *        |
+     *        +--> 0x04 L3-1 keyValue (OCTET STRING)
+     *        
      * @param key
      * @return The byte array.
      * @throws IOException

Modified: directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ErrorMessageEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ErrorMessageEncoder.java?rev=1034211&r1=1034210&r2=1034211&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ErrorMessageEncoder.java
(original)
+++ directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/ErrorMessageEncoder.java
Thu Nov 11 23:42:22 2010
@@ -60,6 +60,62 @@ public class ErrorMessageEncoder
     /**
      * Encodes an {@link ErrorMessage} into a byte array.
      *
+     * 0x7E L1
+     *  |
+     *  +--> 0x30 L2
+     *        |
+     *        +--> 0xA0 0x03
+     *        |       |
+     *        |       +--> 0x02 0x01 pvno (integer)
+     *        |
+     *        +--> 0xA1 0x03
+     *        |       |
+     *        |       +--> 0x02 0x01 messageType (integer)
+     *        |
+     *       [+--> 0xA2 0x11
+     *        |       |
+     *        |       +--> 0x18 0x0F ctime (KerberosTime, optionnal)]
+     *        |
+     *       [+--> 0xA3 L3
+     *        |       |
+     *        |       +--> 0x02 L3-1 cusec (integer, optionnal)]
+     *        |
+     *        +--> 0xA4 L4
+     *        |       |
+     *        |       +--> 0x18 L4-1 stime (KerberosTime)
+     *        |
+     *        +--> 0xA5 L5
+     *        |       |
+     *        |       +--> 0x02 L5-1 susec (integer)
+     *        |
+     *        +--> 0xA6 L6
+     *        |       |
+     *        |       +--> 0x02 L6-1 error-code (integer) 
+     *        |
+     *       [+--> 0xA7 L7
+     *        |       | 
+     *        |       +--> 0x1B L7-1 crealm (String, optionnal)]
+     *        | 
+     *       [+--> 0xA8 L8
+     *        |       | 
+     *        |       +--> 0x1B L8-1 cname (String, optionnal)]
+     *        |
+     *        +--> 0xA9 L9
+     *        |       |
+     *        |       +--> 0x1B L9-1 realm (String)
+     *        |
+     *        +--> 0xAA L10
+     *        |       |
+     *        |       +--> 0x1B L10-1 sname (String)
+     *        |
+     *       [+--> 0xAB L11
+     *        |       |
+     *        |       +--> 0x1B L11-1 e-text (String, optionnal)]
+     *        |
+     *       [+--> 0xAC L12
+     *        |
+     *        +--> 0x04 L12-1 e-data (OCTET-STRING, optionnal)]
+     *        
      * @param message
      * @return The byte array.
      * @throws IOException

Modified: directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/HostAddressesEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/HostAddressesEncoder.java?rev=1034211&r1=1034210&r2=1034211&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/HostAddressesEncoder.java
(original)
+++ directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/HostAddressesEncoder.java
Thu Nov 11 23:42:22 2010
@@ -38,6 +38,16 @@ public class HostAddressesEncoder
      *                     addr-type[0]             INTEGER,
      *                     address[1]               OCTET STRING
      * }
+     * 
+     * 0x30 L1 hostAddresses sequence of HostAddresses
+     *  |
+     *  +--> 0x30 L2[1] Hostaddress[1]
+     *  |
+     *  +--> 0x30 L2[2] Hostaddress[2]
+     *  |
+     *  ...
+     *  |
+     *  +--> 0x30 L2[n] Hostaddress[n]
      */
     protected static DERSequence encodeSequence( HostAddresses hosts )
     {
@@ -58,6 +68,17 @@ public class HostAddressesEncoder
      *                     addr-type[0]             INTEGER,
      *                     address[1]               OCTET STRING
      * }
+     * 
+     * 0x30 L1 hostAddress sequence
+     *  |
+     *  +--> 0xA0 L2 addressType tag
+     *  |     |
+     *  |     +--> 0x02 L2-1 addressType (int)
+     *  |
+     *  +--> 0xA1 L3 address tag
+     *        |
+     *        +--> 0x04 L3-1 address (OCTET STRING)
+     * 
      */
     protected static DERSequence encode( HostAddress host )
     {

Modified: directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PreAuthenticationDataEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PreAuthenticationDataEncoder.java?rev=1034211&r1=1034210&r2=1034211&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PreAuthenticationDataEncoder.java
(original)
+++ directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PreAuthenticationDataEncoder.java
Thu Nov 11 23:42:22 2010
@@ -76,6 +76,16 @@ public class PreAuthenticationDataEncode
      *         padata-type[1]        INTEGER,
      *         padata-value[2]       OCTET STRING
      * }
+     * 
+     * 0x30 L1 PreAuthenticationData sequence
+     *  |
+     *  +--> 0xA0 L2 padata-type tag
+     *  |     |
+     *  |     +--> 0x02 L2-1 padata-type (int)
+     *  |
+     *  +--> 0xA1 L3 padata-value tag
+     *        |
+     *        +--> 0x04 L3-1 padata-value (OCTET STRING)
      */
     protected static DERSequence encode( PaData preAuth )
     {

Modified: directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrincipalNameEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrincipalNameEncoder.java?rev=1034211&r1=1034210&r2=1034211&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrincipalNameEncoder.java
(original)
+++ directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrincipalNameEncoder.java
Thu Nov 11 23:42:22 2010
@@ -67,6 +67,25 @@ public class PrincipalNameEncoder
     /**
      * Encodes a {@link PrincipalName} into a {@link DERSequence}.
      *
+     * PrincipalName :
+     *  
+     * 0x30 L1 PrincipalName sequence
+     *  |
+     *  +--> 0xA1 L2 name-type tag
+     *  |     |
+     *  |     +--> 0x02 L2-1 addressType (int)
+     *  |
+     *  +--> 0xA2 L3 name-string tag
+     *        |
+     *        +--> 0x30 L3-1 name-string (SEQUENCE OF KerberosString)
+     *              |
+     *              +--> 0x1B L4[1] value (KerberosString)
+     *              |
+     *              +--> 0x1B L4[2] value (KerberosString)
+     *              |
+     *              ...
+     *              |
+     *              +--> 0x1B L4[n] value (KerberosString)
      * @param name
      * @return The {@link DERSequence}.
      */

Modified: directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrivateMessageEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrivateMessageEncoder.java?rev=1034211&r1=1034210&r2=1034211&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrivateMessageEncoder.java
(original)
+++ directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/PrivateMessageEncoder.java
Thu Nov 11 23:42:22 2010
@@ -39,6 +39,22 @@ public class PrivateMessageEncoder
     /**
      * Encodes a {@link PrivateMessage} into a byte array.
      *
+     * 0x75 L1
+     * |
+     * +--> 0x30 L2
+     *       |
+     *       +--> 0xA0 0x03
+     *       |     |
+     *       |     +--> 0x02 0x01 pvno (integer)
+     *       |
+     *       +--> 0xA1 0x03
+     *       |     |
+     *       |     +--> 0x02 0x01 msg-type (integer)
+     *       |
+     *       +--> 0xA3 L3
+     *       |
+     *       +--> 0x02 L3-1 enc-part (EncryptedData)
+     *       
      * @param message
      * @return The byte array.
      * @throws IOException

Modified: directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/TicketEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/TicketEncoder.java?rev=1034211&r1=1034210&r2=1034211&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/TicketEncoder.java
(original)
+++ directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/TicketEncoder.java
Thu Nov 11 23:42:22 2010
@@ -63,6 +63,24 @@ public class TicketEncoder
      *     sname[2]                     PrincipalName,
      *     enc-part[3]                  EncryptedData
      * }
+     * Ticket :
+     *
+     * 0x61 L1 Ticket [APPLICATION 1]
+     * |
+     * +--> 0x30 L2 Ticket SEQUENCE
+     * |
+     * +--> 0xA0 L3 tkt-vno tag
+     * | |
+     * | +--> 0x02 L3-1 tkt-vno (int, 5)
+     * |
+     * +--> 0xA1 L4 realm tag
+     * | |
+     * | +--> 0x1B L4-1 realm (KerberosString)
+     * |
+     * +--> 0xA2 L5 sname (PrincipalName)
+     * |
+     * +--> 0xA3 L6 enc-part (EncryptedData)
+     *
      */
     protected static DERApplicationSpecific encode( Ticket ticket )
     {

Modified: directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/TransitedEncodingEncoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/TransitedEncodingEncoder.java?rev=1034211&r1=1034210&r2=1034211&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/TransitedEncodingEncoder.java
(original)
+++ directory/apacheds/trunk/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/io/encoder/TransitedEncodingEncoder.java
Thu Nov 11 23:42:22 2010
@@ -37,6 +37,16 @@ public class TransitedEncodingEncoder
      *     tr-type[0]  INTEGER, -- must be registered
      *     contents[1]          OCTET STRING
      * }
+     * 
+     * 0x30 L1 TransitedEncoding
+     *  |
+     *  +--> 0xA0 L2 trType tag
+     *  |     |
+     *  |     +--> 0x02 L2-1 trType (int)
+     *  |
+     *  +--> 0xA1 L3 contents tag
+     *        |
+     *        +--> 0x04 L3-1 contents (OCTET STRING)
      */
     protected static DERSequence encode( TransitedEncoding te )
     {



Mime
View raw message