directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r169723 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoGrammar.java
Date Wed, 11 May 2005 23:30:45 GMT
Author: elecharny
Date: Wed May 11 16:30:44 2005
New Revision: 169723

URL: http://svn.apache.org/viewcvs?rev=169723&view=rev
Log:
- Setting a flag if a ReqFlag is present
- storing the ReqFlag in the POJO as a byte array, which is easier to handle when encoding.

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoGrammar.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoGrammar.java?rev=169723&r1=169722&r2=169723&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoGrammar.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoGrammar.java
Wed May 11 16:30:44 2005
@@ -427,6 +427,10 @@
 
                         // Store the length in the req flags expected length
                         spnego.setReqFlagsExpectedLength( tlv.getLength().getLength() );
+                        
+                        // As we have a ReqFlags element, set the flag to true
+                        spnego.setHasReqFlags(true);
+                        
                         return;
                     }
                 } );
@@ -535,6 +539,7 @@
                                     .allocate( PoolEnum.BIT_STRING_POOL ) );
                             bitString.setData( tlv.getValue().getData() );
 
+                            spnego.setReqFlags(bitString.getData()[0]);
                             spnego.setAnonFlag( bitString.getBit( 0 ) );
                             spnego.setConfFlag( bitString.getBit( 1 ) );
                             spnego.setDelegFlag( bitString.getBit( 2 ) );



Mime
View raw message