You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/05/12 01:30:45 UTC
svn commit: r169723 -
/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoGrammar.java
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 ) );