ConstructedAsn1Type type¶
- class pyasn1.type.base.ConstructedAsn1Type(tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), componentType=None)¶
Base class for all constructed classes representing ASN.1 types.
ASN.1 distinguishes types by their ability to hold other objects. Those “nesting” types are known as constructed in ASN.1.
In the user code, ConstructedAsn1Type class is normally used only for telling ASN.1 objects from others.
Note
For as long as ASN.1 is concerned, a way to compare ASN.1 types is to use
isSameTypeWith()
andisSuperTypeOf()
methods.- isSameTypeWith(other, matchTags=True, matchConstraints=True)¶
Examine ConstructedAsn1Type type for equality with other ASN.1 type.
ASN.1 tags (
tag
) and constraints (constraint
) are examined when carrying out ASN.1 types comparison.Python class inheritance relationship is NOT considered.
- isSuperTypeOf(other, matchTags=True, matchConstraints=True)¶
Examine ConstructedAsn1Type type for subtype relationship with other ASN.1 type.
ASN.1 tags (
tag
) and constraints (constraint
) are examined when carrying out ASN.1 types comparison.Python class inheritance relationship is NOT considered.
- tagSet = <TagSet object, untagged>¶
Set or return a
TagSet
object representing ASN.1 tag(s) associated with ConstructedAsn1Type type.
- property effectiveTagSet¶
For ConstructedAsn1Type type is equivalent to tagSet
- subtypeSpec = <ConstraintsIntersection object>¶
Default
ConstraintsIntersection
object imposing constraints on initialization values.