public class UniversalTag extends Object
These tags can have one of the following values:
Id | Usage |
---|---|
[UNIVERSAL 0] | reserved for BER |
[UNIVERSAL 1] | BOOLEAN |
[UNIVERSAL 2] | INTEGER |
[UNIVERSAL 3] | BIT STRING |
[UNIVERSAL 4] | OCTET STRING |
[UNIVERSAL 5] | NULL |
[UNIVERSAL 6] | OBJECT IDENTIFIER |
[UNIVERSAL 7] | ObjectDescriptor |
[UNIVERSAL 8] | EXTERNAL, INSTANCE OF |
[UNIVERSAL 9] | REAL |
[UNIVERSAL 10] | ENUMERATED |
[UNIVERSAL 11] | EMBEDDED PDV |
[UNIVERSAL 12] | UTF8String |
[UNIVERSAL 13] | RELATIVE-OID |
[UNIVERSAL 14] | reserved for future use |
[UNIVERSAL 15] | reserved for future use |
[UNIVERSAL 16] | SEQUENCE, SEQUENCE OF |
[UNIVERSAL 17] | SET, SET OF |
[UNIVERSAL 18] | NumericString |
[UNIVERSAL 19] | PrintableString |
[UNIVERSAL 20] | TeletexString, T61String |
[UNIVERSAL 21] | VideotexString |
[UNIVERSAL 22] | IA5String |
[UNIVERSAL 23] | UTCTime |
[UNIVERSAL 24] | GeneralizedTime |
[UNIVERSAL 25] | GraphicString |
[UNIVERSAL 26] | VisibleString, ISO646String |
[UNIVERSAL 27] | GeneralString |
[UNIVERSAL 28] | UniversalString |
[UNIVERSAL 29] | CHARACTER STRING |
[UNIVERSAL 30] | BMPString |
[UNIVERSAL 31] | reserved for future use |
Modifier and Type | Field and Description |
---|---|
static int |
BIT_STRING
value for the tag
|
static byte |
BIT_STRING_TAG
BIT_STRING TAG
|
static int |
BMP_STRING
value for the tag
|
static int |
BOOLEAN
value for the tag
|
static byte |
BOOLEAN_TAG
Boolean TAG
|
static int |
CHARACTER_STRING
value for the tag
|
static int |
EMBEDDED_PDV
value for the tag
|
static int |
ENUMERATED
value for the tag
|
static byte |
ENUMERATED_TAG
ENUMERATED TAG
|
static int |
EXTERNAL_INSTANCE_OF
value for the tag
|
static int |
GENERAL_STRING
value for the tag
|
static byte |
GENERALIZED_STRING_TAG
GENERALIZED_STRING TAG
|
static int |
GENERALIZED_TIME
value for the tag
|
static byte |
GENERALIZED_TIME_TAG
GENERALIZED_TIME TAG
|
static int |
GRAPHIC_STRING
value for the tag
|
static int |
IA5_STRING
value for the tag
|
static int |
INTEGER
value for the tag
|
static byte |
INTEGER_TAG
Integer TAG
|
static int |
NULL
value for the tag
|
static int |
NUMERIC_STRING
value for the tag
|
static int |
OBJECT_DESCRIPTOR
value for the tag
|
static int |
OBJECT_IDENTIFIER
value for the tag
|
static int |
OCTET_STRING
value for the tag
|
static byte |
OCTET_STRING_TAG
OCTET_STRING TAG
|
static int |
PRINTABLE_STRING
value for the tag
|
static int |
REAL
value for the tag
|
static int |
RELATIVE_OID
value for the tag
|
static int |
RESERVED_0
value for the tag
|
static int |
RESERVED_14
value for the tag
|
static int |
RESERVED_15
value for the tag
|
static int |
RESERVED_31
value for the tag
|
static int |
SEQUENCE_SEQUENCE_OF
value for the tag
|
static byte |
SEQUENCE_TAG
SEQUENCE TAG
|
static int |
SET_SET_OF
value for the tag
|
static byte |
SET_TAG
SET TAG
|
static int |
TELETEX_STRING
value for the tag
|
static int |
UNIVERSAL_STRING
value for the tag
|
static int |
UTC_TIME
value for the tag
|
static int |
UTF8_STRING
value for the tag
|
static byte |
UTF8_STRING_TAG
UTF8_STRING TAG
|
static int |
VIDEOTEX_STRING
value for the tag
|
static int |
VISIBLE_STRING
value for the tag
|
Constructor and Description |
---|
UniversalTag() |
Modifier and Type | Method and Description |
---|---|
static String |
toString(int tag)
Gets the ASN.1 UNIVERSAL type tag's enum using a tag value.
|
public static final int RESERVED_0
public static final int BOOLEAN
public static final int INTEGER
public static final int BIT_STRING
public static final int OCTET_STRING
public static final int NULL
public static final int OBJECT_IDENTIFIER
public static final int OBJECT_DESCRIPTOR
public static final int EXTERNAL_INSTANCE_OF
public static final int REAL
public static final int ENUMERATED
public static final int EMBEDDED_PDV
public static final int UTF8_STRING
public static final int RELATIVE_OID
public static final int RESERVED_14
public static final int RESERVED_15
public static final int SEQUENCE_SEQUENCE_OF
public static final int SET_SET_OF
public static final int NUMERIC_STRING
public static final int PRINTABLE_STRING
public static final int TELETEX_STRING
public static final int VIDEOTEX_STRING
public static final int IA5_STRING
public static final int UTC_TIME
public static final int GENERALIZED_TIME
public static final int GRAPHIC_STRING
public static final int VISIBLE_STRING
public static final int GENERAL_STRING
public static final int UNIVERSAL_STRING
public static final int CHARACTER_STRING
public static final int BMP_STRING
public static final int RESERVED_31
public static final byte BOOLEAN_TAG
public static final byte INTEGER_TAG
public static final byte BIT_STRING_TAG
public static final byte OCTET_STRING_TAG
public static final byte ENUMERATED_TAG
public static final byte UTF8_STRING_TAG
public static final byte GENERALIZED_TIME_TAG
public static final byte GENERALIZED_STRING_TAG
public static final byte SEQUENCE_TAG
public static final byte SET_TAG
public static String toString(int tag)
tag
- the first octet of the TLVCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.