directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1040784 - in /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos: KerberosConstants.java codec/krbError/KrbErrorGrammar.java codec/typedData/TypedDataStatesEnum.java messages/KrbError.java
Date Tue, 30 Nov 2010 21:43:06 GMT
Author: elecharny
Date: Tue Nov 30 21:43:05 2010
New Revision: 1040784

URL: http://svn.apache.org/viewvc?rev=1040784&view=rev
Log:
Renamed some constants

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbError/KrbErrorGrammar.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/typedData/TypedDataStatesEnum.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/KrbError.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java?rev=1040784&r1=1040783&r2=1040784&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java
Tue Nov 30 21:43:05 2010
@@ -113,20 +113,20 @@ public class KerberosConstants
     public static final int ENC_KRB_PRIV_PART_RECIPIENT_ADDRESS_TAG = 0xA5;
 
     /** KRB-ERROR tags */
-    public static final int KRB_ERR_TAG = 0x7E;
-    public static final int KRB_ERR_PVNO_TAG = 0xA0;
-    public static final int KRB_ERR_MSGTYPE_TAG = 0xA1;
-    public static final int KRB_ERR_CTIME_TAG = 0xA2;
-    public static final int KRB_ERR_CUSEC_TAG = 0xA3;
-    public static final int KRB_ERR_STIME_TAG = 0xA4;
-    public static final int KRB_ERR_SUSEC_TAG = 0xA5;
-    public static final int KRB_ERR_ERROR_CODE_TAG = 0xA6;
-    public static final int KRB_ERR_CREALM_TAG = 0xA7;
-    public static final int KRB_ERR_CNAME_TAG = 0xA8;
-    public static final int KRB_ERR_REALM_TAG = 0xA9;
-    public static final int KRB_ERR_SNAME_TAG = 0xAA;
-    public static final int KRB_ERR_ETEXT_TAG = 0xAB;
-    public static final int KRB_ERR_EDATA_TAG = 0xAC;
+    public static final int KRB_ERROR_TAG = 0x7E;
+    public static final int KRB_ERROR_PVNO_TAG = 0xA0;
+    public static final int KRB_ERROR_MSGTYPE_TAG = 0xA1;
+    public static final int KRB_ERROR_CTIME_TAG = 0xA2;
+    public static final int KRB_ERROR_CUSEC_TAG = 0xA3;
+    public static final int KRB_ERROR_STIME_TAG = 0xA4;
+    public static final int KRB_ERROR_SUSEC_TAG = 0xA5;
+    public static final int KRB_ERROR_ERROR_CODE_TAG = 0xA6;
+    public static final int KRB_ERROR_CREALM_TAG = 0xA7;
+    public static final int KRB_ERROR_CNAME_TAG = 0xA8;
+    public static final int KRB_ERROR_REALM_TAG = 0xA9;
+    public static final int KRB_ERROR_SNAME_TAG = 0xAA;
+    public static final int KRB_ERROR_ETEXT_TAG = 0xAB;
+    public static final int KRB_ERROR_EDATA_TAG = 0xAC;
 
     /** KRB-CRED tags */
     public static final int KRB_CRED_TAG = 0x76;

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=1040784&r1=1040783&r2=1040784&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
Tue Nov 30 21:43:05 2010
@@ -80,8 +80,8 @@ public final class KrbErrorGrammar exten
         // Transition from KrbError init to KrbError tag
         // --------------------------------------------------------------------------------------------
         // KRB-ERROR       ::= [APPLICATION 30]
-        super.transitions[KrbErrorStatesEnum.START_STATE.ordinal()][KerberosConstants.KRB_ERR_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.START_STATE, KrbErrorStatesEnum.KRB_ERR_TAG, KerberosConstants.KRB_ERR_TAG,
+        super.transitions[KrbErrorStatesEnum.START_STATE.ordinal()][KerberosConstants.KRB_ERROR_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.START_STATE, KrbErrorStatesEnum.KRB_ERR_TAG, KerberosConstants.KRB_ERROR_TAG,
             new KrbErrorInit() );
         
         // --------------------------------------------------------------------------------------------
@@ -97,8 +97,8 @@ public final class KrbErrorGrammar exten
         // --------------------------------------------------------------------------------------------
         // KRB-ERROR         ::= SEQUENCE {
         //         pvno            [0]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_SEQ_STATE.ordinal()][KerberosConstants.KRB_ERR_PVNO_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_SEQ_STATE, KrbErrorStatesEnum.KRB_ERR_PVNO_TAG_STATE,
KerberosConstants.KRB_ERR_PVNO_TAG,
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_SEQ_STATE.ordinal()][KerberosConstants.KRB_ERROR_PVNO_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_SEQ_STATE, KrbErrorStatesEnum.KRB_ERR_PVNO_TAG_STATE,
KerberosConstants.KRB_ERROR_PVNO_TAG,
             new CheckNotNullLength() );
         
         // --------------------------------------------------------------------------------------------
@@ -114,8 +114,8 @@ public final class KrbErrorGrammar exten
         // Transition from pvno to msg-type tag
         // --------------------------------------------------------------------------------------------
         // msg-type        [1]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_PVNO_STATE.ordinal()][KerberosConstants.KRB_ERR_MSGTYPE_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_PVNO_STATE, KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_TAG_STATE,
KerberosConstants.KRB_ERR_MSGTYPE_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_PVNO_STATE.ordinal()][KerberosConstants.KRB_ERROR_MSGTYPE_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_PVNO_STATE, KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_TAG_STATE,
KerberosConstants.KRB_ERROR_MSGTYPE_TAG, 
             new CheckNotNullLength() );
 
         // --------------------------------------------------------------------------------------------
@@ -130,8 +130,8 @@ public final class KrbErrorGrammar exten
         // Transition from msg-type value to cTime tag
         // --------------------------------------------------------------------------------------------
         // ctime        [2]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE.ordinal()][KerberosConstants.KRB_ERR_CTIME_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE, KrbErrorStatesEnum.KRB_ERR_CTIME_TAG_STATE,
KerberosConstants.KRB_ERR_CTIME_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE.ordinal()][KerberosConstants.KRB_ERROR_CTIME_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE, KrbErrorStatesEnum.KRB_ERR_CTIME_TAG_STATE,
KerberosConstants.KRB_ERROR_CTIME_TAG, 
             new CheckNotNullLength());
 
         // --------------------------------------------------------------------------------------------
@@ -146,8 +146,8 @@ public final class KrbErrorGrammar exten
         // Transition from cTime value to cusec tag
         // --------------------------------------------------------------------------------------------
         // cusec           [3]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_CTIME_STATE.ordinal()][KerberosConstants.KRB_ERR_CUSEC_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_CTIME_STATE, KrbErrorStatesEnum.KRB_ERR_CUSEC_TAG_STATE,
KerberosConstants.KRB_ERR_CUSEC_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_CTIME_STATE.ordinal()][KerberosConstants.KRB_ERROR_CUSEC_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_CTIME_STATE, KrbErrorStatesEnum.KRB_ERR_CUSEC_TAG_STATE,
KerberosConstants.KRB_ERROR_CUSEC_TAG, 
             new CheckNotNullLength() );
 
         // --------------------------------------------------------------------------------------------
@@ -162,8 +162,8 @@ public final class KrbErrorGrammar exten
         // Transition from cusec value to stime tag
         // --------------------------------------------------------------------------------------------
         // stime           [4]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_CUSEC_STATE.ordinal()][KerberosConstants.KRB_ERR_STIME_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_CUSEC_STATE, KrbErrorStatesEnum.KRB_ERR_STIME_TAG_STATE,
KerberosConstants.KRB_ERR_STIME_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_CUSEC_STATE.ordinal()][KerberosConstants.KRB_ERROR_STIME_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_CUSEC_STATE, KrbErrorStatesEnum.KRB_ERR_STIME_TAG_STATE,
KerberosConstants.KRB_ERROR_STIME_TAG, 
             new CheckNotNullLength() );
         
         // --------------------------------------------------------------------------------------------
@@ -178,8 +178,8 @@ public final class KrbErrorGrammar exten
         // Transition from stime value to susec tag
         // --------------------------------------------------------------------------------------------
         // susec           [5]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_STIME_STATE.ordinal()][KerberosConstants.KRB_ERR_SUSEC_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_STIME_STATE, KrbErrorStatesEnum.KRB_ERR_SUSEC_TAG_STATE,
KerberosConstants.KRB_ERR_SUSEC_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_STIME_STATE.ordinal()][KerberosConstants.KRB_ERROR_SUSEC_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_STIME_STATE, KrbErrorStatesEnum.KRB_ERR_SUSEC_TAG_STATE,
KerberosConstants.KRB_ERROR_SUSEC_TAG, 
             new CheckNotNullLength() );
         
         // --------------------------------------------------------------------------------------------
@@ -194,8 +194,8 @@ public final class KrbErrorGrammar exten
         // Transition from susec value to error-code tag
         // --------------------------------------------------------------------------------------------
         // error-code      [6]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_SUSEC_STATE.ordinal()][KerberosConstants.KRB_ERR_ERROR_CODE_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_SUSEC_STATE, KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_TAG_STATE,
KerberosConstants.KRB_ERR_ERROR_CODE_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_SUSEC_STATE.ordinal()][KerberosConstants.KRB_ERROR_ERROR_CODE_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_SUSEC_STATE, KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_TAG_STATE,
KerberosConstants.KRB_ERROR_ERROR_CODE_TAG, 
             new CheckNotNullLength() );
         
         // --------------------------------------------------------------------------------------------
@@ -210,8 +210,8 @@ public final class KrbErrorGrammar exten
         // Transition from error-code value to crealm tag
         // --------------------------------------------------------------------------------------------
         // crealm          [7]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE.ordinal()][KerberosConstants.KRB_ERR_CREALM_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE, KrbErrorStatesEnum.KRB_ERR_CREALM_TAG_STATE,
KerberosConstants.KRB_ERR_CREALM_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE.ordinal()][KerberosConstants.KRB_ERROR_CREALM_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE, KrbErrorStatesEnum.KRB_ERR_CREALM_TAG_STATE,
KerberosConstants.KRB_ERROR_CREALM_TAG, 
             new CheckNotNullLength() );
         
         // --------------------------------------------------------------------------------------------
@@ -226,16 +226,16 @@ public final class KrbErrorGrammar exten
         // Transition from crealm value to cname
         // --------------------------------------------------------------------------------------------
         // cname           [8] PrincipalName OPTIONAL,
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_CREALM_STATE.ordinal()][KerberosConstants.KRB_ERR_CNAME_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_CREALM_STATE, KrbErrorStatesEnum.KRB_ERR_CNAME_STATE,
KerberosConstants.KRB_ERR_CNAME_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_CREALM_STATE.ordinal()][KerberosConstants.KRB_ERROR_CNAME_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_CREALM_STATE, KrbErrorStatesEnum.KRB_ERR_CNAME_STATE,
KerberosConstants.KRB_ERROR_CNAME_TAG, 
             new StoreCName() );
         
         // --------------------------------------------------------------------------------------------
         // Transition from cname value to realm tag
         // --------------------------------------------------------------------------------------------
         // realm           [9]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_CNAME_STATE.ordinal()][KerberosConstants.KRB_ERR_REALM_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_CNAME_STATE, KrbErrorStatesEnum.KRB_ERR_REALM_TAG_STATE,
KerberosConstants.KRB_ERR_REALM_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_CNAME_STATE.ordinal()][KerberosConstants.KRB_ERROR_REALM_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_CNAME_STATE, KrbErrorStatesEnum.KRB_ERR_REALM_TAG_STATE,
KerberosConstants.KRB_ERROR_REALM_TAG, 
             new CheckNotNullLength() );
         
         // --------------------------------------------------------------------------------------------
@@ -250,16 +250,16 @@ public final class KrbErrorGrammar exten
         // Transition from realm value to sname 
         // --------------------------------------------------------------------------------------------
         // sname           [10] PrincipalName,
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_REALM_STATE.ordinal()][KerberosConstants.KRB_ERR_SNAME_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_REALM_STATE, KrbErrorStatesEnum.KRB_ERR_SNAME_STATE,
KerberosConstants.KRB_ERR_SNAME_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_REALM_STATE.ordinal()][KerberosConstants.KRB_ERROR_SNAME_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_REALM_STATE, KrbErrorStatesEnum.KRB_ERR_SNAME_STATE,
KerberosConstants.KRB_ERROR_SNAME_TAG, 
             new StoreSName() );
         
         // --------------------------------------------------------------------------------------------
         // Transition from sname value to etext tag 
         // --------------------------------------------------------------------------------------------
         // e-text          [11]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_SNAME_STATE.ordinal()][KerberosConstants.KRB_ERR_ETEXT_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_SNAME_STATE, KrbErrorStatesEnum.KRB_ERR_ETEXT_TAG_STATE,
KerberosConstants.KRB_ERR_ETEXT_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_SNAME_STATE.ordinal()][KerberosConstants.KRB_ERROR_ETEXT_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_SNAME_STATE, KrbErrorStatesEnum.KRB_ERR_ETEXT_TAG_STATE,
KerberosConstants.KRB_ERROR_ETEXT_TAG, 
             new CheckNotNullLength() );
         
         // --------------------------------------------------------------------------------------------
@@ -274,8 +274,8 @@ public final class KrbErrorGrammar exten
         // Transition from etext value to edata tag 
         // --------------------------------------------------------------------------------------------
         // e-data          [12]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_ETEXT_STATE.ordinal()][KerberosConstants.KRB_ERR_EDATA_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_ETEXT_STATE, KrbErrorStatesEnum.KRB_ERR_EDATA_TAG_STATE,
KerberosConstants.KRB_ERR_EDATA_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_ETEXT_STATE.ordinal()][KerberosConstants.KRB_ERROR_EDATA_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_ETEXT_STATE, KrbErrorStatesEnum.KRB_ERR_EDATA_TAG_STATE,
KerberosConstants.KRB_ERROR_EDATA_TAG, 
             new CheckNotNullLength() );
         
         // --------------------------------------------------------------------------------------------
@@ -293,24 +293,24 @@ public final class KrbErrorGrammar exten
         // Transition from msg-type value to cusec tag
         // --------------------------------------------------------------------------------------------
         // cusec           [3]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE.ordinal()][KerberosConstants.KRB_ERR_CUSEC_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE, KrbErrorStatesEnum.KRB_ERR_CUSEC_TAG_STATE,
KerberosConstants.KRB_ERR_CUSEC_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE.ordinal()][KerberosConstants.KRB_ERROR_CUSEC_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE, KrbErrorStatesEnum.KRB_ERR_CUSEC_TAG_STATE,
KerberosConstants.KRB_ERROR_CUSEC_TAG, 
             new CheckNotNullLength());
 
         // --------------------------------------------------------------------------------------------
         // Transition from msg-type value to stime tag
         // --------------------------------------------------------------------------------------------
         // stime           [4]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE.ordinal()][KerberosConstants.KRB_ERR_STIME_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE, KrbErrorStatesEnum.KRB_ERR_STIME_TAG_STATE,
KerberosConstants.KRB_ERR_STIME_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE.ordinal()][KerberosConstants.KRB_ERROR_STIME_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE, KrbErrorStatesEnum.KRB_ERR_STIME_TAG_STATE,
KerberosConstants.KRB_ERROR_STIME_TAG, 
             new CheckNotNullLength());
         
         // --------------------------------------------------------------------------------------------
         // Transition from cTime value to stime tag
         // --------------------------------------------------------------------------------------------
         // stime           [4]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_CTIME_STATE.ordinal()][KerberosConstants.KRB_ERR_STIME_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_CTIME_STATE, KrbErrorStatesEnum.KRB_ERR_STIME_TAG_STATE,
KerberosConstants.KRB_ERR_STIME_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_CTIME_STATE.ordinal()][KerberosConstants.KRB_ERROR_STIME_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_CTIME_STATE, KrbErrorStatesEnum.KRB_ERR_STIME_TAG_STATE,
KerberosConstants.KRB_ERROR_STIME_TAG, 
             new CheckNotNullLength() );
 
         // from erro-code to realm
@@ -319,32 +319,32 @@ public final class KrbErrorGrammar exten
         // Transition from error-code value to realm tag
         // --------------------------------------------------------------------------------------------
         // realm           [9]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE.ordinal()][KerberosConstants.KRB_ERR_REALM_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE, KrbErrorStatesEnum.KRB_ERR_REALM_TAG_STATE,
KerberosConstants.KRB_ERR_REALM_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE.ordinal()][KerberosConstants.KRB_ERROR_REALM_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE, KrbErrorStatesEnum.KRB_ERR_REALM_TAG_STATE,
KerberosConstants.KRB_ERROR_REALM_TAG, 
             new CheckNotNullLength() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from error-code value to cname
         // --------------------------------------------------------------------------------------------
         // cname           [8] PrincipalName OPTIONAL,
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE.ordinal()][KerberosConstants.KRB_ERR_CNAME_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE, KrbErrorStatesEnum.KRB_ERR_CNAME_STATE,
KerberosConstants.KRB_ERR_CNAME_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE.ordinal()][KerberosConstants.KRB_ERROR_CNAME_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE, KrbErrorStatesEnum.KRB_ERR_CNAME_STATE,
KerberosConstants.KRB_ERROR_CNAME_TAG, 
             new StoreCName() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from crealm value to realm tag
         // --------------------------------------------------------------------------------------------
         // realm           [9]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_CREALM_STATE.ordinal()][KerberosConstants.KRB_ERR_REALM_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_CREALM_STATE, KrbErrorStatesEnum.KRB_ERR_REALM_TAG_STATE,
KerberosConstants.KRB_ERR_REALM_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_CREALM_STATE.ordinal()][KerberosConstants.KRB_ERROR_REALM_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_CREALM_STATE, KrbErrorStatesEnum.KRB_ERR_REALM_TAG_STATE,
KerberosConstants.KRB_ERROR_REALM_TAG, 
             new CheckNotNullLength() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from sname value to edata tag 
         // --------------------------------------------------------------------------------------------
         // e-data          [12]
-        super.transitions[KrbErrorStatesEnum.KRB_ERR_SNAME_STATE.ordinal()][KerberosConstants.KRB_ERR_EDATA_TAG]
= new GrammarTransition(
-            KrbErrorStatesEnum.KRB_ERR_SNAME_STATE, KrbErrorStatesEnum.KRB_ERR_EDATA_TAG_STATE,
KerberosConstants.KRB_ERR_EDATA_TAG, 
+        super.transitions[KrbErrorStatesEnum.KRB_ERR_SNAME_STATE.ordinal()][KerberosConstants.KRB_ERROR_EDATA_TAG]
= new GrammarTransition(
+            KrbErrorStatesEnum.KRB_ERR_SNAME_STATE, KrbErrorStatesEnum.KRB_ERR_EDATA_TAG_STATE,
KerberosConstants.KRB_ERROR_EDATA_TAG, 
             new CheckNotNullLength() );
     }
 

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/typedData/TypedDataStatesEnum.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/typedData/TypedDataStatesEnum.java?rev=1040784&r1=1040783&r2=1040784&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/typedData/TypedDataStatesEnum.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/typedData/TypedDataStatesEnum.java
Tue Nov 30 21:43:05 2010
@@ -33,7 +33,7 @@ import org.apache.directory.shared.asn1.
 public enum TypedDataStatesEnum implements States
 {
     // Start
-    START_STATE,                                // 0
+    START_STATE,                        // 0
     
     TYPED_DATA_SEQ_STATE,               // 1
     

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/KrbError.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/KrbError.java?rev=1040784&r1=1040783&r2=1040784&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/KrbError.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/KrbError.java
Tue Nov 30 21:43:05 2010
@@ -541,7 +541,7 @@ public class KrbError extends KerberosMe
         try
         {
             // The KRB-ERROR APPLICATION tag
-            buffer.put( ( byte ) KerberosConstants.KRB_ERR_TAG );
+            buffer.put( ( byte ) KerberosConstants.KRB_ERROR_TAG );
             buffer.put( TLV.getBytes( krbErrorLength ) );
 
             // The KRB_ERROR sequence
@@ -549,12 +549,12 @@ public class KrbError extends KerberosMe
             buffer.put( TLV.getBytes( krbErrorSeqLength ) );
 
             // pvno tag and value
-            buffer.put( ( byte ) KerberosConstants.KRB_ERR_PVNO_TAG );
+            buffer.put( ( byte ) KerberosConstants.KRB_ERROR_PVNO_TAG );
             buffer.put( TLV.getBytes( pvnoLength ) );
             Value.encode( buffer, getProtocolVersionNumber() );
 
             // msg-type tag and value
-            buffer.put( ( byte ) KerberosConstants.KRB_ERR_MSGTYPE_TAG );
+            buffer.put( ( byte ) KerberosConstants.KRB_ERROR_MSGTYPE_TAG );
             buffer.put( TLV.getBytes( msgTypeLength ) );
             Value.encode( buffer, getMessageType().getValue() );
 
@@ -562,7 +562,7 @@ public class KrbError extends KerberosMe
             if ( cTimeLength > 0 )
             {
                 // The tag
-                buffer.put( ( byte ) KerberosConstants.KRB_ERR_CTIME_TAG );
+                buffer.put( ( byte ) KerberosConstants.KRB_ERROR_CTIME_TAG );
                 buffer.put( TLV.getBytes( cTimeLength ) );
                 
                 // The value
@@ -574,14 +574,14 @@ public class KrbError extends KerberosMe
             // cusec tag and value if any
             if ( cusec != null )
             {
-                buffer.put( ( byte ) KerberosConstants.KRB_ERR_CUSEC_TAG );
+                buffer.put( ( byte ) KerberosConstants.KRB_ERROR_CUSEC_TAG );
                 buffer.put( TLV.getBytes( cusecLength ) );
                 Value.encode( buffer, cusec );
             }
 
             // stime tag and value
             // The tag
-            buffer.put( ( byte ) KerberosConstants.KRB_ERR_STIME_TAG );
+            buffer.put( ( byte ) KerberosConstants.KRB_ERROR_STIME_TAG );
             buffer.put( TLV.getBytes( sTimeLength ) );
 
             // The value
@@ -590,19 +590,19 @@ public class KrbError extends KerberosMe
             buffer.put( sTime.getBytes() );
 
             // susec tag and value
-            buffer.put( ( byte ) KerberosConstants.KRB_ERR_SUSEC_TAG );
+            buffer.put( ( byte ) KerberosConstants.KRB_ERROR_SUSEC_TAG );
             buffer.put( TLV.getBytes( susecLength ) );
             Value.encode( buffer, susec );
 
             // error-code tag and value
-            buffer.put( ( byte ) KerberosConstants.KRB_ERR_ERROR_CODE_TAG );
+            buffer.put( ( byte ) KerberosConstants.KRB_ERROR_ERROR_CODE_TAG );
             buffer.put( TLV.getBytes( errorCodeLength ) );
             Value.encode( buffer, errorCode.getOrdinal() );
 
             // crealm tage and value, if any
             if ( cRealm != null)
             {
-                buffer.put( ( byte ) KerberosConstants.KRB_ERR_CREALM_TAG );
+                buffer.put( ( byte ) KerberosConstants.KRB_ERROR_CREALM_TAG );
                 buffer.put( TLV.getBytes( cRealmLength ) );
 
                 buffer.put( UniversalTag.GENERAL_STRING.getValue() );
@@ -613,14 +613,14 @@ public class KrbError extends KerberosMe
             // cname tag and value, if any
             if ( cName != null )
             {
-                buffer.put( ( byte ) KerberosConstants.KRB_ERR_CNAME_TAG );
+                buffer.put( ( byte ) KerberosConstants.KRB_ERROR_CNAME_TAG );
                 buffer.put( TLV.getBytes( cNameLength ) );
                 cName.encode( buffer );
             }
 
             // realm tag and value
             // the tag
-            buffer.put( ( byte ) KerberosConstants.KRB_ERR_REALM_TAG );
+            buffer.put( ( byte ) KerberosConstants.KRB_ERROR_REALM_TAG );
             buffer.put( TLV.getBytes( realmLength ) );
 
             // The value
@@ -629,14 +629,14 @@ public class KrbError extends KerberosMe
             buffer.put( realmBytes );
 
             // sname tag and value
-            buffer.put( ( byte ) KerberosConstants.KRB_ERR_SNAME_TAG );
+            buffer.put( ( byte ) KerberosConstants.KRB_ERROR_SNAME_TAG );
             buffer.put( TLV.getBytes( sNameLength ) );
             sName.encode( buffer );
 
             // etext tag and value, if any
             if ( eText != null )
             {
-                buffer.put( ( byte ) KerberosConstants.KRB_ERR_ETEXT_TAG );
+                buffer.put( ( byte ) KerberosConstants.KRB_ERROR_ETEXT_TAG );
                 buffer.put( TLV.getBytes( eTextLength ) );
 
                 buffer.put( UniversalTag.GENERAL_STRING.getValue() );
@@ -647,7 +647,7 @@ public class KrbError extends KerberosMe
             // edata tag and value, if any
             if ( eData != null )
             {
-                buffer.put( ( byte ) KerberosConstants.KRB_ERR_EDATA_TAG );
+                buffer.put( ( byte ) KerberosConstants.KRB_ERROR_EDATA_TAG );
                 buffer.put( TLV.getBytes( eDataLength ) );
                 Value.encode( buffer, eData );
             }



Mime
View raw message