Enum UniversalTag
- java.lang.Object
-
- java.lang.Enum<UniversalTag>
-
- org.apache.directory.api.asn1.ber.tlv.UniversalTag
-
- All Implemented Interfaces:
Serializable,Comparable<UniversalTag>
public enum UniversalTag extends Enum<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 Constants Enum Constant Description BIT_STRINGvalue for the tagBMP_STRINGvalue for the tagBOOLEANvalue for the tagCHARACTER_STRINGvalue for the tagEMBEDDED_PDVvalue for the tagENUMERATEDvalue for the tagEXTERNAL_INSTANCE_OFvalue for the tagGENERAL_STRINGvalue for the tagGENERALIZED_TIMEvalue for the tagGRAPHIC_STRINGvalue for the tagIA5_STRINGvalue for the tagINTEGERvalue for the tagNULLvalue for the tagNUMERIC_STRINGvalue for the tagOBJECT_DESCRIPTORvalue for the tagOBJECT_IDENTIFIERvalue for the tagOCTET_STRINGvalue for the tagPRINTABLE_STRINGvalue for the tagREALvalue for the tagRELATIVE_OIDvalue for the tagRESERVED_0value for the tagRESERVED_14value for the tagRESERVED_15value for the tagRESERVED_31value for the tagSEQUENCESEQUENCE TAGSEQUENCE_SEQUENCE_OFvalue for the tagSETSET TAGSET_SET_OFvalue for the tagTELETEX_STRINGvalue for the tagUNIVERSAL_STRINGvalue for the tagUTC_TIMEvalue for the tagUTF8_STRINGvalue for the tagVIDEOTEX_STRINGvalue for the tagVISIBLE_STRINGvalue for the tag
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetValue()static UniversalTagvalueOf(String name)Returns 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 Detail
-
RESERVED_0
public static final UniversalTag RESERVED_0
value for the tag
-
BOOLEAN
public static final UniversalTag BOOLEAN
value for the tag
-
INTEGER
public static final UniversalTag INTEGER
value for the tag
-
BIT_STRING
public static final UniversalTag BIT_STRING
value for the tag
-
OCTET_STRING
public static final UniversalTag OCTET_STRING
value for the tag
-
NULL
public static final UniversalTag NULL
value for the tag
-
OBJECT_IDENTIFIER
public static final UniversalTag OBJECT_IDENTIFIER
value for the tag
-
OBJECT_DESCRIPTOR
public static final UniversalTag OBJECT_DESCRIPTOR
value for the tag
-
EXTERNAL_INSTANCE_OF
public static final UniversalTag EXTERNAL_INSTANCE_OF
value for the tag
-
REAL
public static final UniversalTag REAL
value for the tag
-
ENUMERATED
public static final UniversalTag ENUMERATED
value for the tag
-
EMBEDDED_PDV
public static final UniversalTag EMBEDDED_PDV
value for the tag
-
UTF8_STRING
public static final UniversalTag UTF8_STRING
value for the tag
-
RELATIVE_OID
public static final UniversalTag RELATIVE_OID
value for the tag
-
RESERVED_14
public static final UniversalTag RESERVED_14
value for the tag
-
RESERVED_15
public static final UniversalTag RESERVED_15
value for the tag
-
SEQUENCE_SEQUENCE_OF
public static final UniversalTag SEQUENCE_SEQUENCE_OF
value for the tag
-
SET_SET_OF
public static final UniversalTag SET_SET_OF
value for the tag
-
NUMERIC_STRING
public static final UniversalTag NUMERIC_STRING
value for the tag
-
PRINTABLE_STRING
public static final UniversalTag PRINTABLE_STRING
value for the tag
-
TELETEX_STRING
public static final UniversalTag TELETEX_STRING
value for the tag
-
VIDEOTEX_STRING
public static final UniversalTag VIDEOTEX_STRING
value for the tag
-
IA5_STRING
public static final UniversalTag IA5_STRING
value for the tag
-
UTC_TIME
public static final UniversalTag UTC_TIME
value for the tag
-
GENERALIZED_TIME
public static final UniversalTag GENERALIZED_TIME
value for the tag
-
GRAPHIC_STRING
public static final UniversalTag GRAPHIC_STRING
value for the tag
-
VISIBLE_STRING
public static final UniversalTag VISIBLE_STRING
value for the tag
-
GENERAL_STRING
public static final UniversalTag GENERAL_STRING
value for the tag
-
UNIVERSAL_STRING
public static final UniversalTag UNIVERSAL_STRING
value for the tag
-
CHARACTER_STRING
public static final UniversalTag CHARACTER_STRING
value for the tag
-
BMP_STRING
public static final UniversalTag BMP_STRING
value for the tag
-
RESERVED_31
public static final UniversalTag RESERVED_31
value for the tag
-
SEQUENCE
public static final UniversalTag SEQUENCE
SEQUENCE TAG
-
SET
public static final UniversalTag SET
SET TAG
-
-
Method Detail
-
values
public static UniversalTag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UniversalTag c : UniversalTag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UniversalTag valueOf(String name)
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()
- Returns:
- The UniversalTag value
-
-