directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r165222 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoStatesEnum.java
Date Thu, 28 Apr 2005 23:01:33 GMT
Author: elecharny
Date: Thu Apr 28 16:01:32 2005
New Revision: 165222

URL: http://svn.apache.org/viewcvs?rev=165222&view=rev
Log:
Modified the transitions and improved the getState function

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=165222&r1=165221&r2=165222&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 Apr 28 16:01:32 2005
@@ -119,13 +119,13 @@
     public static final int SPNEGO_REQ_FLAGS_VALUE = 17;
 
     /** SPNEGO mech types length */
-    public static final int SPNEGO_REQ_FLAGS_BIT_STRING_TAG = 18;
+    public static final int SPNEGO_CONTEXT_FLAGS_TAG = 18;
 
     /** SPNEGO mech types value */
-    public static final int SPNEGO_REQ_FLAGS_BIT_STRING_LENGTH = 19;
+    public static final int SPNEGO_CONTEXT_FLAGS_LENGTH = 19;
 
     /** SPNEGO mech types value */
-    public static final int SPNEGO_REQ_FLAGS_BIT_STRING_VALUE = 20;
+    public static final int SPNEGO_CONTEXT_FLAGS_VALUE = 20;
 
     //--------------------------------------------------------------------
     // The next tag could be either
@@ -155,25 +155,33 @@
     public static final int SPNEGO_MECH_TOKEN_OCTET_STRING_VALUE = 26;
 
     //--------------------------------------------------------------------
+    // The next tag could be either
+    // - a mechListMIC
+    // - the end of the grammar
+    //--------------------------------------------------------------------
+    /** SPNEGO mech token following tag */
+    public static final int SPNEGO_METH_TOKEN_FOLLOWING_TAG = 27;
+
+    //--------------------------------------------------------------------
     // mechListMIC state
     //--------------------------------------------------------------------
     /** SPNEGO mech list MIC tag */
-    public static final int SPNEGO_MECH_LIST_MIC_TAG = 27;
+    public static final int SPNEGO_MECH_LIST_MIC_TAG = 28;
 
     /** SPNEGO mech list MIC length */
-    public static final int SPNEGO_MECH_LIST_MIC_LENGTH = 28;
+    public static final int SPNEGO_MECH_LIST_MIC_LENGTH = 29;
 
     /** SPNEGO mech list MIC value */
-    public static final int SPNEGO_MECH_LIST_MIC_VALUE = 29;
+    public static final int SPNEGO_MECH_LIST_MIC_VALUE = 30;
 
     /** SPNEGO mech list MIC tag */
-    public static final int SPNEGO_MECH_LIST_MIC_OCTET_STRING_TAG = 30;
+    public static final int SPNEGO_MECH_LIST_MIC_OCTET_STRING_TAG = 31;
 
     /** SPNEGO mech list MIC length */
-    public static final int SPNEGO_MECH_LIST_MIC_OCTET_STRING_LENGTH = 31;
+    public static final int SPNEGO_MECH_LIST_MIC_OCTET_STRING_LENGTH = 32;
 
     /** SPNEGO mech list MIC value */
-    public static final int SPNEGO_MECH_LIST_MIC_OCTET_STRING_VALUE = 32;
+    public static final int SPNEGO_MECH_LIST_MIC_OCTET_STRING_VALUE = 33;
 
     //====================================================================
     // NegTokenTarg state
@@ -190,7 +198,7 @@
     public static final int SPNEGO_NEG_TOKEN_TARG_VALUE = 8;
 
     /** SPNEGO last state */
-    public static final int LAST_SPNEGO_STATE = 33;
+    public static final int LAST_SPNEGO_STATE = 34;
 
     /** SPNEGO Grammar */
     public static final int SPNEGO_GRAMMAR = 0;
@@ -296,6 +304,15 @@
                     case SPNEGO_REQ_FLAGS_VALUE :
                         return "SPNEGO_REQ_FLAGS_VALUE";
 
+                    case SPNEGO_CONTEXT_FLAGS_TAG :
+                        return "SPNEGO_CONTEXT_FLAGS_TAG";
+
+                    case SPNEGO_CONTEXT_FLAGS_LENGTH :
+                        return "SPNEGO_CONTEXT_FLAGS_LENGTH";
+
+                    case SPNEGO_CONTEXT_FLAGS_VALUE :
+                        return "SPNEGO_CONTEXT_FLAGS_VALUE";
+
                     case SPNEGO_REQ_FLAGS_FOLLOWING_TAG :
                         return "SPNEGO_REQ_FLAGS_FOLLOWING_TAG";
 
@@ -305,6 +322,18 @@
                     case SPNEGO_MECH_TOKEN_VALUE :
                         return "SPNEGO_MECH_TOKEN_VALUE";
 
+                    case SPNEGO_MECH_TOKEN_OCTET_STRING_TAG :
+                        return "SPNEGO_MECH_TOKEN_OCTET_STRING_TAG";
+
+                    case SPNEGO_MECH_TOKEN_OCTET_STRING_LENGTH :
+                        return "SPNEGO_MECH_TOKEN_OCTET_STRING_LENGTH";
+
+                    case SPNEGO_MECH_TOKEN_OCTET_STRING_VALUE :
+                        return "SPNEGO_MECH_TOKEN_OCTET_STRING_VALUE";
+
+                    case SPNEGO_METH_TOKEN_FOLLOWING_TAG :
+                        return "SPNEGO_METH_TOKEN_FOLLOWING_TAG";
+
                     case SPNEGO_MECH_LIST_MIC_TAG :
                         return "SPNEGO_MECH_LIST_MIC_TAG";
 
@@ -313,6 +342,15 @@
 
                     case SPNEGO_MECH_LIST_MIC_VALUE :
                         return "SPNEGO_MECH_LIST_MIC_VALUE";
+
+                    case SPNEGO_MECH_LIST_MIC_OCTET_STRING_TAG :
+                        return "SPNEGO_MECH_LIST_MIC_OCTET_STRING_TAG";
+
+                    case SPNEGO_MECH_LIST_MIC_OCTET_STRING_LENGTH :
+                        return "SPNEGO_MECH_LIST_MIC_OCTET_STRING_LENGTH";
+
+                    case SPNEGO_MECH_LIST_MIC_OCTET_STRING_VALUE :
+                        return "SPNEGO_MECH_LIST_MIC_OCTET_STRING_VALUE";
 
                     default :
                         return "UNKNOWN";



Mime
View raw message