directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1038245 - /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/etypeInfo2Entry/ETypeInfo2EntryGrammar.java
Date Tue, 23 Nov 2010 18:08:03 GMT
Author: elecharny
Date: Tue Nov 23 18:08:03 2010
New Revision: 1038245

URL: http://svn.apache.org/viewvc?rev=1038245&view=rev
Log:
Fixed the ETYPE-INFO2-ENTRY grammar

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/etypeInfo2Entry/ETypeInfo2EntryGrammar.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/etypeInfo2Entry/ETypeInfo2EntryGrammar.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/etypeInfo2Entry/ETypeInfo2EntryGrammar.java?rev=1038245&r1=1038244&r2=1038245&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/etypeInfo2Entry/ETypeInfo2EntryGrammar.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/etypeInfo2Entry/ETypeInfo2EntryGrammar.java
Tue Nov 23 18:08:03 2010
@@ -74,30 +74,70 @@ public final class ETypeInfo2EntryGramma
             ETypeInfo2EntryStatesEnum.START_STATE, ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_SEQ_STATE,
UniversalTag.SEQUENCE.getValue(),
             new ETypeInfo2EntryInit() );
         
+        // --------------------------------------------------------------------------------------------
+        // Transition from ETYPE-INFO2-ENTRY SEQ to etype tag
+        // --------------------------------------------------------------------------------------------
+        // ETYPE-INFO2-ENTRY         ::= SEQUENCE {
+        //         etype           [0]
         super.transitions[ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_SEQ_STATE.ordinal()][KerberosConstants.ETYPE_INFO2_ENTRY_ETYPE_TAG]
= new GrammarTransition(
             ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_SEQ_STATE, ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_ETYPE_TAG_STATE,
KerberosConstants.ETYPE_INFO2_ENTRY_ETYPE_TAG,
             new CheckNotNullLength()) ;
         
+        // --------------------------------------------------------------------------------------------
+        // Transition from etype tag to etype value
+        // --------------------------------------------------------------------------------------------
+        // ETYPE-INFO2-ENTRY         ::= SEQUENCE {
+        //         etype           [0] Int32,
         super.transitions[ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_ETYPE_TAG_STATE.ordinal()][UniversalTag.INTEGER.getValue()]
= new GrammarTransition(
             ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_ETYPE_TAG_STATE, ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_ETYPE_STATE,
UniversalTag.INTEGER.getValue(),
             new StoreEType() );
         
+        // --------------------------------------------------------------------------------------------
+        // Transition from etype value to salt tag
+        // --------------------------------------------------------------------------------------------
+        // ETYPE-INFO2-ENTRY         ::= SEQUENCE {
+        //        ...
+        //         salt            [1]
         super.transitions[ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_ETYPE_STATE.ordinal()][KerberosConstants.ETYPE_INFO2_ENTRY_SALT_TAG]
= new GrammarTransition(
             ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_ETYPE_STATE, ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_SALT_TAG_STATE,
KerberosConstants.ETYPE_INFO2_ENTRY_SALT_TAG,
             new CheckNotNullLength() );
         
+        // --------------------------------------------------------------------------------------------
+        // Transition from etype value to s2kparams tag
+        // --------------------------------------------------------------------------------------------
+        // ETYPE-INFO2-ENTRY         ::= SEQUENCE {
+        //        ...
+        //         s2kparams       [2]
         super.transitions[ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_ETYPE_STATE.ordinal()][KerberosConstants.ETYPE_INFO2_ENTRY_S2KPARAMS_TAG]
= new GrammarTransition(
             ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_ETYPE_STATE, ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_S2KPARAMS_TAG_STATE,
KerberosConstants.ETYPE_INFO2_ENTRY_S2KPARAMS_TAG,
             new CheckNotNullLength() );
 
+        // --------------------------------------------------------------------------------------------
+        // Transition from salt tag to salt value
+        // --------------------------------------------------------------------------------------------
+        // ETYPE-INFO2-ENTRY         ::= SEQUENCE {
+        //        ...
+        //         salt            [1] KerberosString OPTIONAL,
         super.transitions[ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_SALT_TAG_STATE.ordinal()][UniversalTag.OCTET_STRING.getValue()]
= new GrammarTransition(
             ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_SALT_TAG_STATE, ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_SALT_STATE,
UniversalTag.OCTET_STRING.getValue(),
             new StoreSalt() );
         
+        // --------------------------------------------------------------------------------------------
+        // Transition from salt value to s2kparams tag 
+        // --------------------------------------------------------------------------------------------
+        // ETYPE-INFO2-ENTRY         ::= SEQUENCE {
+        //        ...
+        //         s2kparams       [2]
         super.transitions[ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_SALT_STATE.ordinal()][KerberosConstants.ETYPE_INFO2_ENTRY_S2KPARAMS_TAG]
= new GrammarTransition(
             ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_SALT_STATE, ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_S2KPARAMS_TAG_STATE,
KerberosConstants.ETYPE_INFO2_ENTRY_S2KPARAMS_TAG,
             new CheckNotNullLength() );
 
+        // --------------------------------------------------------------------------------------------
+        // Transition from s2kparams tag to s2kparams value
+        // --------------------------------------------------------------------------------------------
+        // ETYPE-INFO2-ENTRY         ::= SEQUENCE {
+        //        ...
+        //         s2kparams       [2] OCTET STRING OPTIONAL
         super.transitions[ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_S2KPARAMS_TAG_STATE.ordinal()][UniversalTag.OCTET_STRING.getValue()]
= new GrammarTransition(
             ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_S2KPARAMS_TAG_STATE, ETypeInfo2EntryStatesEnum.ETYPE_INFO2_ENTRY_S2KPARAMS_STATE,
UniversalTag.OCTET_STRING.getValue(),
             new StoreS2KParams() );



Mime
View raw message