directory-commits mailing list archives

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

URL: http://svn.apache.org/viewcvs?rev=168357&view=rev
Log:
Added all the SpnegoNegTokenTarg states.

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=168357&r1=168356&r2=168357&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 10:08:40 2005
@@ -60,7 +60,7 @@
 
     //--------------------------------------------------------------------
     // As the next element is optional, we need to use a special
-    // transition to fork to the good state
+    // transition to fork to the good states
     //--------------------------------------------------------------------
     /** SPNEGO neg token init SEQUENCE Value next tag */
     public static final int SPNEGO_NEG_TOKEN_INIT_SEQUENCE_FOLLOWING_TAG = 6;
@@ -165,40 +165,166 @@
     //--------------------------------------------------------------------
     // mechListMIC state
     //--------------------------------------------------------------------
-    /** SPNEGO mech list MIC tag */
-    public static final int SPNEGO_MECH_LIST_MIC_TAG = 28;
-
     /** SPNEGO mech list MIC length */
-    public static final int SPNEGO_MECH_LIST_MIC_LENGTH = 29;
+    public static final int SPNEGO_INIT_MECH_LIST_MIC_LENGTH = 28;
 
     /** SPNEGO mech list MIC value */
-    public static final int SPNEGO_MECH_LIST_MIC_VALUE = 30;
+    public static final int SPNEGO_INIT_MECH_LIST_MIC_VALUE = 29;
 
     /** SPNEGO mech list MIC tag */
-    public static final int SPNEGO_MECH_LIST_MIC_OCTET_STRING_TAG = 31;
+    public static final int SPNEGO_INIT_MECH_LIST_MIC_OCTET_STRING_TAG = 30;
 
     /** SPNEGO mech list MIC length */
-    public static final int SPNEGO_MECH_LIST_MIC_OCTET_STRING_LENGTH = 32;
+    public static final int SPNEGO_INIT_MECH_LIST_MIC_OCTET_STRING_LENGTH = 31;
 
     /** SPNEGO mech list MIC value */
-    public static final int SPNEGO_MECH_LIST_MIC_OCTET_STRING_VALUE = 33;
+    public static final int SPNEGO_INIT_MECH_LIST_MIC_OCTET_STRING_VALUE = 32;
 
     //====================================================================
     // NegTokenTarg state
     //====================================================================
-
-
     /** SPNEGO neg token targ Tag */
-    public static final int SPNEGO_NEG_TOKEN_TARG_TAG = 6;
+    public static final int SPNEGO_NEG_TOKEN_TARG_TAG = 33;
 
     /** SPNEGO neg token targ Length */
-    public static final int SPNEGO_NEG_TOKEN_TARG_LENGTH = 7;
+    public static final int SPNEGO_NEG_TOKEN_TARG_LENGTH = 34;
 
     /** SPNEGO neg token targ Value */
-    public static final int SPNEGO_NEG_TOKEN_TARG_VALUE = 8;
+    public static final int SPNEGO_NEG_TOKEN_TARG_VALUE = 35;
+
+    //--------------------------------------------------------------------
+    // negTokenTarg state (the SEQUENCE)
+    //--------------------------------------------------------------------
+    /** SPNEGO neg token targ SEQUENCE Tag */
+    public static final int SPNEGO_NEG_TOKEN_TARG_SEQUENCE_TAG = 36;
+
+    /** SPNEGO neg token targ SEQUENCE Length */
+    public static final int SPNEGO_NEG_TOKEN_TARG_SEQUENCE_LENGTH = 37;
+
+    /** SPNEGO neg token targ SEQUENCE Value */
+    public static final int SPNEGO_NEG_TOKEN_TARG_SEQUENCE_VALUE = 38;
+
+    //--------------------------------------------------------------------
+    // 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;
+
+    //--------------------------------------------------------------------
+    // NegResult state
+    //--------------------------------------------------------------------
+    /** SPNEGO NegResult length */
+    public static final int SPNEGO_NEG_RESULT_LENGTH = 40;
+
+    /** SPNEGO NegResult value */
+    public static final int SPNEGO_NEG_RESULT_VALUE = 41;
+
+    //--------------------------------------------------------------------
+    // NegResult value state
+    //--------------------------------------------------------------------
+    /** SPNEGO NegResult value tag */
+    public static final int SPNEGO_NEG_RESULT_VALUE_TAG = 42;
+
+    /** SPNEGO NegResult value length */
+    public static final int SPNEGO_NEG_RESULT_VALUE_LENGTH = 43;
+
+    /** SPNEGO NegResult value value */
+    public static final int SPNEGO_NEG_RESULT_VALUE_VALUE = 44;
+
+    //--------------------------------------------------------------------
+    // The next tag could be either
+    // - a supportedMech
+    // - a responseToken
+    // - a mechListMIC
+    // - the end of the grammar
+    //--------------------------------------------------------------------
+    /** SPNEGO negResult following tag */
+    public static final int SPNEGO_NEG_RESULT_FOLLOWING_TAG = 45;
+
+    //--------------------------------------------------------------------
+    // Supported meth state
+    //--------------------------------------------------------------------
+    /** SPNEGO Supported meth length */
+    public static final int SPNEGO_SUPPORTED_METH_LENGTH = 46;
+
+    /** SPNEGO Supported meth value */
+    public static final int SPNEGO_SUPPORTED_METH_VALUE = 47;
+
+    //--------------------------------------------------------------------
+    // Supported meth OID state
+    //--------------------------------------------------------------------
+    /** SPNEGO Supported meth OID tag */
+    public static final int SPNEGO_SUPPORTED_METH_OID_TAG = 48;
+
+    /** SPNEGO Supported meth OID length */
+    public static final int SPNEGO_SUPPORTED_METH_OID_LENGTH = 49;
+
+    /** SPNEGO Supported meth OID value */
+    public static final int SPNEGO_SUPPORTED_METH_OID_VALUE = 50;
+
+    //--------------------------------------------------------------------
+    // The next tag could be either
+    // - a responseToken
+    // - a mechListMIC
+    // - the end of the grammar
+    //--------------------------------------------------------------------
+    /** SPNEGO negResult following tag */
+    public static final int SPNEGO_SUPPORTED_METH_FOLLOWING_TAG = 51;
+
+    //--------------------------------------------------------------------
+    // Response token state
+    //--------------------------------------------------------------------
+    /** SPNEGO Response token length */
+    public static final int SPNEGO_RESPONSE_TOKEN_LENGTH = 52;
+
+    /** SPNEGO Response token value */
+    public static final int SPNEGO_RESPONSE_TOKEN_VALUE = 53;
+
+    //--------------------------------------------------------------------
+    // Response token OctetString state
+    //--------------------------------------------------------------------
+    /** SPNEGO Response token OctetString tag */
+    public static final int SPNEGO_RESPONSE_TOKEN_OCTET_STRING_TAG = 54;
+
+    /** SPNEGO Response token OctetSstring length */
+    public static final int SPNEGO_RESPONSE_TOKEN_OCTET_STRING_LENGTH = 55;
+
+    /** SPNEGO Response token OctetString value */
+    public static final int SPNEGO_RESPONSE_TOKEN_OCTET_STRING_VALUE = 56;
+
+    //--------------------------------------------------------------------
+    // The next tag could be either
+    // - a mechListMIC
+    // - the end of the grammar
+    //--------------------------------------------------------------------
+    /** SPNEGO negResult following tag */
+    public static final int SPNEGO_RESPONSE_TOKEN_FOLLOWING_TAG = 57;
+
+    //--------------------------------------------------------------------
+    // NegTokenTarg Mech list MIC state
+    //--------------------------------------------------------------------
+    /** SPNEGO NegTokenTarg Mech list MIC length */
+    public static final int SPNEGO_TARG_MECH_LIST_MIC_LENGTH = 58;
+
+    /** SPNEGO NegTokenTarg Mech list MIC value */
+    public static final int SPNEGO_TARG_MECH_LIST_MIC_VALUE = 59;
+
+    //--------------------------------------------------------------------
+    // 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;
+
+    /** SPNEGO NegTokenTarg Mech list MIC OctetString length */
+    public static final int SPNEGO_TARG_MECH_LIST_MIC_OCTET_STRING_LENGTH = 61;
+
+    /** SPNEGO NegTokenTarg Mech list MIC OctetString value */
+    public static final int SPNEGO_TARG_MECH_LIST_MIC_OCTET_STRING_VALUE = 62;
+
 
     /** SPNEGO last state */
-    public static final int LAST_SPNEGO_STATE = 34;
+    public static final int LAST_SPNEGO_STATE = 63;
 
     /** SPNEGO Grammar */
     public static final int SPNEGO_GRAMMAR = 0;
@@ -334,23 +460,110 @@
                     case SPNEGO_METH_TOKEN_FOLLOWING_TAG :
                         return "SPNEGO_METH_TOKEN_FOLLOWING_TAG";
 
-                    case SPNEGO_MECH_LIST_MIC_TAG :
-                        return "SPNEGO_MECH_LIST_MIC_TAG";
+                    case SPNEGO_INIT_MECH_LIST_MIC_LENGTH :
+                        return "SPNEGO_INIT_MECH_LIST_MIC_LENGTH";
+
+                    case SPNEGO_INIT_MECH_LIST_MIC_VALUE :
+                        return "SPNEGO_INIT_MECH_LIST_MIC_VALUE";
+
+                    case SPNEGO_INIT_MECH_LIST_MIC_OCTET_STRING_TAG :
+                        return "SPNEGO_INIT_MECH_LIST_MIC_OCTET_STRING_TAG";
+
+                    case SPNEGO_INIT_MECH_LIST_MIC_OCTET_STRING_LENGTH :
+                        return "SPNEGO_INIT_MECH_LIST_MIC_OCTET_STRING_LENGTH";
+
+                    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";
+
+                    case SPNEGO_NEG_TOKEN_TARG_VALUE :
+                        return "SPNEGO_NEG_TOKEN_TARG_VALUE";
+
+                    case SPNEGO_NEG_TOKEN_TARG_SEQUENCE_TAG :
+                        return "SPNEGO_NEG_TOKEN_TARG_SEQUENCE_TAG";
+
+                    case SPNEGO_NEG_TOKEN_TARG_SEQUENCE_LENGTH :
+                        return "SPNEGO_NEG_TOKEN_TARG_SEQUENCE_LENGTH";
+
+                    case SPNEGO_NEG_TOKEN_TARG_SEQUENCE_VALUE :
+                        return "SPNEGO_NEG_TOKEN_TARG_SEQUENCE_VALUE";
+
+                    case SPNEGO_NEG_TOKEN_TARG_SEQUENCE_FOLLOWING_TAG :
+                        return "SPNEGO_NEG_TOKEN_TARG_SEQUENCE_FOLLOWING_TAG";
+
+                    case SPNEGO_NEG_RESULT_LENGTH :
+                        return "SPNEGO_NEG_RESULT_LENGTH";
+
+                    case SPNEGO_NEG_RESULT_VALUE :
+                        return "SPNEGO_NEG_RESULT_VALUE";
+
+                    case SPNEGO_NEG_RESULT_VALUE_TAG :
+                        return "SPNEGO_NEG_RESULT_VALUE_TAG";
+
+                    case SPNEGO_NEG_RESULT_VALUE_LENGTH :
+                        return "SPNEGO_NEG_RESULT_VALUE_LENGTH";
+
+                    case SPNEGO_NEG_RESULT_VALUE_VALUE :
+                        return "SPNEGO_NEG_RESULT_VALUE_VALUE";
+
+                    case SPNEGO_NEG_RESULT_FOLLOWING_TAG :
+                        return "SPNEGO_NEG_RESULT_FOLLOWING_TAG";
+
+                    case SPNEGO_SUPPORTED_METH_LENGTH :
+                        return "SPNEGO_SUPPORTED_METH_LENGTH";
+
+                    case SPNEGO_SUPPORTED_METH_VALUE :
+                        return "SPNEGO_SUPPORTED_METH_VALUE";
+
+                    case SPNEGO_SUPPORTED_METH_OID_TAG :
+                        return "SPNEGO_SUPPORTED_METH_OID_TAG";
+
+                    case SPNEGO_SUPPORTED_METH_OID_LENGTH :
+                        return "SPNEGO_SUPPORTED_METH_OID_LENGTH";
+
+                    case SPNEGO_SUPPORTED_METH_OID_VALUE :
+                        return "SPNEGO_SUPPORTED_METH_OID_VALUE";
+
+                    case SPNEGO_SUPPORTED_METH_FOLLOWING_TAG :
+                        return "SPNEGO_SUPPORTED_METH_FOLLOWING_TAG";
+
+                    case SPNEGO_RESPONSE_TOKEN_LENGTH :
+                        return "SPNEGO_RESPONSE_TOKEN_LENGTH";
+
+                    case SPNEGO_RESPONSE_TOKEN_VALUE :
+                        return "SPNEGO_RESPONSE_TOKEN_VALUE";
+
+                    case SPNEGO_RESPONSE_TOKEN_OCTET_STRING_TAG :
+                        return "SPNEGO_RESPONSE_TOKEN_OCTET_STRING_TAG";
+
+                    case SPNEGO_RESPONSE_TOKEN_OCTET_STRING_LENGTH :
+                        return "SPNEGO_RESPONSE_TOKEN_OCTET_STRING_LENGTH";
+
+                    case SPNEGO_RESPONSE_TOKEN_OCTET_STRING_VALUE :
+                        return "SPNEGO_RESPONSE_TOKEN_OCTET_STRING_VALUE";
+
+                    case SPNEGO_RESPONSE_TOKEN_FOLLOWING_TAG :
+                        return "SPNEGO_RESPONSE_TOKEN_FOLLOWING_TAG";
 
-                    case SPNEGO_MECH_LIST_MIC_LENGTH :
-                        return "SPNEGO_MECH_LIST_MIC_LENGTH";
+                    case SPNEGO_TARG_MECH_LIST_MIC_LENGTH :
+                        return "SPNEGO_TARG_MECH_LIST_MIC_LENGTH";
 
-                    case SPNEGO_MECH_LIST_MIC_VALUE :
-                        return "SPNEGO_MECH_LIST_MIC_VALUE";
+                    case SPNEGO_TARG_MECH_LIST_MIC_VALUE :
+                        return "SPNEGO_TARG_MECH_LIST_MIC_VALUE";
 
-                    case SPNEGO_MECH_LIST_MIC_OCTET_STRING_TAG :
-                        return "SPNEGO_MECH_LIST_MIC_OCTET_STRING_TAG";
+                    case SPNEGO_TARG_MECH_LIST_MIC_OCTET_STRING_TAG :
+                        return "SPNEGO_TARG_MECH_LIST_MIC_OCTET_STRING_TAG";
 
-                    case SPNEGO_MECH_LIST_MIC_OCTET_STRING_LENGTH :
-                        return "SPNEGO_MECH_LIST_MIC_OCTET_STRING_LENGTH";
+                    case SPNEGO_TARG_MECH_LIST_MIC_OCTET_STRING_LENGTH :
+                        return "SPNEGO_TARG_MECH_LIST_MIC_OCTET_STRING_LENGTH";
 
-                    case SPNEGO_MECH_LIST_MIC_OCTET_STRING_VALUE :
-                        return "SPNEGO_MECH_LIST_MIC_OCTET_STRING_VALUE";
+                    case SPNEGO_TARG_MECH_LIST_MIC_OCTET_STRING_VALUE :
+                        return "SPNEGO_TARG_MECH_LIST_MIC_OCTET_STRING_VALUE";
 
                     default :
                         return "UNKNOWN";



Mime
View raw message