directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r167874 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java
Date Tue, 03 May 2005 07:08:47 GMT
Author: elecharny
Date: Tue May  3 00:08:46 2005
New Revision: 167874

URL: http://svn.apache.org/viewcvs?rev=167874&view=rev
Log:
Added an expected length for req flags. 

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java?rev=167874&r1=167873&r2=167874&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java
Tue May  3 00:08:46 2005
@@ -68,6 +68,9 @@
 
     /** The integrity flag */
     private boolean     integFlag;
+    
+    /** The req falgs expected length */
+    private int reqFlagsExpectedLength;
 
     /** The mechanism tokens */
     private OctetString mechToken;
@@ -88,16 +91,16 @@
         // We should not create this kind of object directly, it must
         // be created through the factory.
         
+        negTokenInitSequenceExpectedLength = 0;
+
         // Allocating 10 OID should be enough...
         // Ideally, we might want to allocate this array from a pool 
         mechTypeList = new OID[mechTypeListMaxSize];
         
         mechTypeListCurrentSize = 0;
-        
-        negTokenInitSequenceExpectedLength = 0;
+
         mechTypesExpectedLength = 0;
         mechTypeListExpectedLength = 0;
-        mechTokenExpectedLength = 0;
         
         // Sets the flag to false.
         delegFlag = false;
@@ -107,6 +110,10 @@
         anonFlag = false;
         confFlag = false;
         integFlag = false;
+        reqFlagsExpectedLength = 0;
+        
+        // Set the mechToken expected length
+        mechTokenExpectedLength = 0;
     }
 
     //~ Methods ------------------------------------------------------------------------------------
@@ -145,6 +152,7 @@
         mechTypesExpectedLength = 0;
         mechTypeListExpectedLength = 0;
         mechTokenExpectedLength = 0;
+        reqFlagsExpectedLength = 0;
         
         // Resets the flag to false.
         delegFlag = false;
@@ -437,5 +445,19 @@
      */
     public void setMechTokenExpectedLength(int mechTokenExpectedLength) {
         this.mechTokenExpectedLength = mechTokenExpectedLength;
+    }
+    
+    /**
+     * @return Returns the reqFlagsExpectedLength.
+     */
+    public int getReqFlagsExpectedLength() {
+        return reqFlagsExpectedLength;
+    }
+    
+    /**
+     * @param reqFlagsExpectedLength The reqFlagsExpectedLength to set.
+     */
+    public void setReqFlagsExpectedLength(int reqFlagsExpectedLength) {
+        this.reqFlagsExpectedLength = reqFlagsExpectedLength;
     }
 }



Mime
View raw message