ASN1Tag
public enum ASN1Tag : UInt8
ASN.1 Tag implementation according to the X.690-0207 specification
For more information see the X.690-0207.pdf specification.
-
‘Placeholder’ type for Tagged objects
Declaration
Swift
case implicit = 0x0
-
Tag is boolean
Declaration
Swift
case boolean = 0x1
-
Tag is Integer
Declaration
Swift
case integer = 0x02
-
Tag is bit string
Declaration
Swift
case bitString = 0x03
-
Tag is Octet String (Byte octets as String)
See also
Data.hexValue
Declaration
Swift
case octetString = 0x04
-
Tag is null object
Declaration
Swift
case null = 0x05
-
Tag is Object Identifier
Declaration
Swift
case objectIdentifier = 0x06
-
Tag is External
Warning
unsupportedDeclaration
Swift
case external = 0x08
-
Tag is Enumeration/enumerated
Warning
unsupportedDeclaration
Swift
case enumerated = 0x0a
-
Tag is a Sequence of sub-asn1-objects
Declaration
Swift
case sequence = 0x10
-
Tag is a Set of sub-asn1-objects (Un-ordered sequence)
Declaration
Swift
case set = 0x11
-
Tag is Numeric String (1, 2, 3, 4, 5, 6, 7, 8, 9, 0, and SPACE)
Warning
unsupportedDeclaration
Swift
case numericString = 0x12
-
Tag is a printable string (a-z, A-Z, ‘ () +,-.?:/= and SPACE)
Warning
unsupportedDeclaration
Swift
case printableString = 0x13
-
/ Tag is a T61 String
Warning
unsupportedDeclaration
Swift
case t61String = 0x14
-
Tag is Videotex String (CCITT’s T.100 and T.101 character sets)
Warning
unsupportedDeclaration
Swift
case videotexString = 0x15
-
Tag is a ia5 String (International ASCII characters (International Alphabet 5))
Declaration
Swift
case ia5String = 0x16
-
Tag is UTC Time
Declaration
Swift
case utcTime = 0x17
-
Tag is Generalized Time
Declaration
Swift
case generalizedTime = 0x18
-
Tag is Graphic String (all registered G sets and SPACE)
Warning
unsupportedDeclaration
Swift
case graphicString = 0x19
-
Tag is Visible String (International ASCII printing character sets)
Warning
unsupportedDeclaration
Swift
case visibleString = 0x1a
-
Tag is General String (all registered graphic and character sets plus SPACE and DELETE)
Warning
unsupportedDeclaration
Swift
case generalString = 0x1b
-
Tag is Universal String (ISO10646 character set)
Declaration
Swift
case universalString = 0x1c
-
Tag is BMP String (Basic Multilingual Plane of ISO/IEC/ITU 10646-1)
Declaration
Swift
case bmpString = 0x1e
-
Tag is UTF8 String (any character from a recognized alphabet (including ASCII control characters)
Declaration
Swift
case utf8String = 0x0c
-
Tag is Relative OID
Warning
unsupportedDeclaration
Swift
case relativeOID = 0x0d
-
Tag is TIME
Note
Added in X.680 in 08/2015Warning
unsupportedDeclaration
Swift
case time = 0x0e
-
Undocumented
Declaration
Swift
public static let universal: UInt8
-
Undocumented
Declaration
Swift
public static let constructed: UInt8
-
Undocumented
Declaration
Swift
public static let application: UInt8
-
Undocumented
Declaration
Swift
public static let `private`: UInt8
-
Undocumented
Declaration
Swift
public static let tagged: UInt8