directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r540373 - /directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/tlv/UniversalTag.java
Date Tue, 22 May 2007 00:02:48 GMT
Author: elecharny
Date: Mon May 21 17:02:47 2007
New Revision: 540373

URL: http://svn.apache.org/viewvc?view=rev&rev=540373
Log:
Added UTF8_STRING_TAG and GENERALIZED_TIME_TAG
Reformated some code

Modified:
    directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/tlv/UniversalTag.java

Modified: directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/tlv/UniversalTag.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/tlv/UniversalTag.java?view=diff&rev=540373&r1=540372&r2=540373
==============================================================================
--- directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/tlv/UniversalTag.java
(original)
+++ directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/tlv/UniversalTag.java
Mon May 21 17:02:47 2007
@@ -270,12 +270,40 @@
 
     /** String representation of the tags */
     private static final String[] UNIVERSAL_TAG_STRING =
-        { "RESERVED_0", "BOOLEAN", "INTEGER", "BIT_STRING", "OCTET_STRING", "NULL", "OBJECT_IDENTIFIER",
-            "OBJECT_DESCRIPTOR", "EXTERNAL_INSTANCE_OF", "REAL", "ENUMERATED", "EMBEDDED_PDV",
"UTF8_STRING",
-            "RELATIVE_OID", "RESERVED_14", "RESERVED_15", "SEQUENCE_SEQUENCE_OF", "SET_SET_OF",
"NUMERIC_STRING",
-            "PRINTABLE_STRING", "TELETEX_STRING", "VIDEOTEX_STRING", "IA5_STRING", "UTC_TIME",
"GENERALIZED_TIME",
-            "GRAPHIC_STRING", "VISIBLE_STRING", "GENERAL_STRING", "UNIVERSAL_STRING", "CHARACTER_STRING",
"BMP_STRING",
-            "RESERVED_31" };
+        { 
+    		"RESERVED_0", 
+    	    "BOOLEAN", 
+    	    "INTEGER", 
+    	    "BIT_STRING", 
+    	    "OCTET_STRING", 
+    	    "NULL", 
+    	    "OBJECT_IDENTIFIER",
+            "OBJECT_DESCRIPTOR", 
+            "EXTERNAL_INSTANCE_OF", 
+            "REAL", 
+            "ENUMERATED", 
+            "EMBEDDED_PDV", 
+            "UTF8_STRING",
+            "RELATIVE_OID", 
+            "RESERVED_14", 
+            "RESERVED_15", 
+            "SEQUENCE_SEQUENCE_OF", 
+            "SET_SET_OF", 
+            "NUMERIC_STRING",
+            "PRINTABLE_STRING", 
+            "TELETEX_STRING", 
+            "VIDEOTEX_STRING", 
+            "IA5_STRING", 
+            "UTC_TIME", 
+            "GENERALIZED_TIME",
+            "GRAPHIC_STRING", 
+            "VISIBLE_STRING", 
+            "GENERAL_STRING", 
+            "UNIVERSAL_STRING", 
+            "CHARACTER_STRING", 
+            "BMP_STRING",
+            "RESERVED_31" 
+        };
 
     /** ASN.1 primitive tag values */
     public static final byte BOOLEAN_TAG = 0x01;
@@ -285,6 +313,10 @@
     public static final byte OCTET_STRING_TAG = 0x04;
 
     public static final byte ENUMERATED_TAG = 0x0A;
+    
+    public static final byte UTF8_STRING_TAG = 0x0C;
+
+    public static final byte GENERALIZED_TIME_TAG = 0x18;
 
     public static final byte SEQUENCE_TAG = 0x30;
 



Mime
View raw message