Enum UniversalTag
- All Implemented Interfaces:
Serializable, Comparable<UniversalTag>
Enum for ASN.1 UNIVERSAL class tags. The tags values are constructed using
the SNACC representation for tags without the primitive/constructed bit. This
is done because several bit, octet and character string types can be encoded
as primitives or as constructed types to chunk the value out.
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 |
- Author:
- Apache Directory Project
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagSEQUENCE TAGvalue for the tagSET TAGvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tagvalue for the tag -
Method Summary
Modifier and TypeMethodDescriptionbytegetValue()Get the UniversalTag valuestatic UniversalTagReturns the enum constant of this type with the specified name.static UniversalTag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RESERVED_0
value for the tag -
BOOLEAN
value for the tag -
INTEGER
value for the tag -
BIT_STRING
value for the tag -
OCTET_STRING
value for the tag -
NULL
value for the tag -
OBJECT_IDENTIFIER
value for the tag -
OBJECT_DESCRIPTOR
value for the tag -
EXTERNAL_INSTANCE_OF
value for the tag -
REAL
value for the tag -
ENUMERATED
value for the tag -
EMBEDDED_PDV
value for the tag -
UTF8_STRING
value for the tag -
RELATIVE_OID
value for the tag -
RESERVED_14
value for the tag -
RESERVED_15
value for the tag -
SEQUENCE_SEQUENCE_OF
value for the tag -
SET_SET_OF
value for the tag -
NUMERIC_STRING
value for the tag -
PRINTABLE_STRING
value for the tag -
TELETEX_STRING
value for the tag -
VIDEOTEX_STRING
value for the tag -
IA5_STRING
value for the tag -
UTC_TIME
value for the tag -
GENERALIZED_TIME
value for the tag -
GRAPHIC_STRING
value for the tag -
VISIBLE_STRING
value for the tag -
GENERAL_STRING
value for the tag -
UNIVERSAL_STRING
value for the tag -
CHARACTER_STRING
value for the tag -
BMP_STRING
value for the tag -
RESERVED_31
value for the tag -
SEQUENCE
SEQUENCE TAG -
SET
SET TAG
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public byte getValue()Get the UniversalTag value- Returns:
- The UniversalTag value
-