directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1036814 - /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbError/KrbErrorGrammar.java
Date Fri, 19 Nov 2010 12:21:46 GMT
Author: elecharny
Date: Fri Nov 19 12:21:46 2010
New Revision: 1036814

URL: http://svn.apache.org/viewvc?rev=1036814&view=rev
Log:
Fixed the PrincipalName transitions

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

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbError/KrbErrorGrammar.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbError/KrbErrorGrammar.java?rev=1036814&r1=1036813&r2=1036814&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbError/KrbErrorGrammar.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbError/KrbErrorGrammar.java
Fri Nov 19 12:21:46 2010
@@ -222,19 +222,11 @@ public final class KrbErrorGrammar exten
             new StoreCRealm() );
         
         // --------------------------------------------------------------------------------------------
-        // Transition from crealm value to cname tag
+        // Transition from crealm value to cname
         // --------------------------------------------------------------------------------------------
         // cname           [8]
         super.transitions[KrbErrorStatesEnum.KRB_ERR_CREALM_STATE.ordinal()][KerberosConstants.KRB_ERR_CNAME_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_CREALM_STATE, KrbErrorStatesEnum.KRB_ERR_CNAME_TAG_STATE,
KerberosConstants.KRB_ERR_CNAME_TAG, 
-            new CheckNotNullLength() );
-
-        // --------------------------------------------------------------------------------------------
-        // Transition from cname tag to cname value
-        // --------------------------------------------------------------------------------------------
-        // cname           [8] PrincipalName OPTIONAL
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_CNAME_TAG_STATE.ordinal()][UniversalTag.SEQUENCE.getValue()]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_CNAME_TAG_STATE, KrbErrorStatesEnum.KRB_ERR_CNAME_STATE,
UniversalTag.SEQUENCE.getValue(), 
+            KrbErrorStatesEnum.KRB_ERR_CREALM_STATE, KrbErrorStatesEnum.KRB_ERR_CNAME_STATE,
KerberosConstants.KRB_ERR_CNAME_TAG, 
             new StoreCName() );
         
         // --------------------------------------------------------------------------------------------
@@ -254,19 +246,11 @@ public final class KrbErrorGrammar exten
             new StoreRealm() );
 
         // --------------------------------------------------------------------------------------------
-        // Transition from realm value sname tag
+        // Transition from realm value sname 
         // --------------------------------------------------------------------------------------------
         // sname           [10]
         super.transitions[KrbErrorStatesEnum.KRB_ERR_REALM_STATE.ordinal()][KerberosConstants.KRB_ERR_SNAME_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_REALM_STATE, KrbErrorStatesEnum.KRB_ERR_SNAME_TAG_STATE,
KerberosConstants.KRB_ERR_SNAME_TAG, 
-            new CheckNotNullLength() );
-        
-        // --------------------------------------------------------------------------------------------
-        // Transition from sname tag to sname value 
-        // --------------------------------------------------------------------------------------------
-        // sname           [10] PrincipalName
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_SNAME_TAG_STATE.ordinal()][UniversalTag.SEQUENCE.getValue()]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_SNAME_TAG_STATE, KrbErrorStatesEnum.KRB_ERR_SNAME_STATE,
UniversalTag.SEQUENCE.getValue(), 
+            KrbErrorStatesEnum.KRB_ERR_REALM_STATE, KrbErrorStatesEnum.KRB_ERR_SNAME_STATE,
KerberosConstants.KRB_ERR_SNAME_TAG, 
             new StoreSName() );
         
         // --------------------------------------------------------------------------------------------



Mime
View raw message