directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r168443 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoStatesEnum.java
Date Thu, 05 May 2005 22:10:44 GMT
Author: elecharny
Date: Thu May  5 15:10:44 2005
New Revision: 168443

URL: http://svn.apache.org/viewcvs?rev=168443&view=rev
Log:
- Added some doc in the header
- renamed the first state, which is common to NegTokenInit and NegTokenTarg
- state's numbers have been changed.

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoStatesEnum.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoStatesEnum.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoStatesEnum.java?rev=168443&r1=168442&r2=168443&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoStatesEnum.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoStatesEnum.java
Thu May  5 15:10:44 2005
@@ -20,7 +20,7 @@
 
 
 /**
- * DOCUMENT ME!
+ * This class contains all the SPNEGO grammar's states.
  * 
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
@@ -32,14 +32,11 @@
     //~ Static fields/initializers -----------------------------------------------------------------
 
     /** Initiate the counter to 0 */
-    private static final int SPNEGO_START_STATE = 0;
+    public static final int SPNEGO_START_STATE = 0;
 
     //====================================================================
     // NegTokenInit state
     //====================================================================
-    /** SPNEGO neg token init Tag */
-    public static final int SPNEGO_NEG_TOKEN_INIT_TAG = 0;
-
     /** SPNEGO neg token init Length */
     public static final int SPNEGO_NEG_TOKEN_INIT_LENGTH = 1;
 
@@ -183,54 +180,51 @@
     //====================================================================
     // NegTokenTarg state
     //====================================================================
-    /** SPNEGO neg token targ Tag */
-    public static final int SPNEGO_NEG_TOKEN_TARG_TAG = 33;
-
     /** SPNEGO neg token targ Length */
-    public static final int SPNEGO_NEG_TOKEN_TARG_LENGTH = 34;
+    public static final int SPNEGO_NEG_TOKEN_TARG_LENGTH = 33;
 
     /** SPNEGO neg token targ Value */
-    public static final int SPNEGO_NEG_TOKEN_TARG_VALUE = 35;
+    public static final int SPNEGO_NEG_TOKEN_TARG_VALUE = 34;
 
     //--------------------------------------------------------------------
     // negTokenTarg state (the SEQUENCE)
     //--------------------------------------------------------------------
     /** SPNEGO neg token targ SEQUENCE Tag */
-    public static final int SPNEGO_NEG_TOKEN_TARG_SEQUENCE_TAG = 36;
+    public static final int SPNEGO_NEG_TOKEN_TARG_SEQUENCE_TAG = 35;
 
     /** SPNEGO neg token targ SEQUENCE Length */
-    public static final int SPNEGO_NEG_TOKEN_TARG_SEQUENCE_LENGTH = 37;
+    public static final int SPNEGO_NEG_TOKEN_TARG_SEQUENCE_LENGTH = 36;
 
     /** SPNEGO neg token targ SEQUENCE Value */
-    public static final int SPNEGO_NEG_TOKEN_TARG_SEQUENCE_VALUE = 38;
+    public static final int SPNEGO_NEG_TOKEN_TARG_SEQUENCE_VALUE = 37;
 
     //--------------------------------------------------------------------
     // As the next element is optional, we need to use a special
     // transition to fork to the good state
     //--------------------------------------------------------------------
     /** SPNEGO neg token targ SEQUENCE Value next tag */
-    public static final int SPNEGO_NEG_TOKEN_TARG_SEQUENCE_FOLLOWING_TAG = 39;
+    public static final int SPNEGO_NEG_TOKEN_TARG_SEQUENCE_FOLLOWING_TAG = 38;
 
     //--------------------------------------------------------------------
     // NegResult state
     //--------------------------------------------------------------------
     /** SPNEGO NegResult length */
-    public static final int SPNEGO_NEG_RESULT_LENGTH = 40;
+    public static final int SPNEGO_NEG_RESULT_LENGTH = 39;
 
     /** SPNEGO NegResult value */
-    public static final int SPNEGO_NEG_RESULT_VALUE = 41;
+    public static final int SPNEGO_NEG_RESULT_VALUE = 40;
 
     //--------------------------------------------------------------------
     // NegResult value state
     //--------------------------------------------------------------------
     /** SPNEGO NegResult value tag */
-    public static final int SPNEGO_NEG_RESULT_VALUE_TAG = 42;
+    public static final int SPNEGO_NEG_RESULT_VALUE_TAG = 41;
 
     /** SPNEGO NegResult value length */
-    public static final int SPNEGO_NEG_RESULT_VALUE_LENGTH = 43;
+    public static final int SPNEGO_NEG_RESULT_VALUE_LENGTH = 42;
 
     /** SPNEGO NegResult value value */
-    public static final int SPNEGO_NEG_RESULT_VALUE_VALUE = 44;
+    public static final int SPNEGO_NEG_RESULT_VALUE_VALUE = 43;
 
     //--------------------------------------------------------------------
     // The next tag could be either
@@ -240,28 +234,28 @@
     // - the end of the grammar
     //--------------------------------------------------------------------
     /** SPNEGO negResult following tag */
-    public static final int SPNEGO_NEG_RESULT_FOLLOWING_TAG = 45;
+    public static final int SPNEGO_NEG_RESULT_FOLLOWING_TAG = 44;
 
     //--------------------------------------------------------------------
     // Supported meth state
     //--------------------------------------------------------------------
     /** SPNEGO Supported meth length */
-    public static final int SPNEGO_SUPPORTED_METH_LENGTH = 46;
+    public static final int SPNEGO_SUPPORTED_METH_LENGTH = 45;
 
     /** SPNEGO Supported meth value */
-    public static final int SPNEGO_SUPPORTED_METH_VALUE = 47;
+    public static final int SPNEGO_SUPPORTED_METH_VALUE = 46;
 
     //--------------------------------------------------------------------
     // Supported meth OID state
     //--------------------------------------------------------------------
     /** SPNEGO Supported meth OID tag */
-    public static final int SPNEGO_SUPPORTED_METH_OID_TAG = 48;
+    public static final int SPNEGO_SUPPORTED_METH_OID_TAG = 47;
 
     /** SPNEGO Supported meth OID length */
-    public static final int SPNEGO_SUPPORTED_METH_OID_LENGTH = 49;
+    public static final int SPNEGO_SUPPORTED_METH_OID_LENGTH = 48;
 
     /** SPNEGO Supported meth OID value */
-    public static final int SPNEGO_SUPPORTED_METH_OID_VALUE = 50;
+    public static final int SPNEGO_SUPPORTED_METH_OID_VALUE = 49;
 
     //--------------------------------------------------------------------
     // The next tag could be either
@@ -270,28 +264,28 @@
     // - the end of the grammar
     //--------------------------------------------------------------------
     /** SPNEGO negResult following tag */
-    public static final int SPNEGO_SUPPORTED_METH_FOLLOWING_TAG = 51;
+    public static final int SPNEGO_SUPPORTED_METH_FOLLOWING_TAG = 50;
 
     //--------------------------------------------------------------------
     // Response token state
     //--------------------------------------------------------------------
     /** SPNEGO Response token length */
-    public static final int SPNEGO_RESPONSE_TOKEN_LENGTH = 52;
+    public static final int SPNEGO_RESPONSE_TOKEN_LENGTH = 51;
 
     /** SPNEGO Response token value */
-    public static final int SPNEGO_RESPONSE_TOKEN_VALUE = 53;
+    public static final int SPNEGO_RESPONSE_TOKEN_VALUE = 52;
 
     //--------------------------------------------------------------------
     // Response token OctetString state
     //--------------------------------------------------------------------
     /** SPNEGO Response token OctetString tag */
-    public static final int SPNEGO_RESPONSE_TOKEN_OCTET_STRING_TAG = 54;
+    public static final int SPNEGO_RESPONSE_TOKEN_OCTET_STRING_TAG = 53;
 
     /** SPNEGO Response token OctetSstring length */
-    public static final int SPNEGO_RESPONSE_TOKEN_OCTET_STRING_LENGTH = 55;
+    public static final int SPNEGO_RESPONSE_TOKEN_OCTET_STRING_LENGTH = 54;
 
     /** SPNEGO Response token OctetString value */
-    public static final int SPNEGO_RESPONSE_TOKEN_OCTET_STRING_VALUE = 56;
+    public static final int SPNEGO_RESPONSE_TOKEN_OCTET_STRING_VALUE = 55;
 
     //--------------------------------------------------------------------
     // The next tag could be either
@@ -299,32 +293,32 @@
     // - the end of the grammar
     //--------------------------------------------------------------------
     /** SPNEGO negResult following tag */
-    public static final int SPNEGO_RESPONSE_TOKEN_FOLLOWING_TAG = 57;
+    public static final int SPNEGO_RESPONSE_TOKEN_FOLLOWING_TAG = 56;
 
     //--------------------------------------------------------------------
     // NegTokenTarg Mech list MIC state
     //--------------------------------------------------------------------
     /** SPNEGO NegTokenTarg Mech list MIC length */
-    public static final int SPNEGO_TARG_MECH_LIST_MIC_LENGTH = 58;
+    public static final int SPNEGO_TARG_MECH_LIST_MIC_LENGTH = 57;
 
     /** SPNEGO NegTokenTarg Mech list MIC value */
-    public static final int SPNEGO_TARG_MECH_LIST_MIC_VALUE = 59;
+    public static final int SPNEGO_TARG_MECH_LIST_MIC_VALUE = 58;
 
     //--------------------------------------------------------------------
     // NegTokenTarg Mech list MIC OctetString state
     //--------------------------------------------------------------------
     /** SPNEGO NegTokenTarg Mech list MIC OctetString tag */
-    public static final int SPNEGO_TARG_MECH_LIST_MIC_OCTET_STRING_TAG = 60;
+    public static final int SPNEGO_TARG_MECH_LIST_MIC_OCTET_STRING_TAG = 59;
 
     /** SPNEGO NegTokenTarg Mech list MIC OctetString length */
-    public static final int SPNEGO_TARG_MECH_LIST_MIC_OCTET_STRING_LENGTH = 61;
+    public static final int SPNEGO_TARG_MECH_LIST_MIC_OCTET_STRING_LENGTH = 60;
 
     /** SPNEGO NegTokenTarg Mech list MIC OctetString value */
-    public static final int SPNEGO_TARG_MECH_LIST_MIC_OCTET_STRING_VALUE = 62;
+    public static final int SPNEGO_TARG_MECH_LIST_MIC_OCTET_STRING_VALUE = 61;
 
 
     /** SPNEGO last state */
-    public static final int LAST_SPNEGO_STATE = 63;
+    public static final int LAST_SPNEGO_STATE = 62;
 
     /** SPNEGO Grammar */
     public static final int SPNEGO_GRAMMAR = 0;
@@ -376,8 +370,8 @@
                 switch ( state )
                 {
 
-                    case SPNEGO_NEG_TOKEN_INIT_TAG :
-                        return "SPNEGO_NEG_TOKEN_INIT_TAG";
+                    case SPNEGO_START_STATE :
+                        return "SPNEGO_START_STATE";
 
                     case SPNEGO_NEG_TOKEN_INIT_LENGTH :
                         return "SPNEGO_NEG_TOKEN_INIT_LENGTH";
@@ -474,9 +468,6 @@
 
                     case SPNEGO_INIT_MECH_LIST_MIC_OCTET_STRING_VALUE :
                         return "SPNEGO_INIT_MECH_LIST_MIC_OCTET_STRING_VALUE";
-
-                    case SPNEGO_NEG_TOKEN_TARG_TAG :
-                        return "SPNEGO_NEG_TOKEN_TARG_TAG";
 
                     case SPNEGO_NEG_TOKEN_TARG_LENGTH :
                         return "SPNEGO_NEG_TOKEN_TARG_LENGTH";



Mime
View raw message