Solitary tag

class pyasn1.type.tag.Tag(tagClass, tagFormat, tagId)

Create ASN.1 tag

Represents ASN.1 tag that can be attached to a ASN.1 type to make types distinguishable from each other.

Tag objects are immutable and duck-type Python tuple objects holding three integer components of a tag.

Parameters:
  • tagClass (int) – Tag class value
  • tagFormat (int) – Tag format value
  • tagId (int) – Tag ID value
tagClass

ASN.1 tag class

Returns:py:class:int: – Tag class
tagFormat

ASN.1 tag format

Returns:py:class:int: – Tag format
tagId

ASN.1 tag ID

Returns:py:class:int: – Tag ID