KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > maverick > crypto > asn1 > DERTags


1 /*
2  * SSL-Explorer
3  *
4  * Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */

19             
20 package com.maverick.crypto.asn1;
21
22 public interface DERTags
23 {
24     public static final int BOOLEAN = 0x01;
25     public static final int INTEGER = 0x02;
26     public static final int BIT_STRING = 0x03;
27     public static final int OCTET_STRING = 0x04;
28     public static final int NULL = 0x05;
29     public static final int OBJECT_IDENTIFIER = 0x06;
30     public static final int EXTERNAL = 0x08;
31     public static final int ENUMERATED = 0x0a;
32     public static final int SEQUENCE = 0x10;
33     public static final int SEQUENCE_OF = 0x10; // for completeness
34
public static final int SET = 0x11;
35     public static final int SET_OF = 0x11; // for completeness
36

37
38     public static final int NUMERIC_STRING = 0x12;
39     public static final int PRINTABLE_STRING = 0x13;
40     public static final int T61_STRING = 0x14;
41     public static final int VIDEOTEX_STRING = 0x15;
42     public static final int IA5_STRING = 0x16;
43     public static final int UTC_TIME = 0x17;
44     public static final int GENERALIZED_TIME = 0x18;
45     public static final int GRAPHIC_STRING = 0x19;
46     public static final int VISIBLE_STRING = 0x1a;
47     public static final int GENERAL_STRING = 0x1b;
48     public static final int UNIVERSAL_STRING = 0x1c;
49     public static final int BMP_STRING = 0x1e;
50     public static final int UTF8_STRING = 0x0c;
51
52     public static final int CONSTRUCTED = 0x20;
53     public static final int APPLICATION = 0x40;
54     public static final int TAGGED = 0x80;
55 }
56
Popular Tags