Asn1Type Enumeration

Represents an enumeration of ASN.1 types that belong to UNIVERSAL class.

Definition

Namespace: SysadminsLV.Asn1Parser
Assembly: SysadminsLV.Asn1Parser (in SysadminsLV.Asn1Parser.dll) Version: 1.2.11
C#
public enum Asn1Type

Members

RESERVED0 Reserved for BER.
BOOLEAN1 The boolean type, declared with the keyword BOOLEAN, whose two possible values are TRUE and FALSE.
INTEGER2 The integer type, declared in ASN.1 by the keyword INTEGER, which stand for any positive or negative integer whatever its length.

Note, however, that this set of values does not include singular values like +∞ or -∞. These values are members of the REAL type

BIT_STRING3 The BIT STRING is used to transmit data that are inherently binary (a compressed facsimile or encrypted data, for example) or to model boolean vectors (a list of choices in an MMI window. The BIT STRING type should be used only when it is absolutely necessary.

The binary string can be of null length or arbitrarily long.

OCTET_STRING4 In ASN.1, an octet string, like a binary string, can be arbitrarily long.

Generally, the OCTET STRING type is used to transmit data that are intrinsically binary (which can be divided into 8-bit packets)

NULL5 It contains a single value, the value NULL (note the ambiguity between the value notation and the type notation), which conveys only one piece of information (when the value gets through, the receiver knows what semantic should be associated with it).
OBJECT_IDENTIFIER6 An object identifier is an identifier used to name an object (compare URN). Structurally, an OID consists of a node in a hierarchically-assigned namespace, formally defined using the ITU-T's ASN.1 standard. Successive numbers of the nodes, starting at the root of the tree, identify each node in the tree. Designers set up new nodes by registering them under the node's registration authority.
ObjectDescriptor7 This string type is derived from the GraphicString and VisibleString types (see below).
EXTERNAL8 Type EXTERNAL takes values that communicate both data and how the data should be interpreted. The type of the data need not be an ASN.1 type. EXTERNAL is used, for example in the Association Control Service Element (ACSE) that is common to all OSI applications, to model a variable whose type is either unspecified or specified elsewhere. There is no restriction on the notation to specify the type.
REAL9 The real numbers are just like the other real numbers in information technology (decimals).

The type REAL in ASN.1 can model arbitrarily long but finite decimals.

ENUMERATED10 The type of enumerations is declared with the keyword ENUMERATED.

For an ENUMERATED type, a number is associated (implicitly or explicitly) with every identifier whereas, for an INTEGER type, an identifier is (explicitly) associated with each integer.

EMBEDDED_PDV11Embedded PDV was created to carry any values, whether or not it is defined in ASN.1. This type has the ability to identify the type and the transfer syntax for the value being carried. ASN.1 has an associated type which must be referenced to create an Embedded PDV type.
UTF8String12 a variable format which encode ASCII characters on one octet (7 bits in fact) accordingly with the IA5 alphabet and the others in a sequence of two to six octets.
RELATIVE_OID13RELATIVE-OID is used when many transmitted object identifiers denote objects registered in the same sub-tree of the registration tree. Otherwise said, all these identifiers relate to a common reference node.
SEQUENCE16 Models an ordered collection of variables of different type.
SET17 Models an unordered collection of variables of different type.
NumericString18 Models data entered from such devices as telephone handsets. Numeric string may contain numeric characters 0-9 and space character (as per X.401).
PrintableString19PrintableString is an acceptable character set for the DirectoryName data type. PrintableString comprises a subset of the ASCII character set, and does not include the at sign (@) or ampersand (&).

The corresponding alphabet consists of spaces, upper-case and lower-case letters, digits and the symbols "'", "(", ")","+", ",", "-", ".", "/", ":", "=" and "?"

TeletexString20 The Teletex was designed as a 'super-telex' service for inter-connecting word-processing machines according to a page-based transmission mode with an alphabet of 308 characters.
VideotexString21 The Videotex system enables the user to visualize on a television screen or any equivalent terminal numerical text or graphical information transmitted on the telephone network (pseudographic).
IA5String22 The 'International Alphabet number 5' (or IA5) is based on 7-bit characters and was jointly published by ISO and ITU-T (1963). It has become the basic character set of most of the communicating systems. It is generally equivalent to the ASCII alphabet (international standard de-facto), but national versions, which can take into account accents or characters specific to some spoken languages may be proposed by national standardization organizations.
UTCTime23 In case the flexibility offered by the various formats of the GeneralizedTime is not necessary, one may use the UTCTime type whose (more restricted) format is the following:
  1. the calendar date with two digits for the year, two for the month and two for the day; and
  2. the hour, minutes and seconds; and
  3. either the capital letter 'Z' (Zulu) to indicate that the time is the UTC or a positive or negative delay with respect to the UTC.
GeneralizedTime24 An extended representation of the Universal Coordinated Time. This format can remove interpretation ambiguities of a notation such as 5/12", which means 5th of December" in France and 12th of May" in Anglo-Saxon countries. A value of type GeneralizedTime is therefore made of:
  • the calendar date with four digits for the year, two for the month and two for an ordinal number standing for the day;
  • the time with an hour, minute or second precision (or even fractions of a second) according to the precision of the communicating application;
  • the indication of a possible time lag (the default is the local hour): if it is followed by the letter 'Z' (Zulu), it denotes the universal time as the coordinate (UTC); otherwise, the hour is followed by a positive or negative time lag expressed in hours and minutes whether it is ahead or behind the UTC.
GraphicString25 A character string that can include spaces and any of the graphical (i.e. visible) character sets (called "G") registered in the 'International Register of Coded Character Sets to be used with Escape Sequences'.
VisibleString26 The ASN.1 character string type VisibleString encompasses all visible characters of the IA5String character set but do not include escape characters, newlines or any combination such as those for obtaining the accents with the backspace, for example.
GeneralString27 GeneralString type is based on all the character sets of the GraphicString type described above and includes all the control character sets (called "C"). Today, its use is not recommended.
UniversalString28 Universal string can contain characters from all the alphabets of all the languages on Earth. Each character is encoded by using 4 bytes.
CHARACTER_STRING29 The CHARACTER STRING type is the concrete application of the EMBEDDED PDV type to the special case of a character string.
BMPString30 It is useless to encode each character on four bytes since the first two bytes are systematically null and all remaining 65,536 cells belong to the first plane (group 0, plane 0) called Basic Multilingual Plane (BMP). This encoding on two bytes is called UCS-2.
TAG_MASK31 TAG_MASK

See Also