directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r169725 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoPOJO.java
Date Wed, 11 May 2005 23:32:07 GMT
Author: elecharny
Date: Wed May 11 16:32:06 2005
New Revision: 169725

URL: http://svn.apache.org/viewcvs?rev=169725&view=rev
Log:
The tags used to create the PDU are now stored as constants in the class.

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoPOJO.java?rev=169725&r1=169724&r2=169725&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoPOJO.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoPOJO.java
Wed May 11 16:32:06 2005
@@ -26,4 +26,24 @@
  */
 public interface SpnegoPOJO extends Asn1POJO
 {
+    byte NEG_TOKEN_SEQUENCE_BYTE = (byte)0x30;
+
+    // Spnego main elements
+    byte NEG_TOKEN_INIT_BYTE = (byte)0xA0;
+    byte NEG_TOKEN_TARG_TAG = (byte)0xA1;
+
+    // NegTokenInit sub-elements
+    byte MECH_TYPES_BYTE = (byte)0xA0;
+    byte[] REQ_FLAGS_BYTES = new byte[]{(byte)0xA1, 0x04, 0x03, 0x02, 0x01};
+    byte MECH_TOKEN_BYTE = (byte)0xA2;
+    byte MECH_LIST_MIC_BYTE = (byte)0xA3;
+    
+    // NegTokenTarg sub-elements
+    byte[] NEG_RESULT_BYTES = new byte[]{(byte)0xA0, 0x03, 0x0A, 0x01};
+    byte SUPPORTED_MECH_BYTE = (byte)0xA1;
+    byte RESPONSE_TOKEN_BYTE = (byte)0xA2;
+
+    // primitive types
+    byte OBJECT_IDENTIFIER_BYTE = (byte)0x06;
+    byte OCTET_STRING_BYTE = (byte)0x04;
 }



Mime
View raw message