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

    unsupported

    Declaration

    Swift

    case external = 0x08
  • Tag is Enumeration/enumerated

    Warning

    unsupported

    Declaration

    Swift

    case enumerated = 0x0a
  • Tag is a Sequence of sub-asn1-objects

    Declaration

    Swift

    case sequence = 0x10
  • set

    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

    unsupported

    Declaration

    Swift

    case numericString = 0x12
  • Tag is a printable string (a-z, A-Z, ‘ () +,-.?:/= and SPACE)

    Warning

    unsupported

    Declaration

    Swift

    case printableString = 0x13
  • / Tag is a T61 String

    Warning

    unsupported

    Declaration

    Swift

    case t61String = 0x14
  • Tag is Videotex String (CCITT’s T.100 and T.101 character sets)

    Warning

    unsupported

    Declaration

    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

    unsupported

    Declaration

    Swift

    case graphicString = 0x19
  • Tag is Visible String (International ASCII printing character sets)

    Warning

    unsupported

    Declaration

    Swift

    case visibleString = 0x1a
  • Tag is General String (all registered graphic and character sets plus SPACE and DELETE)

    Warning

    unsupported

    Declaration

    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

    unsupported

    Declaration

    Swift

    case relativeOID = 0x0d
  • Tag is TIME

    Note

    Added in X.680 in 08/2015

    Warning

    unsupported

    Declaration

    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