--- /srv/rebuilderd/tmp/rebuilderdznZ7jf/inputs/python-pyasn1-lextudio-doc_1.1.2-2_all.deb
+++ /srv/rebuilderd/tmp/rebuilderdznZ7jf/out/python-pyasn1-lextudio-doc_1.1.2-2_all.deb
├── file list
│ @@ -1,3 +1,3 @@
│ -rw-r--r-- 0 0 0 4 2023-09-15 07:08:20.000000 debian-binary
│ -rw-r--r-- 0 0 0 4956 2023-09-15 07:08:20.000000 control.tar.xz
│ --rw-r--r-- 0 0 0 130584 2023-09-15 07:08:20.000000 data.tar.xz
│ +-rw-r--r-- 0 0 0 130188 2023-09-15 07:08:20.000000 data.tar.xz
├── control.tar.xz
│ ├── control.tar
│ │ ├── ./control
│ │ │ @@ -1,13 +1,13 @@
│ │ │ Package: python-pyasn1-lextudio-doc
│ │ │ Source: python-pyasn1-lextudio
│ │ │ Version: 1.1.2-2
│ │ │ Architecture: all
│ │ │ Maintainer: Debian OpenStack value (either a Python or pyasn1 object (e.g. asn1Spec – Optional ASN.1 schema or value object e.g. defMode ( maxChunkSize ( defMode ( maxChunkSize ( PyAsn1Error – On encoding errors Examples Encode Python value into BER with ASN.1 schema Turns BER octet stream into an ASN.1 object. Takes BER octet-stream and decode it into an ASN.1 object
│ │ │ (e.g. substrate ( substrate ( asn1Spec (any pyasn1 type object e.g. PyAsn1Error, SubstrateUnderrunError – On decoding errors Examples value (either a Python or pyasn1 object (e.g. asn1Spec – Optional ASN.1 schema or value object e.g. PyAsn1Error – On encoding errors Examples Encode Python value into CER with ASN.1 schema Turns CER octet stream into an ASN.1 object. Takes CER octet-stream and decode it into an ASN.1 object
│ │ │ (e.g. substrate ( substrate ( asn1Spec (any pyasn1 type object e.g. PyAsn1Error, SubstrateUnderrunError – On decoding errors Examples value (either a Python or pyasn1 object (e.g. asn1Spec – Optional ASN.1 schema or value object e.g. PyAsn1Error – On encoding errors Examples Encode Python value into DER with ASN.1 schema Turns DER octet stream into an ASN.1 object. Takes DER octet-stream and decode it into an ASN.1 object
│ │ │ (e.g. substrate ( substrate ( asn1Spec (any pyasn1 type object e.g. PyAsn1Error, SubstrateUnderrunError – On decoding errors Examples pyasn1 object to encode (or a tree of them) PyAsn1Error – On encoding errors Examples Encode ASN.1 value object into native Python types Turns Python objects of built-in types into ASN.1 objects. Takes Python objects of built-in types and turns them into a tree of
│ │ │ ASN.1 objects (e.g. pyObject ( pyObject ( asn1Spec (any pyasn1 type object e.g. Unicode text processing error The PyAsn1UnicodeError exception is a base class for errors relating to
│ │ │ unicode text de/serialization. Apart from inheriting from PyAsn1Item derivative)) – A Python or pyasn1 object to encode. If Python object is given, asnSpec
│ │ │ parameter is required to guide the encoding process.
│ │ │
│ │ │ PyAsn1Item derivativebool) – If False, produces indefinite length encodingint) – Maximum chunk size in chunked encoding mode (0 denotes unlimited chunk size)bool) – If False, produces indefinite length encodingint) – Maximum chunk size in chunked encoding mode (0 denotes unlimited chunk size)bytes (Python 3) or str (Python 2) – Given ASN.1 object encoded into BER octetstreambytes (Python 3) or str (Python 2) – Given ASN.1 object encoded into BER octetstreamPyAsn1Item derivative) which
│ │ │ may be a scalar or an arbitrary nested structure.
│ │ │
│ │ │ bytes (Python 3) or str (Python 2)) – BER octet-streambytes (Python 3) or str (Python 2)) – BER octet-streamPyAsn1Item derivative) – A pyasn1 type object to act as a template guiding the decoder. Depending on the ASN.1 structure
│ │ │ being decoded, asn1Spec may or may not be required. Most common reason for
│ │ │ it to require is that ASN.1 structure is encoded in IMPLICIT tagging mode.tuple – A tuple of pyasn1 object recovered from BER substrate (PyAsn1Item derivative)
│ │ │ +tuple – A tuple of pyasn1 object recovered from BER substrate (PyAsn1Item derivative)
│ │ │ and the unprocessed trailing portion of the substrate (may be empty)PyAsn1Item derivative)) – A Python or pyasn1 object to encode. If Python object is given, asnSpec
│ │ │ parameter is required to guide the encoding process.PyAsn1Item derivativebytes (Python 3) or str (Python 2) – Given ASN.1 object encoded into BER octet-streambytes (Python 3) or str (Python 2) – Given ASN.1 object encoded into BER octet-streamPyAsn1Item derivative) which
│ │ │ may be a scalar or an arbitrary nested structure.
│ │ │
│ │ │ bytes (Python 3) or str (Python 2)) – CER octet-streambytes (Python 3) or str (Python 2)) – CER octet-streamPyAsn1Item derivative) – A pyasn1 type object to act as a template guiding the decoder. Depending on the ASN.1 structure
│ │ │ being decoded, asn1Spec may or may not be required. Most common reason for
│ │ │ it to require is that ASN.1 structure is encoded in IMPLICIT tagging mode.tuple – A tuple of pyasn1 object recovered from CER substrate (PyAsn1Item derivative)
│ │ │ +tuple – A tuple of pyasn1 object recovered from CER substrate (PyAsn1Item derivative)
│ │ │ and the unprocessed trailing portion of the substrate (may be empty)PyAsn1Item derivative)) – A Python or pyasn1 object to encode. If Python object is given, asnSpec
│ │ │ parameter is required to guide the encoding process.PyAsn1Item derivativebytes (Python 3) or str (Python 2) – Given ASN.1 object encoded into BER octet-streambytes (Python 3) or str (Python 2) – Given ASN.1 object encoded into BER octet-streamPyAsn1Item derivative) which
│ │ │ may be a scalar or an arbitrary nested structure.
│ │ │
│ │ │ bytes (Python 3) or str (Python 2)) – DER octet-streambytes (Python 3) or str (Python 2)) – DER octet-streamPyAsn1Item derivative) – A pyasn1 type object to act as a template guiding the decoder. Depending on the ASN.1 structure
│ │ │ being decoded, asn1Spec may or may not be required. Most common reason for
│ │ │ it to require is that ASN.1 structure is encoded in IMPLICIT tagging mode.tuple – A tuple of pyasn1 object recovered from DER substrate (PyAsn1Item derivative)
│ │ │ +tuple – A tuple of pyasn1 object recovered from DER substrate (PyAsn1Item derivative)
│ │ │ and the unprocessed trailing portion of the substrate (may be empty)Native Python types¶
│ │ │
│ │ │
│ │ │
│ │ │ object – Python built-in type instance (or a tree of them)object – Python built-in type instance (or a tree of them)PyAsn1Item derivative) which
│ │ │ may be a scalar or an arbitrary nested structure.
│ │ │
object) – A scalar or nested Python objectsobject) – A scalar or nested Python objectsPyAsn1Item derivative) – A pyasn1 type object to act as a template guiding the decoder. It is required
│ │ │ for successful interpretation of Python objects mapping into their ASN.1
│ │ │ representations.PyAsn1Error¶
│ │ │
│ │ │
│ │ │ ValueConstraintError¶
│ │ │
│ │ │ @@ -149,42 +149,42 @@
│ │ │
│ │ │
PyAsn1Error, it also inherits from
│ │ │ -UnicodeError to help the caller catching unicode-related errors.UnicodeError to help the caller catching unicode-related errors.
Unicode text decoding error
│ │ │The PyAsn1UnicodeDecodeError exception represents a failure to │ │ │ deserialize unicode text.
│ │ │Apart from inheriting from PyAsn1UnicodeError, it also inherits
│ │ │ -from UnicodeDecodeError to help the caller catching unicode-related
│ │ │ +from UnicodeDecodeError to help the caller catching unicode-related
│ │ │ errors.
Unicode text encoding error
│ │ │The PyAsn1UnicodeEncodeError exception represents a failure to │ │ │ serialize unicode text.
│ │ │Apart from inheriting from PyAsn1UnicodeError, it also inherits
│ │ │ -from UnicodeEncodeError to help the caller catching
│ │ │ +from UnicodeEncodeError to help the caller catching
│ │ │ unicode-related errors.
Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is Asn1Type type,
│ │ │ -False otherwise.
bool – True if other is Asn1Type type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │ │ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is ConstructedAsn1Type type,
│ │ │ -False otherwise.
bool – True if other is ConstructedAsn1Type type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is a subtype of ConstructedAsn1Type type,
│ │ │ -False otherwise.
bool – True if other is a subtype of ConstructedAsn1Type type,
│ │ │ +False otherwise.
For as long as ASN.1 is concerned, a way to compare ASN.1 types
│ │ │ is to use isSameTypeWith() and isSuperTypeOf() methods.
Indicate that SimpleAsn1Type object represents ASN.1 value.
│ │ │ -If isValue is False then this object represents just
│ │ │ +
If isValue is False then this object represents just
│ │ │ ASN.1 schema.
If isValue is True then, in addition to its ASN.1 schema
│ │ │ +
If isValue is True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).
int, str, dict etc.).
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.
bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
Note
│ │ │There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -161,16 +161,16 @@ │ │ │ out ASN.1 types comparison.
│ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is SimpleAsn1Type type,
│ │ │ -False otherwise.
bool – True if other is SimpleAsn1Type type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is a subtype of SimpleAsn1Type type,
│ │ │ -False otherwise.
bool – True if other is a subtype of SimpleAsn1Type type,
│ │ │ +False otherwise.
Creates BMPString schema or value object.
│ │ │BMPString class is based on SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in octet-stream context, BMPString type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in octet-stream context, BMPString type assumes
│ │ │ “utf-16-be” encoding.
value (unicode, str, bytes or BMPString object) – unicode object (Python 2) or str (Python 3),
│ │ │ -alternatively str (Python 2) or bytes (Python 3)
│ │ │ +
value (unicode, str, bytes or BMPString object) – unicode object (Python 2) or str (Python 3),
│ │ │ +alternatively str (Python 2) or bytes (Python 3)
│ │ │ representing octet-stream of serialised unicode string
│ │ │ (note encoding parameter) or BMPString class instance.
│ │ │ If value is not given, schema object will be created.
tagSet (TagSet) – Object representing non-default ASN.1 tag(s)
subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for BMPString type occurs automatically on object
│ │ │ instantiation.
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when BMPString object is used
│ │ │ +
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when BMPString object is used
│ │ │ in octet-stream context.
ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.
│ │ │Indicate that BMPString object represents ASN.1 value.
│ │ │ -If isValue is False then this object represents just
│ │ │ +
If isValue is False then this object represents just
│ │ │ ASN.1 schema.
If isValue is True then, in addition to its ASN.1 schema
│ │ │ +
If isValue is True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).
int, str, dict etc.).
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.
bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
Note
│ │ │There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -248,16 +248,16 @@ │ │ │ out ASN.1 types comparison.
│ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is BMPString type,
│ │ │ -False otherwise.
bool – True if other is BMPString type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │ │ │ │Creates GeneralString schema or value object.
│ │ │GeneralString class is based on SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in octet-stream context, GeneralString type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in octet-stream context, GeneralString type assumes
│ │ │ “iso-8859-1” encoding.
value (unicode, str, bytes or GeneralString object) – unicode object (Python 2) or str (Python 3),
│ │ │ -alternatively str (Python 2) or bytes (Python 3)
│ │ │ +
value (unicode, str, bytes or GeneralString object) – unicode object (Python 2) or str (Python 3),
│ │ │ +alternatively str (Python 2) or bytes (Python 3)
│ │ │ representing octet-stream of serialised unicode string
│ │ │ (note encoding parameter) or GeneralString class instance.
│ │ │ If value is not given, schema object will be created.
tagSet (TagSet) – Object representing non-default ASN.1 tag(s)
subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for GeneralString type occurs automatically on object
│ │ │ instantiation.
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when GeneralString object is used
│ │ │ +
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when GeneralString object is used
│ │ │ in octet-stream context.
ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.
│ │ │Indicate that GeneralString object represents ASN.1 value.
│ │ │ -If isValue is False then this object represents just
│ │ │ +
If isValue is False then this object represents just
│ │ │ ASN.1 schema.
If isValue is True then, in addition to its ASN.1 schema
│ │ │ +
If isValue is True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).
int, str, dict etc.).
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.
bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
Note
│ │ │There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -249,16 +249,16 @@ │ │ │ out ASN.1 types comparison.
│ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is GeneralString type,
│ │ │ -False otherwise.
bool – True if other is GeneralString type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is a subtype of GeneralString type,
│ │ │ -False otherwise.
bool – True if other is a subtype of GeneralString type,
│ │ │ +False otherwise.
Creates GraphicString schema or value object.
│ │ │GraphicString class is based on SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in octet-stream context, GraphicString type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in octet-stream context, GraphicString type assumes
│ │ │ “iso-8859-1” encoding.
value (unicode, str, bytes or GraphicString object) – unicode object (Python 2) or str (Python 3),
│ │ │ -alternatively str (Python 2) or bytes (Python 3)
│ │ │ +
value (unicode, str, bytes or GraphicString object) – unicode object (Python 2) or str (Python 3),
│ │ │ +alternatively str (Python 2) or bytes (Python 3)
│ │ │ representing octet-stream of serialised unicode string
│ │ │ (note encoding parameter) or GraphicString class instance.
│ │ │ If value is not given, schema object will be created.
tagSet (TagSet) – Object representing non-default ASN.1 tag(s)
subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for GraphicString type occurs automatically on object
│ │ │ instantiation.
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when GraphicString object is used
│ │ │ +
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when GraphicString object is used
│ │ │ in octet-stream context.
ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.
│ │ │Indicate that GraphicString object represents ASN.1 value.
│ │ │ -If isValue is False then this object represents just
│ │ │ +
If isValue is False then this object represents just
│ │ │ ASN.1 schema.
If isValue is True then, in addition to its ASN.1 schema
│ │ │ +
If isValue is True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).
int, str, dict etc.).
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.
bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
Note
│ │ │There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -249,16 +249,16 @@ │ │ │ out ASN.1 types comparison.
│ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is GraphicString type,
│ │ │ -False otherwise.
bool – True if other is GraphicString type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is a subtype of GraphicString type,
│ │ │ -False otherwise.
bool – True if other is a subtype of GraphicString type,
│ │ │ +False otherwise.
Creates IA5String schema or value object.
│ │ │IA5String class is based on SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in octet-stream context, IA5String type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in octet-stream context, IA5String type assumes
│ │ │ “us-ascii” encoding.
value (unicode, str, bytes or IA5String object) – unicode object (Python 2) or str (Python 3),
│ │ │ -alternatively str (Python 2) or bytes (Python 3)
│ │ │ +
value (unicode, str, bytes or IA5String object) – unicode object (Python 2) or str (Python 3),
│ │ │ +alternatively str (Python 2) or bytes (Python 3)
│ │ │ representing octet-stream of serialised unicode string
│ │ │ (note encoding parameter) or IA5String class instance.
│ │ │ If value is not given, schema object will be created.
tagSet (TagSet) – Object representing non-default ASN.1 tag(s)
subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for IA5String type occurs automatically on object
│ │ │ instantiation.
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when IA5String object is used
│ │ │ +
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when IA5String object is used
│ │ │ in octet-stream context.
ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.
│ │ │Indicate that IA5String object represents ASN.1 value.
│ │ │ -If isValue is False then this object represents just
│ │ │ +
If isValue is False then this object represents just
│ │ │ ASN.1 schema.
If isValue is True then, in addition to its ASN.1 schema
│ │ │ +
If isValue is True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).
int, str, dict etc.).
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.
bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
Note
│ │ │There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -248,16 +248,16 @@ │ │ │ out ASN.1 types comparison.
│ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is IA5String type,
│ │ │ -False otherwise.
bool – True if other is IA5String type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │ │ │ │Creates ISO646String schema or value object.
│ │ │ISO646String class is based on SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in octet-stream context, ISO646String type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in octet-stream context, ISO646String type assumes
│ │ │ “us-ascii” encoding.
value (unicode, str, bytes or ISO646String object) – unicode object (Python 2) or str (Python 3),
│ │ │ -alternatively str (Python 2) or bytes (Python 3)
│ │ │ +
value (unicode, str, bytes or ISO646String object) – unicode object (Python 2) or str (Python 3),
│ │ │ +alternatively str (Python 2) or bytes (Python 3)
│ │ │ representing octet-stream of serialised unicode string
│ │ │ (note encoding parameter) or ISO646String class instance.
│ │ │ If value is not given, schema object will be created.
tagSet (TagSet) – Object representing non-default ASN.1 tag(s)
subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for ISO646String type occurs automatically on object
│ │ │ instantiation.
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when ISO646String object is used
│ │ │ +
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when ISO646String object is used
│ │ │ in octet-stream context.
ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.
│ │ │Indicate that ISO646String object represents ASN.1 value.
│ │ │ -If isValue is False then this object represents just
│ │ │ +
If isValue is False then this object represents just
│ │ │ ASN.1 schema.
If isValue is True then, in addition to its ASN.1 schema
│ │ │ +
If isValue is True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).
int, str, dict etc.).
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.
bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
Note
│ │ │There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -240,16 +240,16 @@ │ │ │ out ASN.1 types comparison.
│ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is ISO646String type,
│ │ │ -False otherwise.
bool – True if other is ISO646String type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is a subtype of ISO646String type,
│ │ │ -False otherwise.
bool – True if other is a subtype of ISO646String type,
│ │ │ +False otherwise.
Creates NumericString schema or value object.
│ │ │NumericString class is based on SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in octet-stream context, NumericString type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in octet-stream context, NumericString type assumes
│ │ │ “us-ascii” encoding.
value (unicode, str, bytes or NumericString object) – unicode object (Python 2) or str (Python 3),
│ │ │ -alternatively str (Python 2) or bytes (Python 3)
│ │ │ +
value (unicode, str, bytes or NumericString object) – unicode object (Python 2) or str (Python 3),
│ │ │ +alternatively str (Python 2) or bytes (Python 3)
│ │ │ representing octet-stream of serialised unicode string
│ │ │ (note encoding parameter) or NumericString class instance.
│ │ │ If value is not given, schema object will be created.
tagSet (TagSet) – Object representing non-default ASN.1 tag(s)
subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for NumericString type occurs automatically on object
│ │ │ instantiation.
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when NumericString object is used
│ │ │ +
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when NumericString object is used
│ │ │ in octet-stream context.
ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.
│ │ │Indicate that NumericString object represents ASN.1 value.
│ │ │ -If isValue is False then this object represents just
│ │ │ +
If isValue is False then this object represents just
│ │ │ ASN.1 schema.
If isValue is True then, in addition to its ASN.1 schema
│ │ │ +
If isValue is True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).
int, str, dict etc.).
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.
bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
Note
│ │ │There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -248,16 +248,16 @@ │ │ │ out ASN.1 types comparison.
│ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is NumericString type,
│ │ │ -False otherwise.
bool – True if other is NumericString type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is a subtype of NumericString type,
│ │ │ -False otherwise.
bool – True if other is a subtype of NumericString type,
│ │ │ +False otherwise.
Creates PrintableString schema or value object.
│ │ │PrintableString class is based on SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in octet-stream context, PrintableString type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in octet-stream context, PrintableString type assumes
│ │ │ “us-ascii” encoding.
value (unicode, str, bytes or PrintableString object) – unicode object (Python 2) or str (Python 3),
│ │ │ -alternatively str (Python 2) or bytes (Python 3)
│ │ │ +
value (unicode, str, bytes or PrintableString object) – unicode object (Python 2) or str (Python 3),
│ │ │ +alternatively str (Python 2) or bytes (Python 3)
│ │ │ representing octet-stream of serialised unicode string
│ │ │ (note encoding parameter) or PrintableString class instance.
│ │ │ If value is not given, schema object will be created.
tagSet (TagSet) – Object representing non-default ASN.1 tag(s)
subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for PrintableString type occurs automatically on object
│ │ │ instantiation.
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when PrintableString object is used
│ │ │ +
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when PrintableString object is used
│ │ │ in octet-stream context.
ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.
│ │ │Indicate that PrintableString object represents ASN.1 value.
│ │ │ -If isValue is False then this object represents just
│ │ │ +
If isValue is False then this object represents just
│ │ │ ASN.1 schema.
If isValue is True then, in addition to its ASN.1 schema
│ │ │ +
If isValue is True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).
int, str, dict etc.).
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.
bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
Note
│ │ │There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -249,16 +249,16 @@ │ │ │ out ASN.1 types comparison.
│ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is PrintableString type,
│ │ │ -False otherwise.
bool – True if other is PrintableString type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is a subtype of PrintableString type,
│ │ │ -False otherwise.
bool – True if other is a subtype of PrintableString type,
│ │ │ +False otherwise.
Creates T61String schema or value object.
│ │ │T61String class is based on SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in octet-stream context, T61String type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in octet-stream context, T61String type assumes
│ │ │ “iso-8859-1” encoding.
value (unicode, str, bytes or T61String object) – unicode object (Python 2) or str (Python 3),
│ │ │ -alternatively str (Python 2) or bytes (Python 3)
│ │ │ +
value (unicode, str, bytes or T61String object) – unicode object (Python 2) or str (Python 3),
│ │ │ +alternatively str (Python 2) or bytes (Python 3)
│ │ │ representing octet-stream of serialised unicode string
│ │ │ (note encoding parameter) or T61String class instance.
│ │ │ If value is not given, schema object will be created.
tagSet (TagSet) – Object representing non-default ASN.1 tag(s)
subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for T61String type occurs automatically on object
│ │ │ instantiation.
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when T61String object is used
│ │ │ +
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when T61String object is used
│ │ │ in octet-stream context.
ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.
│ │ │Indicate that T61String object represents ASN.1 value.
│ │ │ -If isValue is False then this object represents just
│ │ │ +
If isValue is False then this object represents just
│ │ │ ASN.1 schema.
If isValue is True then, in addition to its ASN.1 schema
│ │ │ +
If isValue is True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).
int, str, dict etc.).
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.
bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
Note
│ │ │There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -240,16 +240,16 @@ │ │ │ out ASN.1 types comparison.
│ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is T61String type,
│ │ │ -False otherwise.
bool – True if other is T61String type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │ │ │ │Creates TeletexString schema or value object.
│ │ │TeletexString class is based on SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in octet-stream context, TeletexString type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in octet-stream context, TeletexString type assumes
│ │ │ “iso-8859-1” encoding.
value (unicode, str, bytes or TeletexString object) – unicode object (Python 2) or str (Python 3),
│ │ │ -alternatively str (Python 2) or bytes (Python 3)
│ │ │ +
value (unicode, str, bytes or TeletexString object) – unicode object (Python 2) or str (Python 3),
│ │ │ +alternatively str (Python 2) or bytes (Python 3)
│ │ │ representing octet-stream of serialised unicode string
│ │ │ (note encoding parameter) or TeletexString class instance.
│ │ │ If value is not given, schema object will be created.
tagSet (TagSet) – Object representing non-default ASN.1 tag(s)
subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for TeletexString type occurs automatically on object
│ │ │ instantiation.
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when TeletexString object is used
│ │ │ +
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when TeletexString object is used
│ │ │ in octet-stream context.
ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.
│ │ │Indicate that TeletexString object represents ASN.1 value.
│ │ │ -If isValue is False then this object represents just
│ │ │ +
If isValue is False then this object represents just
│ │ │ ASN.1 schema.
If isValue is True then, in addition to its ASN.1 schema
│ │ │ +
If isValue is True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).
int, str, dict etc.).
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.
bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
Note
│ │ │There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -250,16 +250,16 @@ │ │ │ out ASN.1 types comparison.
│ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is TeletexString type,
│ │ │ -False otherwise.
bool – True if other is TeletexString type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is a subtype of TeletexString type,
│ │ │ -False otherwise.
bool – True if other is a subtype of TeletexString type,
│ │ │ +False otherwise.
Creates UniversalString schema or value object.
│ │ │UniversalString class is based on SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in octet-stream context, UniversalString type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in octet-stream context, UniversalString type assumes
│ │ │ “utf-32-be” encoding.
value (unicode, str, bytes or UniversalString object) – unicode object (Python 2) or str (Python 3),
│ │ │ -alternatively str (Python 2) or bytes (Python 3)
│ │ │ +
value (unicode, str, bytes or UniversalString object) – unicode object (Python 2) or str (Python 3),
│ │ │ +alternatively str (Python 2) or bytes (Python 3)
│ │ │ representing octet-stream of serialised unicode string
│ │ │ (note encoding parameter) or UniversalString class instance.
│ │ │ If value is not given, schema object will be created.
tagSet (TagSet) – Object representing non-default ASN.1 tag(s)
subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for UniversalString type occurs automatically on object
│ │ │ instantiation.
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when UniversalString object is used
│ │ │ +
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when UniversalString object is used
│ │ │ in octet-stream context.
ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.
│ │ │Indicate that UniversalString object represents ASN.1 value.
│ │ │ -If isValue is False then this object represents just
│ │ │ +
If isValue is False then this object represents just
│ │ │ ASN.1 schema.
If isValue is True then, in addition to its ASN.1 schema
│ │ │ +
If isValue is True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).
int, str, dict etc.).
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.
bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
Note
│ │ │There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -248,16 +248,16 @@ │ │ │ out ASN.1 types comparison.
│ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is UniversalString type,
│ │ │ -False otherwise.
bool – True if other is UniversalString type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is a subtype of UniversalString type,
│ │ │ -False otherwise.
bool – True if other is a subtype of UniversalString type,
│ │ │ +False otherwise.
Creates UTF8String schema or value object.
│ │ │UTF8String class is based on SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in octet-stream context, UTF8String type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in octet-stream context, UTF8String type assumes
│ │ │ “utf-8” encoding.
value (unicode, str, bytes or UTF8String object) – unicode object (Python 2) or str (Python 3),
│ │ │ -alternatively str (Python 2) or bytes (Python 3)
│ │ │ +
value (unicode, str, bytes or UTF8String object) – unicode object (Python 2) or str (Python 3),
│ │ │ +alternatively str (Python 2) or bytes (Python 3)
│ │ │ representing octet-stream of serialised unicode string
│ │ │ (note encoding parameter) or UTF8String class instance.
│ │ │ If value is not given, schema object will be created.
tagSet (TagSet) – Object representing non-default ASN.1 tag(s)
subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for UTF8String type occurs automatically on object
│ │ │ instantiation.
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when UTF8String object is used
│ │ │ +
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when UTF8String object is used
│ │ │ in octet-stream context.
ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.
│ │ │Indicate that UTF8String object represents ASN.1 value.
│ │ │ -If isValue is False then this object represents just
│ │ │ +
If isValue is False then this object represents just
│ │ │ ASN.1 schema.
If isValue is True then, in addition to its ASN.1 schema
│ │ │ +
If isValue is True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).
int, str, dict etc.).
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.
bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
Note
│ │ │There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -248,16 +248,16 @@ │ │ │ out ASN.1 types comparison.
│ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is UTF8String type,
│ │ │ -False otherwise.
bool – True if other is UTF8String type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │ │ │ │Creates VideotexString schema or value object.
│ │ │VideotexString class is based on SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in octet-stream context, VideotexString type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in octet-stream context, VideotexString type assumes
│ │ │ “iso-8859-1” encoding.
value (unicode, str, bytes or VideotexString object) – unicode object (Python 2) or str (Python 3),
│ │ │ -alternatively str (Python 2) or bytes (Python 3)
│ │ │ +
value (unicode, str, bytes or VideotexString object) – unicode object (Python 2) or str (Python 3),
│ │ │ +alternatively str (Python 2) or bytes (Python 3)
│ │ │ representing octet-stream of serialised unicode string
│ │ │ (note encoding parameter) or VideotexString class instance.
│ │ │ If value is not given, schema object will be created.
tagSet (TagSet) – Object representing non-default ASN.1 tag(s)
subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for VideotexString type occurs automatically on object
│ │ │ instantiation.
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when VideotexString object is used
│ │ │ +
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when VideotexString object is used
│ │ │ in octet-stream context.
ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.
│ │ │Indicate that VideotexString object represents ASN.1 value.
│ │ │ -If isValue is False then this object represents just
│ │ │ +
If isValue is False then this object represents just
│ │ │ ASN.1 schema.
If isValue is True then, in addition to its ASN.1 schema
│ │ │ +
If isValue is True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).
int, str, dict etc.).
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.
bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
Note
│ │ │There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -249,16 +249,16 @@ │ │ │ out ASN.1 types comparison.
│ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is VideotexString type,
│ │ │ -False otherwise.
bool – True if other is VideotexString type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is a subtype of VideotexString type,
│ │ │ -False otherwise.
bool – True if other is a subtype of VideotexString type,
│ │ │ +False otherwise.
Creates VisibleString schema or value object.
│ │ │VisibleString class is based on SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in octet-stream context, VisibleString type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in octet-stream context, VisibleString type assumes
│ │ │ “us-ascii” encoding.
value (unicode, str, bytes or VisibleString object) – unicode object (Python 2) or str (Python 3),
│ │ │ -alternatively str (Python 2) or bytes (Python 3)
│ │ │ +
value (unicode, str, bytes or VisibleString object) – unicode object (Python 2) or str (Python 3),
│ │ │ +alternatively str (Python 2) or bytes (Python 3)
│ │ │ representing octet-stream of serialised unicode string
│ │ │ (note encoding parameter) or VisibleString class instance.
│ │ │ If value is not given, schema object will be created.
tagSet (TagSet) – Object representing non-default ASN.1 tag(s)
subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for VisibleString type occurs automatically on object
│ │ │ instantiation.
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when VisibleString object is used
│ │ │ +
encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when VisibleString object is used
│ │ │ in octet-stream context.
ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.
│ │ │Indicate that VisibleString object represents ASN.1 value.
│ │ │ -If isValue is False then this object represents just
│ │ │ +
If isValue is False then this object represents just
│ │ │ ASN.1 schema.
If isValue is True then, in addition to its ASN.1 schema
│ │ │ +
If isValue is True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).
int, str, dict etc.).
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.
bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
Note
│ │ │There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -249,16 +249,16 @@ │ │ │ out ASN.1 types comparison.
│ │ │Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is VisibleString type,
│ │ │ -False otherwise.
bool – True if other is VisibleString type,
│ │ │ +False otherwise.
Python class inheritance relationship is NOT considered.
│ │ │other (a pyasn1 type object) – Class instance representing ASN.1 type.
│ │ │bool – True if other is a subtype of VisibleString type,
│ │ │ -False otherwise.
bool – True if other is a subtype of VisibleString type,
│ │ │ +False otherwise.
Create a ConstraintsIntersection logic operator object.
│ │ │The ConstraintsIntersection logic operator only succeeds │ │ │ if all its operands succeed.
│ │ │The ConstraintsIntersection object can be applied to │ │ │ any constraint and logic operator objects.
│ │ │The ConstraintsIntersection object duck-types the immutable
│ │ │ -container object like Python tuple.
tuple.
│ │ │ *constraints – Constraint or logic operator objects.
│ │ │Examples
│ │ │class CapitalAndSmall(IA5String):
│ │ │ ├── html2text {}
│ │ │ │ @@ -21,15 +21,15 @@
│ │ │ │ ccllaassss pyasn1.type.constraint.ConstraintsIntersection(**ccoonnssttrraaiinnttss)_¶
│ │ │ │ Create a ConstraintsIntersection logic operator object.
│ │ │ │ The ConstraintsIntersection logic operator only succeeds if aallll its
│ │ │ │ operands succeed.
│ │ │ │ The ConstraintsIntersection object can be applied to any constraint and
│ │ │ │ logic operator objects.
│ │ │ │ The ConstraintsIntersection object duck-types the immutable container
│ │ │ │ - object like Python _t_u_p_l_e.
│ │ │ │ + object like Python tuple.
│ │ │ │ Parameters:
│ │ │ │ **ccoonnssttrraaiinnttss – Constraint or logic operator objects.
│ │ │ │ Examples
│ │ │ │ class CapitalAndSmall(IA5String):
│ │ │ │ '''
│ │ │ │ ASN.1 specification:
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/constraintsunion.html
│ │ │ @@ -117,15 +117,15 @@
│ │ │ class pyasn1.type.constraint.ConstraintsUnion(*constraints)¶
│ │ │ Create a ConstraintsUnion logic operator object.
│ │ │The ConstraintsUnion logic operator succeeds if │ │ │ at least a single operand succeeds.
│ │ │The ConstraintsUnion object can be applied to │ │ │ any constraint and logic operator objects.
│ │ │The ConstraintsUnion object duck-types the immutable
│ │ │ -container object like Python tuple.
tuple.
│ │ │ *constraints – Constraint or logic operator objects.
│ │ │Examples
│ │ │class CapitalOrSmall(IA5String):
│ │ │ ├── html2text {}
│ │ │ │ @@ -21,15 +21,15 @@
│ │ │ │ ccllaassss pyasn1.type.constraint.ConstraintsUnion(**ccoonnssttrraaiinnttss)_¶
│ │ │ │ Create a ConstraintsUnion logic operator object.
│ │ │ │ The ConstraintsUnion logic operator succeeds if aatt lleeaasstt a single operand
│ │ │ │ succeeds.
│ │ │ │ The ConstraintsUnion object can be applied to any constraint and logic
│ │ │ │ operator objects.
│ │ │ │ The ConstraintsUnion object duck-types the immutable container object
│ │ │ │ - like Python _t_u_p_l_e.
│ │ │ │ + like Python tuple.
│ │ │ │ Parameters:
│ │ │ │ **ccoonnssttrraaiinnttss – Constraint or logic operator objects.
│ │ │ │ Examples
│ │ │ │ class CapitalOrSmall(IA5String):
│ │ │ │ '''
│ │ │ │ ASN.1 specification:
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/permittedalphabet.html
│ │ │ @@ -123,15 +123,15 @@
│ │ │ can act as operands for some arithmetic operations e.g. addition
│ │ │ and subtraction.
│ │ │ The PermittedAlphabetConstraint object can only be applied
│ │ │ to the character ASN.1 types such as
│ │ │ IA5String.
│ │ │ *alphabet (str) – Full set of characters permitted by this constraint object.
*alphabet (str) – Full set of characters permitted by this constraint object.
Example
│ │ │class BooleanValue(IA5String):
│ │ │ '''
│ │ │ ASN.1 specification:
│ │ │ ├── html2text {}
│ │ │ │ @@ -25,15 +25,15 @@
│ │ │ │ characters.
│ │ │ │ Objects of this type are iterable (emitting constraint values) and can
│ │ │ │ act as operands for some arithmetic operations e.g. addition and
│ │ │ │ subtraction.
│ │ │ │ The PermittedAlphabetConstraint object can only be applied to the
│ │ │ │ _c_h_a_r_a_c_t_e_r_ _A_S_N_._1_ _t_y_p_e_s such as _I_A_5_S_t_r_i_n_g.
│ │ │ │ Parameters:
│ │ │ │ - **aallpphhaabbeett (_s_t_r) – Full set of characters permitted by this
│ │ │ │ + **aallpphhaabbeett (str) – Full set of characters permitted by this
│ │ │ │ constraint object.
│ │ │ │ Example
│ │ │ │ class BooleanValue(IA5String):
│ │ │ │ '''
│ │ │ │ ASN.1 specification:
│ │ │ │
│ │ │ │ BooleanValue ::= IA5String (FROM ('T' | 'F'))
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/singlevalue.html
│ │ │ @@ -122,15 +122,15 @@
│ │ │ can act as operands for some arithmetic operations e.g. addition
│ │ │ and subtraction. The latter can be used for combining multiple
│ │ │ SingleValueConstraint objects into one.
│ │ │ The SingleValueConstraint object can be applied to
│ │ │ any ASN.1 type.
│ │ │ *values (int) – Full set of values permitted by this constraint object.
*values (int) – Full set of values permitted by this constraint object.
Examples
│ │ │class DivisorOfSix(Integer):
│ │ │ '''
│ │ │ ASN.1 specification:
│ │ │ ├── html2text {}
│ │ │ │ @@ -24,15 +24,15 @@
│ │ │ │ of permitted values.
│ │ │ │ Objects of this type are iterable (emitting constraint values) and can
│ │ │ │ act as operands for some arithmetic operations e.g. addition and
│ │ │ │ subtraction. The latter can be used for combining multiple
│ │ │ │ SingleValueConstraint objects into one.
│ │ │ │ The SingleValueConstraint object can be applied to any ASN.1 type.
│ │ │ │ Parameters:
│ │ │ │ - **vvaalluueess (_i_n_t) – Full set of values permitted by this constraint
│ │ │ │ + **vvaalluueess (int) – Full set of values permitted by this constraint
│ │ │ │ object.
│ │ │ │ Examples
│ │ │ │ class DivisorOfSix(Integer):
│ │ │ │ '''
│ │ │ │ ASN.1 specification:
│ │ │ │
│ │ │ │ Divisor-Of-6 ::= INTEGER (1 | 2 | 3 | 6)
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/valuerange.html
│ │ │ @@ -120,16 +120,16 @@
│ │ │ falls in the range of permitted values.
│ │ │ The ValueRangeConstraint object can only be applied
│ │ │ to Integer and
│ │ │ Real types.
│ │ │ Examples
│ │ │class TeenAgeYears(Integer):
│ │ │ '''
│ │ │ ASN.1 specification:
│ │ │ ├── html2text {}
│ │ │ │ @@ -21,17 +21,17 @@
│ │ │ │ ccllaassss pyasn1.type.constraint.ValueRangeConstraint(ssttaarrtt, eenndd)_¶
│ │ │ │ Create a ValueRangeConstraint object.
│ │ │ │ The ValueRangeConstraint satisfies any value that falls in the range of
│ │ │ │ permitted values.
│ │ │ │ The ValueRangeConstraint object can only be applied to _I_n_t_e_g_e_r and _R_e_a_l
│ │ │ │ types.
│ │ │ │ Parameters:
│ │ │ │ - * ssttaarrtt (_i_n_t) – Minimum permitted value in the range
│ │ │ │ + * ssttaarrtt (int) – Minimum permitted value in the range
│ │ │ │ (inclusive)
│ │ │ │ - * eenndd (_i_n_t) – Maximum permitted value in the range (inclusive)
│ │ │ │ + * eenndd (int) – Maximum permitted value in the range (inclusive)
│ │ │ │ Examples
│ │ │ │ class TeenAgeYears(Integer):
│ │ │ │ '''
│ │ │ │ ASN.1 specification:
│ │ │ │
│ │ │ │ TeenAgeYears ::= INTEGER (13 .. 19)
│ │ │ │ '''
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/valuesize.html
│ │ │ @@ -124,16 +124,16 @@
│ │ │ OctetString (including
│ │ │ all character ASN.1 types),
│ │ │ SequenceOf
│ │ │ and SetOf types.
│ │ │ Examples
│ │ │class BaseballTeamRoster(SetOf):
│ │ │ '''
│ │ │ ASN.1 specification:
│ │ │ ├── html2text {}
│ │ │ │ @@ -21,17 +21,17 @@
│ │ │ │ ccllaassss pyasn1.type.constraint.ValueSizeConstraint(mmiinniimmuumm, mmaaxxiimmuumm)_¶
│ │ │ │ Create a ValueSizeConstraint object.
│ │ │ │ The ValueSizeConstraint satisfies any value for as long as its size falls
│ │ │ │ within the range of permitted sizes.
│ │ │ │ The ValueSizeConstraint object can be applied to _B_i_t_S_t_r_i_n_g, _O_c_t_e_t_S_t_r_i_n_g
│ │ │ │ (including all _c_h_a_r_a_c_t_e_r_ _A_S_N_._1_ _t_y_p_e_s), _S_e_q_u_e_n_c_e_O_f and _S_e_t_O_f types.
│ │ │ │ Parameters:
│ │ │ │ - * mmiinniimmuumm (_i_n_t) – Minimum permitted size of the value
│ │ │ │ + * mmiinniimmuumm (int) – Minimum permitted size of the value
│ │ │ │ (inclusive)
│ │ │ │ - * mmaaxxiimmuumm (_i_n_t) – Maximum permitted size of the value
│ │ │ │ + * mmaaxxiimmuumm (int) – Maximum permitted size of the value
│ │ │ │ (inclusive)
│ │ │ │ Examples
│ │ │ │ class BaseballTeamRoster(SetOf):
│ │ │ │ '''
│ │ │ │ ASN.1 specification:
│ │ │ │
│ │ │ │ BaseballTeamRoster ::= SET SIZE (1..25) OF PlayerNames
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/withcomponents.html
│ │ │ @@ -121,15 +121,15 @@
│ │ │ ComponentPresentConstraint and ComponentAbsentConstraint
│ │ │ objects respectively.
│ │ │ The WithComponentsConstraint object is typically applied
│ │ │ to Set or
│ │ │ Sequence types.
│ │ │ *fields (tuple) – Zero or more tuples of (field, constraint) indicating constrained
│ │ │ +
*fields (tuple) – Zero or more tuples of (field, constraint) indicating constrained
│ │ │ fields.
Notes
│ │ │On top of the primary use of WithComponentsConstraint (ensuring presence
│ │ │ or absence of particular components of a Create named field object for a constructed ASN.1 type. The DefaultedNamedType object represents a single name and ASN.1 type of a constructed ASN.1 type. DefaultedNamedType objects are immutable and duck-type Python DefaultedNamedType objects are immutable and duck-type Python name ( name ( asn1Object – ASN.1 type object Note The DefaultedNamedType class models named field of a constructed
│ │ │ ├── html2text {}
│ │ │ │ @@ -19,18 +19,18 @@
│ │ │ │ [q ][Go]
│ │ │ │ ************ DDeeffaauulltteeddNNaammeeddTTyyppee_?¶ ************
│ │ │ │ ccllaassss pyasn1.type.namedtype.DefaultedNamedType(nnaammee, aassnn11OObbjjeecctt,
│ │ │ │ ooppeennTTyyppee==NNoonnee)_¶
│ │ │ │ Create named field object for a constructed ASN.1 type.
│ │ │ │ The DefaultedNamedType object represents a single name and ASN.1 type of
│ │ │ │ a constructed ASN.1 type.
│ │ │ │ - DefaultedNamedType objects are immutable and duck-type Python _t_u_p_l_e
│ │ │ │ + DefaultedNamedType objects are immutable and duck-type Python tuple
│ │ │ │ objects holding nnaammee and aassnn11OObbjjeecctt components.
│ │ │ │ Parameters:
│ │ │ │ - * nnaammee (_s_t_r) – Field name
│ │ │ │ + * nnaammee (str) – Field name
│ │ │ │ * aassnn11OObbjjeecctt – ASN.1 type object
│ │ │ │ Note
│ │ │ │ The DDeeffaauulltteeddNNaammeeddTTyyppee class models named field of a constructed ASN.1
│ │ │ │ type which has a default value.
│ │ │ │ The DDeeffaauulltteeddNNaammeeddTTyyppee objects are normally utilized by the _N_a_m_e_d_T_y_p_e_s
│ │ │ │ objects to model individual fields of the constructed ASN.1 types.
│ │ │ │ ©2005-2023, Ilya Etingof
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/namedtype.html
│ │ │ @@ -113,20 +113,20 @@
│ │ │ Create named field object for a constructed ASN.1 type. The NamedType object represents a single name and ASN.1 type of a constructed ASN.1 type. NamedType objects are immutable and duck-type Python NamedType objects are immutable and duck-type Python name ( name ( asn1Object – ASN.1 type object Note The NamedType class models a mandatory field of a constructed
│ │ │ ├── html2text {}
│ │ │ │ @@ -18,18 +18,18 @@
│ │ │ │ ******** QQuuiicckk sseeaarrcchh ********
│ │ │ │ [q ][Go]
│ │ │ │ ************ NNaammeeddTTyyppee_?¶ ************
│ │ │ │ ccllaassss pyasn1.type.namedtype.NamedType(nnaammee, aassnn11OObbjjeecctt, ooppeennTTyyppee==NNoonnee)_¶
│ │ │ │ Create named field object for a constructed ASN.1 type.
│ │ │ │ The NamedType object represents a single name and ASN.1 type of a
│ │ │ │ constructed ASN.1 type.
│ │ │ │ - NamedType objects are immutable and duck-type Python _t_u_p_l_e objects
│ │ │ │ + NamedType objects are immutable and duck-type Python tuple objects
│ │ │ │ holding nnaammee and aassnn11OObbjjeecctt components.
│ │ │ │ Parameters:
│ │ │ │ - * nnaammee (_s_t_r) – Field name
│ │ │ │ + * nnaammee (str) – Field name
│ │ │ │ * aassnn11OObbjjeecctt – ASN.1 type object
│ │ │ │ Note
│ │ │ │ The NNaammeeddTTyyppee class models a mandatory field of a constructed ASN.1 type.
│ │ │ │ The NNaammeeddTTyyppee objects are normally utilized by the the _N_a_m_e_d_T_y_p_e_s objects
│ │ │ │ to model individual fields of the constructed ASN.1 types.
│ │ │ │ ©2005-2023, Ilya Etingof
│ │ │ │ gmail.com>.
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/namedtypes.html
│ │ │ @@ -113,15 +113,15 @@
│ │ │ Create a collection of named fields for a constructed ASN.1 type. The NamedTypes object represents a collection of named fields of a constructed ASN.1 type. NamedTypes objects are immutable and duck-type Python NamedTypes objects are immutable and duck-type Python *namedTypes ( Examples Return ASN.1 type object by its position in fields set. idx ( idx ( ASN.1 type PyAsn1Error – If given position is out of fields range Return field position by its ASN.1 type. tagSet ( PyAsn1Error – If tagSet is not present or ASN.1 types are not unique within callee NamedTypes Return field name by its position in fields set. idx ( PyAsn1Error – If given field name is not present in callee NamedTypes Return field position by filed name. name ( name ( PyAsn1Error – If name is not present or not unique within callee NamedTypes Return ASN.1 types that are allowed at or past given field position. Some ASN.1 serialisation allow for skipping optional and defaulted fields.
│ │ │ Some constructed ASN.1 types allow reordering of the fields. When recovering
│ │ │ such objects it may be important to know which types can possibly be
│ │ │ present at any given position in the field sets. idx ( idx ( PyAsn1Error – If given position is out of fields range PyAsn1Error – If tagSet is not present or not unique within callee NamedTypes
│ │ │ or idx is out of fields range Create named field object for a constructed ASN.1 type. The OptionalNamedType object represents a single name and ASN.1 type of a constructed ASN.1 type. OptionalNamedType objects are immutable and duck-type Python OptionalNamedType objects are immutable and duck-type Python name ( name ( asn1Object – ASN.1 type object Note The OptionalNamedType class models an optional field of
│ │ │ ├── html2text {}
│ │ │ │ @@ -19,18 +19,18 @@
│ │ │ │ [q ][Go]
│ │ │ │ ************ OOppttiioonnaallNNaammeeddTTyyppee_?¶ ************
│ │ │ │ ccllaassss pyasn1.type.namedtype.OptionalNamedType(nnaammee, aassnn11OObbjjeecctt,
│ │ │ │ ooppeennTTyyppee==NNoonnee)_¶
│ │ │ │ Create named field object for a constructed ASN.1 type.
│ │ │ │ The OptionalNamedType object represents a single name and ASN.1 type of a
│ │ │ │ constructed ASN.1 type.
│ │ │ │ - OptionalNamedType objects are immutable and duck-type Python _t_u_p_l_e
│ │ │ │ + OptionalNamedType objects are immutable and duck-type Python tuple
│ │ │ │ objects holding nnaammee and aassnn11OObbjjeecctt components.
│ │ │ │ Parameters:
│ │ │ │ - * nnaammee (_s_t_r) – Field name
│ │ │ │ + * nnaammee (str) – Field name
│ │ │ │ * aassnn11OObbjjeecctt – ASN.1 type object
│ │ │ │ Note
│ │ │ │ The OOppttiioonnaallNNaammeeddTTyyppee class models an optional field of a constructed
│ │ │ │ ASN.1 type.
│ │ │ │ The OOppttiioonnaallNNaammeeddTTyyppee objects are normally utilized by the _N_a_m_e_d_T_y_p_e_s
│ │ │ │ objects to model individual fields of the constructed ASN.1 types.
│ │ │ │ ©2005-2023, Ilya Etingof
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedval/namedval.html
│ │ │ @@ -118,29 +118,29 @@
│ │ │ Create named values object. The NamedValues object represents a collection of string names
│ │ │ associated with numeric IDs. These objects are used for giving
│ │ │ names to otherwise numerical values. NamedValues objects are immutable and duck-type Python
│ │ │ - *args (variable number of two-element *args (variable number of two-element Examples Create ASN.1 type map indexed by a value The OpenType object models an untyped field of a constructed ASN.1
│ │ │ type. In ASN.1 syntax it is usually represented by the
│ │ │ ANY DEFINED BY for scalars or SET OF ANY DEFINED BY,
│ │ │ SEQUENCE OF ANY DEFINED BY for container types clauses. Typically
│ │ │ used together with OpenType objects duck-type a read-only Python OpenType objects duck-type a read-only Python The OpenType class models an untyped field of a constructed ASN.1
│ │ │ type. In ASN.1 syntax it is usually represented by the
│ │ │ ANY DEFINED BY for scalars or SET OF ANY DEFINED BY,
│ │ │ SEQUENCE OF ANY DEFINED BY for container types clauses. Typically
│ │ │ used with Examples For untyped scalars: 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 Tag objects are immutable and duck-type Python Note The Tag objects are normally used by the
│ │ │ TagSet, objects to model a collection
│ │ │ @@ -173,37 +173,37 @@
│ │ │ ASN.1 tag class Map TagSet objects to ASN.1 types Create an object mapping TagSet object to ASN.1 type. TagMap objects are immutable and duck-type read-only Python
│ │ │ - presentTypes ( presentTypes ( skipTypes ( skipTypes ( defaultType (ASN.1 type object) – An ASN.1 type object callee TagMap returns for any TagSet key not present
│ │ │ in presentTypes (unless given key is present in skipTypes). Create a collection of ASN.1 tags Represents a combination of TagSet objects are immutable and duck-type Python TagSet objects are immutable and duck-type Python baseTag ( *superTags ( Return ASN.1 tags Create Any schema or value object. Any class is based on value ( value ( tagSet ( subtypeSpec ( encoding ( encoding ( binValue ( binValue ( hexValue ( hexValue ( ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer. Indicate that Any object represents ASN.1 value. If isValue is If isValue is If isValue is If isValue is Note There is an important distinction between PyASN1 schema and value objects.
│ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related
│ │ │ operations (e.g. defining or testing the structure of the data). Most
│ │ │ @@ -285,16 +285,16 @@
│ │ │ out ASN.1 types comparison. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Python class inheritance relationship is NOT considered. Create BitString schema or value object. BitString class is based on value ( value ( tagSet ( subtypeSpec ( namedValues ( binValue ( binValue ( hexValue ( hexValue ( ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer. Create a BitString object initialized from the hex string. value ( value ( Create a BitString object initialized from a string of ‘0’ and ‘1’. value ( value ( Create a BitString object initialized from a string. Indicate that BitString object represents ASN.1 value. If isValue is If isValue is If isValue is If isValue is Note There is an important distinction between PyASN1 schema and value objects.
│ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related
│ │ │ operations (e.g. defining or testing the structure of the data). Most
│ │ │ @@ -340,16 +340,16 @@
│ │ │ out ASN.1 types comparison. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Python class inheritance relationship is NOT considered. Create Boolean schema or value object. Boolean class is based on value ( value ( tagSet ( subtypeSpec ( namedValues ( Indicate that Boolean object represents ASN.1 value. If isValue is If isValue is If isValue is If isValue is Note There is an important distinction between PyASN1 schema and value objects.
│ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related
│ │ │ operations (e.g. defining or testing the structure of the data). Most
│ │ │ @@ -263,16 +263,16 @@
│ │ │ out ASN.1 types comparison. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Python class inheritance relationship is NOT considered. Create Choice schema or value object. Choice class is based on componentType ( tagSet ( subtypeSpec ( Returns Choice type component by index. Equivalent to Python sequence subscription operation (e.g. []). idx ( idx ( default ( default ( instantiate ( instantiate ( Assign Choice type component by position. Equivalent to Python sequence item assignment operation (e.g. []). idx ( idx ( value ( value ( verifyConstraints ( matchConstraints ( verifyConstraints ( matchTags ( matchConstraints ( self Return the name of currently assigned component of the Choice object. Indicate that Choice object represents ASN.1 value. If isValue is If isValue is If isValue is If isValue is Note There is an important distinction between PyASN1 schema and value objects.
│ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related
│ │ │ @@ -401,16 +401,16 @@
│ │ │ out ASN.1 types comparison. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Python class inheritance relationship is NOT considered. Returns Choice type component by name. Equivalent to Python Equivalent to Python name ( name ( default ( default ( instantiate ( instantiate ( Assign Choice type component by name. Equivalent to Python Equivalent to Python name ( name ( value ( value ( verifyConstraints ( matchConstraints ( verifyConstraints ( matchTags ( matchConstraints ( self tagSet ( default ( default ( instantiate ( instantiate ( tagSet ( value ( value ( verifyConstraints ( matchConstraints ( innerFlag ( verifyConstraints ( matchTags ( matchConstraints ( innerFlag ( self Create Enumerated schema or value object. Enumerated class is based on value ( value ( tagSet ( subtypeSpec ( namedValues ( Indicate that Enumerated object represents ASN.1 value. If isValue is If isValue is If isValue is If isValue is Note There is an important distinction between PyASN1 schema and value objects.
│ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related
│ │ │ operations (e.g. defining or testing the structure of the data). Most
│ │ │ @@ -275,16 +275,16 @@
│ │ │ out ASN.1 types comparison. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Python class inheritance relationship is NOT considered. Create Integer schema or value object. Integer class is based on value ( value ( tagSet ( subtypeSpec ( namedValues ( Indicate that Integer object represents ASN.1 value. If isValue is If isValue is If isValue is If isValue is Note There is an important distinction between PyASN1 schema and value objects.
│ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related
│ │ │ operations (e.g. defining or testing the structure of the data). Most
│ │ │ @@ -276,16 +276,16 @@
│ │ │ out ASN.1 types comparison. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Python class inheritance relationship is NOT considered. Create Null schema or value object. Null class is based on value ( value ( tagSet ( ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer. Indicate that Null object represents ASN.1 value. If isValue is If isValue is If isValue is If isValue is Note There is an important distinction between PyASN1 schema and value objects.
│ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related
│ │ │ operations (e.g. defining or testing the structure of the data). Most
│ │ │ @@ -256,16 +256,16 @@
│ │ │ out ASN.1 types comparison. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Python class inheritance relationship is NOT considered. Create ObjectIdentifier schema or value object. ObjectIdentifier class is based on value ( value ( tagSet ( subtypeSpec ( Indicate if this ObjectIdentifier object is a prefix of other ObjectIdentifier object. other (|ASN.1| object) – ObjectIdentifier object Indicate that ObjectIdentifier object represents ASN.1 value. If isValue is If isValue is If isValue is If isValue is Note There is an important distinction between PyASN1 schema and value objects.
│ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related
│ │ │ operations (e.g. defining or testing the structure of the data). Most
│ │ │ @@ -278,16 +278,16 @@
│ │ │ out ASN.1 types comparison. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Create OctetString schema or value object. OctetString class is based on value ( value ( tagSet ( subtypeSpec ( encoding ( encoding ( binValue ( binValue ( hexValue ( hexValue ( ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer. Create a OctetString object initialized from a string of ‘0’ and ‘1’. value ( value ( Create a OctetString object initialized from the hex string. value ( value ( Indicate that OctetString object represents ASN.1 value. If isValue is If isValue is If isValue is If isValue is Note There is an important distinction between PyASN1 schema and value objects.
│ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related
│ │ │ operations (e.g. defining or testing the structure of the data). Most
│ │ │ @@ -296,16 +296,16 @@
│ │ │ out ASN.1 types comparison. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Python class inheritance relationship is NOT considered. Create Real schema or value object. Real class is based on value ( value ( tagSet ( subtypeSpec ( Indicate PLUS-INFINITY object value Indicate MINUS-INFINITY object value Indicate that Real object represents ASN.1 value. If isValue is If isValue is If isValue is If isValue is Note There is an important distinction between PyASN1 schema and value objects.
│ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related
│ │ │ operations (e.g. defining or testing the structure of the data). Most
│ │ │ @@ -288,16 +288,16 @@
│ │ │ out ASN.1 types comparison. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Python class inheritance relationship is NOT considered. Create Sequence schema or value object. Sequence class is based on componentType ( tagSet ( subtypeSpec ( Indicate that Sequence object represents ASN.1 value. If isValue is If isValue is If isValue is If isValue is Note There is an important distinction between PyASN1 schema and value objects.
│ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related
│ │ │ @@ -279,16 +279,16 @@
│ │ │ out ASN.1 types comparison. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Python class inheritance relationship is NOT considered. Returns Sequence type component by index. Equivalent to Python sequence subscription operation (e.g. []). idx ( idx ( default ( default ( instantiate ( instantiate ( Assign Sequence type component by position. Equivalent to Python sequence item assignment operation (e.g. []). idx ( idx ( value ( value ( verifyConstraints ( matchConstraints ( verifyConstraints ( matchTags ( matchConstraints ( self Returns Sequence type component by name. Equivalent to Python Equivalent to Python name ( name ( default ( default ( instantiate ( instantiate ( Assign Sequence type component by name. Equivalent to Python Equivalent to Python name ( name ( value ( value ( verifyConstraints ( matchConstraints ( verifyConstraints ( matchTags ( matchConstraints ( self Remove all components and become an empty Sequence value object. Has the same effect on Sequence object as it does on Has the same effect on Sequence object as it does on Remove all components and become a Sequence schema object. Create SequenceOf schema or value object. SequenceOf class is based on componentType ( tagSet ( subtypeSpec ( Indicate that SequenceOf object represents ASN.1 value. If isValue is If isValue is If isValue is If isValue is Note There is an important distinction between PyASN1 schema and value objects.
│ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related
│ │ │ operations (e.g. defining or testing the structure of the data). Most
│ │ │ @@ -264,16 +264,16 @@
│ │ │ out ASN.1 types comparison. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Python class inheritance relationship is NOT considered. Return SequenceOf type component value by position. Equivalent to Python sequence subscription operation (e.g. []). idx ( idx ( default ( default ( instantiate ( instantiate ( Assign SequenceOf type component by position. Equivalent to Python sequence item assignment operation (e.g. [])
│ │ │ or list.append() (when idx == len(self)). idx ( idx ( value ( value ( verifyConstraints ( matchConstraints ( verifyConstraints ( matchTags ( matchConstraints ( self ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer IndexError – When idx > len(self) IndexError – When idx > len(self) Remove all components and become an empty SequenceOf value object. Has the same effect on SequenceOf object as it does on Has the same effect on SequenceOf object as it does on Remove all components and become a SequenceOf schema object. Create Set schema or value object. Set class is based on componentType ( tagSet ( subtypeSpec ( tagSet ( default ( default ( instantiate ( instantiate ( tagSet ( value ( value ( verifyConstraints ( matchConstraints ( innerFlag ( verifyConstraints ( matchTags ( matchConstraints ( innerFlag ( self Indicate that Set object represents ASN.1 value. If isValue is If isValue is If isValue is If isValue is Note There is an important distinction between PyASN1 schema and value objects.
│ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related
│ │ │ @@ -330,16 +330,16 @@
│ │ │ out ASN.1 types comparison. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Python class inheritance relationship is NOT considered. Returns Set type component by index. Equivalent to Python sequence subscription operation (e.g. []). idx ( idx ( default ( default ( instantiate ( instantiate ( Assign Set type component by position. Equivalent to Python sequence item assignment operation (e.g. []). idx ( idx ( value ( value ( verifyConstraints ( matchConstraints ( verifyConstraints ( matchTags ( matchConstraints ( self Returns Set type component by name. Equivalent to Python Equivalent to Python name ( name ( default ( default ( instantiate ( instantiate ( Assign Set type component by name. Equivalent to Python Equivalent to Python name ( name ( value ( value ( verifyConstraints ( matchConstraints ( verifyConstraints ( matchTags ( matchConstraints ( self Remove all components and become an empty Set value object. Has the same effect on Set object as it does on Has the same effect on Set object as it does on Remove all components and become a Set schema object. Create SetOf schema or value object. SetOf class is based on componentType ( tagSet ( subtypeSpec ( Indicate that SetOf object represents ASN.1 value. If isValue is If isValue is If isValue is If isValue is Note There is an important distinction between PyASN1 schema and value objects.
│ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related
│ │ │ operations (e.g. defining or testing the structure of the data). Most
│ │ │ @@ -264,16 +264,16 @@
│ │ │ out ASN.1 types comparison. Python class inheritance relationship is NOT considered. other (a pyasn1 type object) – Class instance representing ASN.1 type. Python class inheritance relationship is NOT considered. Return SetOf type component value by position. Equivalent to Python sequence subscription operation (e.g. []). idx ( idx ( default ( default ( instantiate ( instantiate ( Assign SetOf type component by position. Equivalent to Python sequence item assignment operation (e.g. [])
│ │ │ or list.append() (when idx == len(self)). idx ( idx ( value ( value ( verifyConstraints ( matchConstraints ( verifyConstraints ( matchTags ( matchConstraints ( self ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer IndexError – When idx > len(self) IndexError – When idx > len(self) Remove all components and become an empty SetOf value object. Has the same effect on SetOf object as it does on Has the same effect on SetOf object as it does on Remove all components and become a SetOf schema object. Creates GeneralizedTime schema or value object. GeneralizedTime class is based on value (Set or
│ │ │ Sequence), it is also possible to pass any other
│ │ │ ├── html2text {}
│ │ │ │ @@ -23,15 +23,15 @@
│ │ │ │ TheWithComponentsConstraintsatisfies any mapping object that has
│ │ │ │ constrained fields present or absent, what is indicated
│ │ │ │ byComponentPresentConstraintandComponentAbsentConstraintobjects
│ │ │ │ respectively.
│ │ │ │ TheWithComponentsConstraintobject is typically applied to _S_e_t or _S_e_q_u_e_n_c_e
│ │ │ │ types.
│ │ │ │ Parameters:
│ │ │ │ - **ffiieellddss (_t_u_p_l_e) – Zero or more tuples of (field,constraint)
│ │ │ │ + **ffiieellddss (tuple) – Zero or more tuples of (field,constraint)
│ │ │ │ indicating constrained fields.
│ │ │ │ Notes
│ │ │ │ On top of the primary use ofWithComponentsConstraint(ensuring presence or
│ │ │ │ absence of particular components of a _S_e_t or _S_e_q_u_e_n_c_e), it is also
│ │ │ │ possible to pass any other constraint objects or their combinations. In
│ │ │ │ case of scalar fields, these constraints will be verified in addition to
│ │ │ │ the constraints belonging to scalar components themselves. However,
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/defaultednamedtype.html
│ │ │ @@ -113,20 +113,20 @@
│ │ │ DefaultedNamedType¶
│ │ │
│ │ │
tuple objects
│ │ │ +tuple objects
│ │ │ holding name and asn1Object components.
│ │ │
│ │ │
│ │ │ -
│ │ │ str) – Field namestr) – Field nameNamedType¶
│ │ │
│ │ │
tuple objects
│ │ │ +tuple objects
│ │ │ holding name and asn1Object components.
│ │ │
│ │ │
│ │ │ -
│ │ │ str) – Field namestr) – Field nameNamedTypes¶
│ │ │
│ │ │
dict objects
│ │ │ +dict objects
│ │ │ holding name as keys and ASN.1 type object as values.
│ │ │
│ │ │ NamedType)
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ @@ -192,32 +192,32 @@
│ │ │ getNameByPosition(idx)¶
│ │ │ int) – Field indexint) – Field index
│ │ │
│ │ │ TagSet) – ASN.1 tag set distinguishing one ASN.1 type from others.int – ASN.1 type position in fields setint – ASN.1 type position in fields set
│ │ │
│ │ │ idx) – Field indexstr – Field namestr – Field name
│ │ │
│ │ │
│ │ │ @@ -227,15 +227,15 @@
│ │ │
│ │ │
│ │ │ str) – Field namestr) – Field nameint – Field position in fields setint – Field position in fields set
│ │ │
int) – Field indexint) – Field indexTagMap – Map if ASN.1 types allowed at given field position
│ │ │
│ │ │
│ │ │ ├── html2text {}
│ │ │ │ @@ -18,15 +18,15 @@
│ │ │ │ ******** QQuuiicckk sseeaarrcchh ********
│ │ │ │ [q ][Go]
│ │ │ │ ************ NNaammeeddTTyyppeess_?¶ ************
│ │ │ │ ccllaassss pyasn1.type.namedtype.NamedTypes(**nnaammeeddTTyyppeess, ****kkwwaarrggss)_¶
│ │ │ │ Create a collection of named fields for a constructed ASN.1 type.
│ │ │ │ The NamedTypes object represents a collection of named fields of a
│ │ │ │ constructed ASN.1 type.
│ │ │ │ - NNaammeeddTTyyppeess objects are immutable and duck-type Python _d_i_c_t objects
│ │ │ │ + NNaammeeddTTyyppeess objects are immutable and duck-type Python dict objects
│ │ │ │ holding nnaammee as keys and ASN.1 type object as values.
│ │ │ │ Parameters:
│ │ │ │ **nnaammeeddTTyyppeess (_N_a_m_e_d_T_y_p_e)
│ │ │ │ Examples
│ │ │ │ class Description(Sequence):
│ │ │ │ '''
│ │ │ │ ASN.1 specification:
│ │ │ │ @@ -49,57 +49,57 @@
│ │ │ │ Note
│ │ │ │ The NNaammeeddTTyyppeess objects are normally utilized by the constructed ASN.1
│ │ │ │ types (e.g. _S_e_q_u_e_n_c_e, _S_e_t and _C_h_o_i_c_e) to model the set of fields of those
│ │ │ │ types.
│ │ │ │ getTypeByPosition(iiddxx)_¶
│ │ │ │ Return ASN.1 type object by its position in fields set.
│ │ │ │ Parameters:
│ │ │ │ - iiddxx (_i_n_t) – Field index
│ │ │ │ + iiddxx (int) – Field index
│ │ │ │ Returns:
│ │ │ │ ASN.1 type
│ │ │ │ Raises:
│ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – If given position is out of fields range
│ │ │ │ getPositionByType(ttaaggSSeett)_¶
│ │ │ │ Return field position by its ASN.1 type.
│ │ │ │ Parameters:
│ │ │ │ ttaaggSSeett (TagSet) – ASN.1 tag set distinguishing one ASN.1 type
│ │ │ │ from others.
│ │ │ │ Returns:
│ │ │ │ - _i_n_t – ASN.1 type position in fields set
│ │ │ │ + int – ASN.1 type position in fields set
│ │ │ │ Raises:
│ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – If ttaaggSSeett is not present or ASN.1 types are not
│ │ │ │ unique within callee NNaammeeddTTyyppeess
│ │ │ │ getNameByPosition(iiddxx)_¶
│ │ │ │ Return field name by its position in fields set.
│ │ │ │ Parameters:
│ │ │ │ iiddxx (idx) – Field index
│ │ │ │ Returns:
│ │ │ │ - _s_t_r – Field name
│ │ │ │ + str – Field name
│ │ │ │ Raises:
│ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – If given field name is not present in callee
│ │ │ │ NNaammeeddTTyyppeess
│ │ │ │ getPositionByName(nnaammee)_¶
│ │ │ │ Return field position by filed name.
│ │ │ │ Parameters:
│ │ │ │ - nnaammee (_s_t_r) – Field name
│ │ │ │ + nnaammee (str) – Field name
│ │ │ │ Returns:
│ │ │ │ - _i_n_t – Field position in fields set
│ │ │ │ + int – Field position in fields set
│ │ │ │ Raises:
│ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – If nnaammee is not present or not unique within
│ │ │ │ callee NNaammeeddTTyyppeess
│ │ │ │ getTagMapNearPosition(iiddxx)_¶
│ │ │ │ Return ASN.1 types that are allowed at or past given field
│ │ │ │ position.
│ │ │ │ Some ASN.1 serialisation allow for skipping optional and defaulted
│ │ │ │ fields. Some constructed ASN.1 types allow reordering of the
│ │ │ │ fields. When recovering such objects it may be important to know
│ │ │ │ which types can possibly be present at any given position in the
│ │ │ │ field sets.
│ │ │ │ Parameters:
│ │ │ │ - iiddxx (_i_n_t) – Field index
│ │ │ │ + iiddxx (int) – Field index
│ │ │ │ Returns:
│ │ │ │ _T_a_g_M_a_p – Map if ASN.1 types allowed at given field position
│ │ │ │ Raises:
│ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – If given position is out of fields range
│ │ │ │ getPositionNearType(ttaaggSSeett, iiddxx)_¶
│ │ │ │ Return the closest field position where given ASN.1 type is
│ │ │ │ allowed.
│ │ │ │ @@ -107,18 +107,18 @@
│ │ │ │ fields. Some constructed ASN.1 types allow reordering of the
│ │ │ │ fields. When recovering such objects it may be important to know at
│ │ │ │ which field position, in field set, given ttaaggSSeett is allowed at or
│ │ │ │ past iiddxx position.
│ │ │ │ Parameters:
│ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – ASN.1 type which field position to
│ │ │ │ look up
│ │ │ │ - * iiddxx (_i_n_t) – Field position at or past which to perform
│ │ │ │ + * iiddxx (int) – Field position at or past which to perform
│ │ │ │ ASN.1 type look up
│ │ │ │ Returns:
│ │ │ │ - _i_n_t – Field position in fields set
│ │ │ │ + int – Field position in fields set
│ │ │ │ Raises:
│ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – If ttaaggSSeett is not present or not unique within
│ │ │ │ callee NNaammeeddTTyyppeess or iiddxx is out of fields range
│ │ │ │ pprrooppeerrttyy minTagSet_¶
│ │ │ │ Return the minimal TagSet among ASN.1 type in callee NNaammeeddTTyyppeess.
│ │ │ │ Some ASN.1 types/serialisation protocols require ASN.1 types to be
│ │ │ │ arranged based on their numerical tag value. The mmiinnTTaaggSSeett property
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/optionalnamedtype.html
│ │ │ @@ -113,20 +113,20 @@
│ │ │ int – Field position in fields setint – Field position in fields setOptionalNamedType¶
│ │ │
│ │ │
tuple objects
│ │ │ +tuple objects
│ │ │ holding name and asn1Object components.
│ │ │
│ │ │
│ │ │ -
│ │ │ str) – Field namestr) – Field namedict object mapping ID to name and vice-versa.dict object mapping ID to name and vice-versa.
│ │ │
│ │ │
│ │ │ tuple) –tuple) –>>> nv = NamedValues('a', 'b', ('c', 0), d=1)
│ │ │ >>> nv
│ │ │ >>> {'c': 0, 'd': 1, 'a': 2, 'b': 3}
│ │ │ ├── html2text {}
│ │ │ │ @@ -21,25 +21,25 @@
│ │ │ │ The NamedValues class associates human-friendly names to a set of numbers or
│ │ │ │ bits.
│ │ │ │ ccllaassss pyasn1.type.namedval.NamedValues(**aarrggss, ****kkwwaarrggss)_¶
│ │ │ │ Create named values object.
│ │ │ │ The NamedValues object represents a collection of string names associated
│ │ │ │ with numeric IDs. These objects are used for giving names to otherwise
│ │ │ │ numerical values.
│ │ │ │ - NamedValues objects are immutable and duck-type Python _d_i_c_t object
│ │ │ │ + NamedValues objects are immutable and duck-type Python dict object
│ │ │ │ mapping ID to name and vice-versa.
│ │ │ │ Parameters:
│ │ │ │ - **aarrggss (variable number of two-element _t_u_p_l_e) –
│ │ │ │ - name: _s_t_r
│ │ │ │ + **aarrggss (variable number of two-element tuple) –
│ │ │ │ + name: str
│ │ │ │ Value label
│ │ │ │ - value: _i_n_t
│ │ │ │ + value: int
│ │ │ │ Numeric value
│ │ │ │ Keyword Arguments:
│ │ │ │ - * nnaammee (_s_t_r) – Value label
│ │ │ │ - * vvaalluuee (_i_n_t) – Numeric value
│ │ │ │ + * nnaammee (str) – Value label
│ │ │ │ + * vvaalluuee (int) – Numeric value
│ │ │ │ Examples
│ │ │ │ >>> nv = NamedValues('a', 'b', ('c', 0), d=1)
│ │ │ │ >>> nv
│ │ │ │ >>> {'c': 0, 'd': 1, 'a': 2, 'b': 3}
│ │ │ │ >>> nv[0]
│ │ │ │ 'c'
│ │ │ │ >>> nv['a']
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/opentype/opentype.html
│ │ │ @@ -117,28 +117,28 @@
│ │ │ class pyasn1.type.opentype.OpenType(name, typeMap=None)¶
│ │ │
Any object.dict objects,
│ │ │ +dict objects,
│ │ │ however the passed typeMap is not copied, but stored by reference.
│ │ │ That means the user can manipulate typeMap at run time having this
│ │ │ reflected on OpenType object behavior.Any type.
│ │ │
│ │ │ openType = OpenType(
│ │ │ ├── html2text {}
│ │ │ │ @@ -20,25 +20,25 @@
│ │ │ │ ************ OOppeennTTyyppee_?¶ ************
│ │ │ │ ccllaassss pyasn1.type.opentype.OpenType(nnaammee, ttyyppeeMMaapp==NNoonnee)_¶
│ │ │ │ Create ASN.1 type map indexed by a value
│ │ │ │ The OOppeennTTyyppee object models an untyped field of a constructed ASN.1 type.
│ │ │ │ In ASN.1 syntax it is usually represented by theANY DEFINED BYfor scalars
│ │ │ │ orSET OF ANY DEFINED BY,SEQUENCE OF ANY DEFINED BYfor container types
│ │ │ │ clauses. Typically used together with _A_n_y object.
│ │ │ │ - OpenType objects duck-type a read-only Python _d_i_c_t objects, however the
│ │ │ │ + OpenType objects duck-type a read-only Python dict objects, however the
│ │ │ │ passedtypeMapis not copied, but stored by reference. That means the user
│ │ │ │ can manipulatetypeMapat run time having this reflected on OOppeennTTyyppee object
│ │ │ │ behavior.
│ │ │ │ The OpenType class models an untyped field of a constructed ASN.1 type.
│ │ │ │ In ASN.1 syntax it is usually represented by theANY DEFINED BYfor scalars
│ │ │ │ orSET OF ANY DEFINED BY,SEQUENCE OF ANY DEFINED BYfor container types
│ │ │ │ clauses. Typically used with _A_n_y type.
│ │ │ │ Parameters:
│ │ │ │ - * nnaammee (_s_t_r) – Field name
│ │ │ │ - * ttyyppeeMMaapp (_d_i_c_t) – A map of value->ASN.1 type. It’s stored by
│ │ │ │ + * nnaammee (str) – Field name
│ │ │ │ + * ttyyppeeMMaapp (dict) – A map of value->ASN.1 type. It’s stored by
│ │ │ │ reference and can be mutated later to register new mappings.
│ │ │ │ Examples
│ │ │ │ For untyped scalars:
│ │ │ │ openType = OpenType(
│ │ │ │ 'id', {1: Integer(),
│ │ │ │ 2: OctetString()}
│ │ │ │ )
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/tag/tag.html
│ │ │ @@ -150,22 +150,22 @@
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ ├── html2text {}
│ │ │ │ @@ -31,30 +31,30 @@
│ │ │ │ pyasn1.type.tag.tagFormatConstructed == 3322_¶
│ │ │ │ Identifier for “constructed” ASN.1 structure (e.g. may have inner
│ │ │ │ components)
│ │ │ │ ccllaassss pyasn1.type.tag.Tag(ttaaggCCllaassss, ttaaggFFoorrmmaatt, ttaaggIIdd)_¶
│ │ │ │ Create ASN.1 tag
│ │ │ │ Represents ASN.1 tag that can be attached to a ASN.1 type to make types
│ │ │ │ distinguishable from each other.
│ │ │ │ - TTaagg objects are immutable and duck-type Python _t_u_p_l_e objects holding
│ │ │ │ + TTaagg objects are immutable and duck-type Python tuple objects holding
│ │ │ │ three integer components of a tag.
│ │ │ │ Parameters:
│ │ │ │ - * ttaaggCCllaassss (_i_n_t) – Tag ccllaassss value
│ │ │ │ - * ttaaggFFoorrmmaatt (_i_n_t) – Tag ffoorrmmaatt value
│ │ │ │ - * ttaaggIIdd (_i_n_t) – Tag ID value
│ │ │ │ + * ttaaggCCllaassss (int) – Tag ccllaassss value
│ │ │ │ + * ttaaggFFoorrmmaatt (int) – Tag ffoorrmmaatt value
│ │ │ │ + * ttaaggIIdd (int) – Tag ID value
│ │ │ │ Note
│ │ │ │ The TTaagg objects are normally used by the _T_a_g_S_e_t, objects to model a
│ │ │ │ collection of ASN.1 tags.
│ │ │ │ pprrooppeerrttyy tagClass_¶
│ │ │ │ ASN.1 tag class
│ │ │ │ Returns:
│ │ │ │ - _i_n_t – Tag class
│ │ │ │ + int – Tag class
│ │ │ │ pprrooppeerrttyy tagFormat_¶
│ │ │ │ ASN.1 tag format
│ │ │ │ Returns:
│ │ │ │ - _i_n_t – Tag format
│ │ │ │ + int – Tag format
│ │ │ │ pprrooppeerrttyy tagId_¶
│ │ │ │ ASN.1 tag ID
│ │ │ │ Returns:
│ │ │ │ - _i_n_t – Tag ID
│ │ │ │ + int – Tag ID
│ │ │ │ ©2005-2023, Ilya Etingof
│ │ │ │ gmail.com>.
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/tag/tagmap.html
│ │ │ @@ -114,22 +114,22 @@
│ │ │ tuple objects
│ │ │ +tuple objects
│ │ │ holding three integer components of a tag.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ int – Tag classint – Tag classTag->type map¶
│ │ │
│ │ │
dict objects holding TagSet objects as keys and ASN.1
│ │ │ +dict objects holding TagSet objects as keys and ASN.1
│ │ │ type objects as values.
│ │ │
│ │ │
│ │ │ -
│ │ │ dict) – Map of TagSet to ASN.1 objects considered
│ │ │ +dict) – Map of TagSet to ASN.1 objects considered
│ │ │ as being unconditionally present in the TagMap.dict) – A collection of TagSet objects considered
│ │ │ +dict) – A collection of TagSet objects considered
│ │ │ as absent in the TagMap even when defaultType is present.
│ │ │
│ │ │
│ │ │
│ │ │ ├── html2text {}
│ │ │ │ @@ -18,15 +18,15 @@
│ │ │ │ ******** QQuuiicckk sseeaarrcchh ********
│ │ │ │ [q ][Go]
│ │ │ │ ************ TTaagg sseett_?¶ ************
│ │ │ │ ccllaassss pyasn1.type.tag.TagSet(bbaasseeTTaagg==(()), **ssuuppeerrTTaaggss)_¶
│ │ │ │ Create a collection of ASN.1 tags
│ │ │ │ Represents a combination of _T_a_g objects that can be attached to a ASN.1
│ │ │ │ type to make types distinguishable from each other.
│ │ │ │ - TTaaggSSeett objects are immutable and duck-type Python _t_u_p_l_e objects holding
│ │ │ │ + TTaaggSSeett objects are immutable and duck-type Python tuple objects holding
│ │ │ │ arbitrary number of _T_a_g objects.
│ │ │ │ Parameters:
│ │ │ │ * bbaasseeTTaagg (_T_a_g) – Base TTaagg object. This tag survives IMPLICIT
│ │ │ │ tagging.
│ │ │ │ * **ssuuppeerrTTaaggss (_T_a_g) – Additional TTaagg objects taking part in
│ │ │ │ subtyping.
│ │ │ │ Examples
│ │ │ │ @@ -48,15 +48,15 @@
│ │ │ │ pprrooppeerrttyy baseTag_¶
│ │ │ │ Return base ASN.1 tag
│ │ │ │ Returns:
│ │ │ │ _T_a_g – Base tag of this TTaaggSSeett
│ │ │ │ pprrooppeerrttyy superTags_¶
│ │ │ │ Return ASN.1 tags
│ │ │ │ Returns:
│ │ │ │ - _t_u_p_l_e – Tuple of _T_a_g objects that this TTaaggSSeett contains
│ │ │ │ + tuple – Tuple of _T_a_g objects that this TTaaggSSeett contains
│ │ │ │ tagExplicitly(ssuuppeerrTTaagg)_¶
│ │ │ │ Return explicitly tagged TTaaggSSeett
│ │ │ │ Create a new TTaaggSSeett representing callee TTaaggSSeett explicitly tagged
│ │ │ │ with passed tag(s). With explicit tagging mode, new tags are
│ │ │ │ appended to existing tag(s).
│ │ │ │ Parameters:
│ │ │ │ ssuuppeerrTTaagg (_T_a_g) – TTaagg object to tag this TTaaggSSeett
│ │ │ │ @@ -76,10 +76,10 @@
│ │ │ │ The callee is considered to be a supertype of given TTaaggSSeett tag-wise
│ │ │ │ if all tags in TTaaggSSeett are present in the callee and they are in the
│ │ │ │ same order.
│ │ │ │ Parameters:
│ │ │ │ ttaaggSSeett (_T_a_g_S_e_t) – TTaaggSSeett object to evaluate against the
│ │ │ │ callee
│ │ │ │ Returns:
│ │ │ │ - _b_o_o_l – _T_r_u_e if callee is a supertype of ttaaggSSeett
│ │ │ │ + bool – True if callee is a supertype of ttaaggSSeett
│ │ │ │ ©2005-2023, Ilya Etingof
│ │ │ │ gmail.com>.
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/any.html
│ │ │ @@ -113,35 +113,35 @@
│ │ │ Tag objects
│ │ │ that can be attached to a ASN.1 type to make types distinguishable
│ │ │ from each other.tuple objects
│ │ │ +tuple objects
│ │ │ holding arbitrary number of Tag objects.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ @@ -163,15 +163,15 @@
│ │ │
│ │ │ Tag) – Base Tag object. This tag survives IMPLICIT tagging.Tag) – Additional Tag objects taking part in subtyping.
│ │ │
│ │ │
│ │ │
│ │ │
Any type¶
│ │ │
│ │ │
│ │ │
│ │ │ SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in Unicode context, Any type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in Unicode context, Any type assumes
│ │ │ “iso-8859-1” serialisation.
│ │ │
│ │ │ @@ -249,23 +249,23 @@
│ │ │ imposing constraints on Any type initialization values.
│ │ │
│ │ │ -
│ │ │ unicode, str, bytes or Any object) – str (Python 2) or bytes (Python 3), alternatively
│ │ │ -unicode object (Python 2) or str (Python 3)
│ │ │ +unicode, str, bytes or Any object) – str (Python 2) or bytes (Python 3), alternatively
│ │ │ +unicode object (Python 2) or str (Python 3)
│ │ │ representing character string to be serialised into octets (note
│ │ │ encoding parameter) or Any object.
│ │ │ If value is not given, schema object will be created.TagSet) – Object representing non-default ASN.1 tag(s)ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for Any type occurs automatically on object
│ │ │ instantiation.str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when Any object is used
│ │ │ +str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when Any object is used
│ │ │ in text string context.str) – Binary string initializer to use instead of the value.
│ │ │ +str) – Binary string initializer to use instead of the value.
│ │ │ Example: ‘10110011’.str) – Hexadecimal string initializer to use instead of the value.
│ │ │ +str) – Hexadecimal string initializer to use instead of the value.
│ │ │ Example: ‘DEADBEEF’.
│ │ │
False then this object represents just
│ │ │ +False then this object represents just
│ │ │ ASN.1 schema.True then, in addition to its ASN.1 schema
│ │ │ +True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).int, str, dict etc.).
│ │ │
│ │ │
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is Any type,
│ │ │ -False otherwise.bool – True if other is Any type,
│ │ │ +False otherwise.
│ │ │
│ │ │
│ │ │
│ │ │
BitString type¶
│ │ │
│ │ │
SimpleAsn1Type, its
│ │ │ -objects are immutable and duck-type both Python tuple (as a tuple
│ │ │ -of bits) and int objects.tuple (as a tuple
│ │ │ +of bits) and int objects.
│ │ │
│ │ │
│ │ │ @@ -273,54 +273,54 @@
│ │ │
│ │ │
│ │ │ -
│ │ │ int, str or BitString object) – Python int or str literal representing binary
│ │ │ +int, str or BitString object) – Python int or str literal representing binary
│ │ │ or hexadecimal number or sequence of integer bits or BitString object.
│ │ │ If value is not given, schema object will be created.TagSet) – Object representing non-default ASN.1 tag(s)ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for BitString type occurs automatically on object
│ │ │ instantiation.NamedValues) – Object representing non-default symbolic aliases for numbersstr) – Binary string initializer to use instead of the value.
│ │ │ +str) – Binary string initializer to use instead of the value.
│ │ │ Example: ‘10110011’.str) – Hexadecimal string initializer to use instead of the value.
│ │ │ +str) – Hexadecimal string initializer to use instead of the value.
│ │ │ Example: ‘DEADBEEF’.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ str) – Text string like ‘DEADBEEF’str) – Text string like ‘DEADBEEF’
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ str) – Text string like ‘1010111’str) – Text string like ‘1010111’
│ │ │
│ │ │
│ │ │
│ │ │
False then this object represents just
│ │ │ +False then this object represents just
│ │ │ ASN.1 schema.True then, in addition to its ASN.1 schema
│ │ │ +True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).int, str, dict etc.).
│ │ │
│ │ │
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is BitString type,
│ │ │ -False otherwise.bool – True if other is BitString type,
│ │ │ +False otherwise.
│ │ │
│ │ │
│ │ │
│ │ │
Boolean type¶
│ │ │
│ │ │
SimpleAsn1Type, its
│ │ │ -objects are immutable and duck-type Python int objects.int objects.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ -
│ │ │ @@ -227,23 +227,23 @@
│ │ │ imposing constraints on Boolean type initialization values.
│ │ │ int, str or Boolean object) – Python int or str literal or Boolean class
│ │ │ +int, str or Boolean object) – Python int or str literal or Boolean class
│ │ │ instance. If value is not given, schema object will be created.TagSet) – Object representing non-default ASN.1 tag(s)ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s).Constraints
│ │ │ verification for Boolean type occurs automatically on object
│ │ │ instantiation.NamedValues) – Object representing non-default symbolic aliases for numbers
│ │ │
False then this object represents just
│ │ │ +False then this object represents just
│ │ │ ASN.1 schema.True then, in addition to its ASN.1 schema
│ │ │ +True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).int, str, dict etc.).
│ │ │
│ │ │
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is Boolean type,
│ │ │ -False otherwise.bool – True if other is Boolean type,
│ │ │ +False otherwise.
│ │ │
│ │ │
│ │ │
│ │ │
Choice type¶
│ │ │
│ │ │
ConstructedAsn1Type,
│ │ │ -its objects are mutable and duck-type Python list objects.list objects.
│ │ │
│ │ │
│ │ │
NamedType) – Object holding named ASN.1 types allowed within this collectionTagSet) – Object representing non-default ASN.1 tag(s)ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for Choice type can only occur on explicit
│ │ │ @@ -241,25 +241,25 @@
│ │ │
│ │ │
│ │ │
│ │ │ @@ -304,28 +304,28 @@
│ │ │ int) – Component index (zero-based). Must either refer to an existing
│ │ │ +int) – Component index (zero-based). Must either refer to an existing
│ │ │ component or (if componentType is set) new ASN.1 schema object gets
│ │ │ instantiated.
│ │ │ -
│ │ │ object) – If set and requested component is a schema object, return the default
│ │ │ +object) – If set and requested component is a schema object, return the default
│ │ │ object instead of the requested component.bool) – If True (default), inner component will be automatically
│ │ │ +bool) – If True (default), inner component will be automatically
│ │ │ instantiated.
│ │ │ -If False either existing component or the NoValue
│ │ │ +If False either existing component or the NoValue
│ │ │ object will be returned.PyAsn1Item – a PyASN1 object
│ │ │
│ │ │ @@ -356,31 +356,31 @@
│ │ │
│ │ │
│ │ │
│ │ │ int) – Component index (zero-based). Must either refer to existing
│ │ │ +int) – Component index (zero-based). Must either refer to existing
│ │ │ component or to N+1 component. In the latter case a new component
│ │ │ type gets instantiated (if componentType is set, or given ASN.1
│ │ │ object is taken otherwise) and appended to the Choice sequence.
│ │ │ -
│ │ │ object or PyAsn1Item derivative) – A Python value to initialize Choice component with (if componentType is set)
│ │ │ +object or PyAsn1Item derivative) – A Python value to initialize Choice component with (if componentType is set)
│ │ │ or ASN.1 value object to assign to Choice component. Once a new value is
│ │ │ set to idx component, previous value is dropped.
│ │ │ If value is not given, schema object will be set as a component.bool) – If False, skip constraints validationbool) – If False, skip component constraints matchingbool) – If False, skip constraints validationbool) – If False, skip component tags matchingbool) – If False, skip component constraints matching
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ str – Choice component namestr – Choice component name
│ │ │
False then this object represents just ASN.1 schema.True then, in addition to its ASN.1 schema features,
│ │ │ +False then this object represents just ASN.1 schema.True then, in addition to its ASN.1 schema features,
│ │ │ this object can also be used like a Python built-in object (e.g.
│ │ │ -int, str, dict etc.).int, str, dict etc.).
│ │ │
│ │ │
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal
│ │ │ +bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal
│ │ │ value.
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is Choice type,
│ │ │ -False otherwise.bool – True if other is Choice type,
│ │ │ +False otherwise.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ dict subscription operation (e.g. []).dict subscription operation (e.g. []).
│ │ │
│ │ │ str) – Choice type component namestr) – Choice type component name
│ │ │ -
│ │ │ object) – If set and requested component is a schema object, return the default
│ │ │ +object) – If set and requested component is a schema object, return the default
│ │ │ object instead of the requested component.bool) – If True (default), inner component will be automatically
│ │ │ +bool) – If True (default), inner component will be automatically
│ │ │ instantiated.
│ │ │ -If False either existing component or the NoValue
│ │ │ +If False either existing component or the NoValue
│ │ │ object will be returned.PyAsn1Item – Instantiate Choice component type or return existing
│ │ │ component value
│ │ │
│ │ │ @@ -488,19 +488,19 @@
│ │ │ dict item assignment operation (e.g. []).dict item assignment operation (e.g. []).
│ │ │
│ │ │ str) – Choice type component namestr) – Choice type component name
│ │ │ -
│ │ │ object or PyAsn1Item derivative) – A Python value to initialize Choice component with (if componentType is set)
│ │ │ +object or PyAsn1Item derivative) – A Python value to initialize Choice component with (if componentType is set)
│ │ │ or ASN.1 value object to assign to Choice component.
│ │ │ If value is not given, schema object will be set as a component.bool) – If False, skip constraints validationbool) – If False, skip component constraints matchingbool) – If False, skip constraints validationbool) – If False, skip component tags matchingbool) – If False, skip component constraints matching
│ │ │
│ │ │ @@ -513,21 +513,21 @@
│ │ │ TagSet) – Object representing ASN.1 tags to identify one of
│ │ │ Choice object component
│ │ │ -
│ │ │ object) – If set and requested component is a schema object, return the default
│ │ │ +object) – If set and requested component is a schema object, return the default
│ │ │ object instead of the requested component.bool) – If True (default), inner component will be automatically
│ │ │ +bool) – If True (default), inner component will be automatically
│ │ │ instantiated.
│ │ │ -If False either existing component or the noValue
│ │ │ +If False either existing component or the noValue
│ │ │ object will be returned.PyAsn1Item – a pyasn1 object
│ │ │
│ │ │
│ │ │ ├── html2text {}
│ │ │ │ @@ -18,15 +18,15 @@
│ │ │ │ ******** QQuuiicckk sseeaarrcchh ********
│ │ │ │ [q ][Go]
│ │ │ │ ************ CChhooiiccee ttyyppee_?¶ ************
│ │ │ │ ccllaassss pyasn1.type.univ.Choice(ccoommppoonneennttTTyyppee==NNoonnee, ttaaggSSeett==ttaaggSSeett(()),
│ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()))_¶
│ │ │ │ Create Choice schema or value object.
│ │ │ │ Choice class is based on _C_o_n_s_t_r_u_c_t_e_d_A_s_n_1_T_y_p_e, its objects are mutable and
│ │ │ │ - duck-type Python _l_i_s_t objects.
│ │ │ │ + duck-type Python list objects.
│ │ │ │ Keyword Arguments:
│ │ │ │ * ccoommppoonneennttTTyyppee (_N_a_m_e_d_T_y_p_e) – Object holding named ASN.1 types
│ │ │ │ allowed within this collection
│ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag
│ │ │ │ (s)
│ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing
│ │ │ │ non-default ASN.1 subtype constraint(s). Constraints
│ │ │ │ @@ -110,23 +110,23 @@
│ │ │ │ Set (on class, not on instance) or return a _C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n
│ │ │ │ object imposing constraints on Choice type initialization values.
│ │ │ │ getComponentByPosition(iiddxx, ddeeffaauulltt==<TagSet) – Object representing ASN.1 tags to identify one of
│ │ │ Choice object component
│ │ │ -
│ │ │ object or PyAsn1Item derivative) – A Python value to initialize Choice component with (if componentType is set)
│ │ │ +object or PyAsn1Item derivative) – A Python value to initialize Choice component with (if componentType is set)
│ │ │ or ASN.1 value object to assign to Choice component.
│ │ │ If value is not given, schema object will be set as a component.bool) – If False, skip constraints validationbool) – If False, skip component constraints matchingbool) – If True, search for matching tagSet recursively.bool) – If False, skip constraints validationbool) – If False, skip component tags matchingbool) – If False, skip component constraints matchingbool) – If True, search for matching tagSet recursively.Enumerated type¶
│ │ │
│ │ │
SimpleAsn1Type, its
│ │ │ -objects are immutable and duck-type Python int objects.int objects.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ -
│ │ │ @@ -239,23 +239,23 @@
│ │ │ representing symbolic aliases for numbers
│ │ │ int, str or Enumerated object) – Python int or str literal or Enumerated object.
│ │ │ +int, str or Enumerated object) – Python int or str literal or Enumerated object.
│ │ │ If value is not given, schema object will be created.TagSet) – Object representing non-default ASN.1 tag(s)ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for Enumerated type occurs automatically on object
│ │ │ instantiation.NamedValues) – Object representing non-default symbolic aliases for numbers
│ │ │
False then this object represents just
│ │ │ +False then this object represents just
│ │ │ ASN.1 schema.True then, in addition to its ASN.1 schema
│ │ │ +True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).int, str, dict etc.).
│ │ │
│ │ │
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is Enumerated type,
│ │ │ -False otherwise.bool – True if other is Enumerated type,
│ │ │ +False otherwise.
│ │ │
│ │ │
│ │ │
│ │ │
Integer type¶
│ │ │
│ │ │
SimpleAsn1Type, its
│ │ │ -objects are immutable and duck-type Python int objects.int objects.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ -
│ │ │ @@ -240,23 +240,23 @@
│ │ │ representing symbolic aliases for numbers
│ │ │ int, str or Integer object) – Python int or str literal or Integer class
│ │ │ +int, str or Integer object) – Python int or str literal or Integer class
│ │ │ instance. If value is not given, schema object will be created.TagSet) – Object representing non-default ASN.1 tag(s)ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for Integer type occurs automatically on object
│ │ │ instantiation.NamedValues) – Object representing non-default symbolic aliases for numbers
│ │ │
False then this object represents just
│ │ │ +False then this object represents just
│ │ │ ASN.1 schema.True then, in addition to its ASN.1 schema
│ │ │ +True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).int, str, dict etc.).
│ │ │
│ │ │
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is Integer type,
│ │ │ -False otherwise.bool – True if other is Integer type,
│ │ │ +False otherwise.
│ │ │
│ │ │
│ │ │
│ │ │
Null type¶
│ │ │
│ │ │
│ │ │
│ │ │ SimpleAsn1Type, its
│ │ │ -objects are immutable and duck-type Python str objects
│ │ │ +objects are immutable and duck-type Python str objects
│ │ │ (always empty).
│ │ │
│ │ │ -
│ │ │ str or Null object) – Python empty str literal or any object that evaluates to False
│ │ │ +str or Null object) – Python empty str literal or any object that evaluates to False
│ │ │ If value is not given, schema object will be created.TagSet) – Object representing non-default ASN.1 tag(s)
│ │ │
False then this object represents just
│ │ │ +False then this object represents just
│ │ │ ASN.1 schema.True then, in addition to its ASN.1 schema
│ │ │ +True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).int, str, dict etc.).
│ │ │
│ │ │
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is Null type,
│ │ │ -False otherwise.bool – True if other is Null type,
│ │ │ +False otherwise.
│ │ │
│ │ │
│ │ │
│ │ │
ObjectIdentifier type¶
│ │ │
│ │ │
SimpleAsn1Type, its
│ │ │ -objects are immutable and duck-type Python tuple objects
│ │ │ +objects are immutable and duck-type Python tuple objects
│ │ │ (tuple of non-negative integers).
│ │ │
│ │ │
│ │ │
│ │ │ -
│ │ │ tuple, str or ObjectIdentifier object) – Python sequence of int or str literal or ObjectIdentifier object.
│ │ │ +tuple, str or ObjectIdentifier object) – Python sequence of int or str literal or ObjectIdentifier object.
│ │ │ If value is not given, schema object will be created.TagSet) – Object representing non-default ASN.1 tag(s)ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for ObjectIdentifier type occurs automatically on object
│ │ │ instantiation.
│ │ │
│ │ │ bool – True if this ObjectIdentifier object is a parent (e.g. prefix) of the other ObjectIdentifier object
│ │ │ -or False otherwise.bool – True if this ObjectIdentifier object is a parent (e.g. prefix) of the other ObjectIdentifier object
│ │ │ +or False otherwise.
│ │ │
False then this object represents just
│ │ │ +False then this object represents just
│ │ │ ASN.1 schema.True then, in addition to its ASN.1 schema
│ │ │ +True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).int, str, dict etc.).
│ │ │
│ │ │
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is ObjectIdentifier type,
│ │ │ -False otherwise.bool – True if other is ObjectIdentifier type,
│ │ │ +False otherwise.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is a subtype of ObjectIdentifier type,
│ │ │ -False otherwise.bool – True if other is a subtype of ObjectIdentifier type,
│ │ │ +False otherwise.
│ │ │
OctetString type¶
│ │ │
│ │ │
SimpleAsn1Type, its
│ │ │ -objects are immutable and duck-type Python 2 str or
│ │ │ -Python 3 bytes. When used in Unicode context, OctetString type
│ │ │ +objects are immutable and duck-type Python 2 str or
│ │ │ +Python 3 bytes. When used in Unicode context, OctetString type
│ │ │ assumes “iso-8859-1” serialisation.
│ │ │
│ │ │ @@ -240,43 +240,43 @@
│ │ │
│ │ │
│ │ │ -
│ │ │ unicode, str, bytes or OctetString object) – class:str (Python 2) or bytes (Python 3), alternatively
│ │ │ -class:unicode object (Python 2) or str (Python 3)
│ │ │ +unicode, str, bytes or OctetString object) – class:str (Python 2) or bytes (Python 3), alternatively
│ │ │ +class:unicode object (Python 2) or str (Python 3)
│ │ │ representing character string to be serialised into octets
│ │ │ (note encoding parameter) or OctetString object.
│ │ │ If value is not given, schema object will be created.TagSet) – Object representing non-default ASN.1 tag(s)ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for OctetString type occurs automatically on object
│ │ │ instantiation.str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ -str (Python 3) the payload when OctetString object is used
│ │ │ +str) – Unicode codec ID to encode/decode unicode (Python 2) or
│ │ │ +str (Python 3) the payload when OctetString object is used
│ │ │ in text string context.str) – Binary string initializer to use instead of the value.
│ │ │ +str) – Binary string initializer to use instead of the value.
│ │ │ Example: ‘10110011’.str) – Hexadecimal string initializer to use instead of the value.
│ │ │ +str) – Hexadecimal string initializer to use instead of the value.
│ │ │ Example: ‘DEADBEEF’.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ str) – Text string like ‘1010111’str) – Text string like ‘1010111’
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ str) – Text string like ‘DEADBEEF’str) – Text string like ‘DEADBEEF’
│ │ │
False then this object represents just
│ │ │ +False then this object represents just
│ │ │ ASN.1 schema.True then, in addition to its ASN.1 schema
│ │ │ +True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).int, str, dict etc.).
│ │ │
│ │ │
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is OctetString type,
│ │ │ -False otherwise.bool – True if other is OctetString type,
│ │ │ +False otherwise.
│ │ │
│ │ │
│ │ │
│ │ │
Real type¶
│ │ │
│ │ │
SimpleAsn1Type, its
│ │ │ -objects are immutable and duck-type Python float objects.
│ │ │ -Additionally, Real objects behave like a tuple in which case its
│ │ │ +objects are immutable and duck-type Python float objects.
│ │ │ +Additionally, Real objects behave like a tuple in which case its
│ │ │ elements are mantissa, base and exponent.
│ │ │
│ │ │ -
│ │ │ tuple, float or Real object) – Python sequence of int (representing mantissa, base and
│ │ │ -exponent) or float instance or Real object.
│ │ │ +tuple, float or Real object) – Python sequence of int (representing mantissa, base and
│ │ │ +exponent) or float instance or Real object.
│ │ │ If value is not given, schema object will be created.TagSet) – Object representing non-default ASN.1 tag(s)ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for Real type occurs automatically on object
│ │ │ instantiation.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
False then this object represents just
│ │ │ +False then this object represents just
│ │ │ ASN.1 schema.True then, in addition to its ASN.1 schema
│ │ │ +True then, in addition to its ASN.1 schema
│ │ │ features, this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).int, str, dict etc.).
│ │ │
│ │ │
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is Real type,
│ │ │ -False otherwise.bool – True if other is Real type,
│ │ │ +False otherwise.
│ │ │
│ │ │
│ │ │
│ │ │
Sequence type¶
│ │ │
│ │ │
ConstructedAsn1Type,
│ │ │ -its objects are mutable and duck-type Python dict objects.dict objects.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
NamedType) – Object holding named ASN.1 types allowed within this collectionTagSet) – Object representing non-default ASN.1 tag(s)ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for Sequence type can only occur on explicit
│ │ │ @@ -238,22 +238,22 @@
│ │ │ object imposing size constraint on Sequence objects
│ │ │
False then this object represents just ASN.1 schema.True then, in addition to its ASN.1 schema features,
│ │ │ +False then this object represents just ASN.1 schema.True then, in addition to its ASN.1 schema features,
│ │ │ this object can also be used like a Python built-in object (e.g.
│ │ │ -int, str, dict etc.).int, str, dict etc.).
│ │ │
│ │ │
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a
│ │ │ +bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a
│ │ │ normal value.
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is Sequence type,
│ │ │ -False otherwise.bool – True if other is Sequence type,
│ │ │ +False otherwise.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ @@ -386,91 +386,91 @@
│ │ │ int) – Component index (zero-based). Must either refer to an existing
│ │ │ +int) – Component index (zero-based). Must either refer to an existing
│ │ │ component or (if componentType is set) new ASN.1 schema object gets
│ │ │ instantiated.
│ │ │ -
│ │ │ object) – If set and requested component is a schema object, return the default
│ │ │ +object) – If set and requested component is a schema object, return the default
│ │ │ object instead of the requested component.bool) – If True (default), inner component will be automatically
│ │ │ +bool) – If True (default), inner component will be automatically
│ │ │ instantiated.
│ │ │ -If False either existing component or the NoValue
│ │ │ +If False either existing component or the NoValue
│ │ │ object will be returned.PyAsn1Item – a PyASN1 object
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ int) – Component index (zero-based). Must either refer to existing
│ │ │ +int) – Component index (zero-based). Must either refer to existing
│ │ │ component (if componentType is set) or to N+1 component
│ │ │ otherwise. In the latter case a new component of given ASN.1
│ │ │ type gets instantiated and appended to Sequence sequence.
│ │ │ -
│ │ │ object or PyAsn1Item derivative) – A Python value to initialize Sequence component with (if componentType is set)
│ │ │ +object or PyAsn1Item derivative) – A Python value to initialize Sequence component with (if componentType is set)
│ │ │ or ASN.1 value object to assign to Sequence component.
│ │ │ If value is not given, schema object will be set as a component.bool) – If False, skip constraints validationbool) – If False, skip component constraints matchingbool) – If False, skip constraints validationbool) – If False, skip component tags matchingbool) – If False, skip component constraints matching
│ │ │
│ │ │
│ │ │ dict subscription operation (e.g. []).dict subscription operation (e.g. []).
│ │ │
│ │ │ str) – Sequence type component namestr) – Sequence type component name
│ │ │ -
│ │ │ object) – If set and requested component is a schema object, return the default
│ │ │ +object) – If set and requested component is a schema object, return the default
│ │ │ object instead of the requested component.bool) – If True (default), inner component will be automatically
│ │ │ +bool) – If True (default), inner component will be automatically
│ │ │ instantiated.
│ │ │ -If False either existing component or the NoValue
│ │ │ +If False either existing component or the NoValue
│ │ │ object will be returned.PyAsn1Item – Instantiate Sequence component type or return existing
│ │ │ component value
│ │ │
│ │ │
│ │ │ dict item assignment operation (e.g. []).dict item assignment operation (e.g. []).
│ │ │
│ │ │ str) – Sequence type component namestr) – Sequence type component name
│ │ │ -
│ │ │ object or PyAsn1Item derivative) – A Python value to initialize Sequence component with (if componentType is set)
│ │ │ +object or PyAsn1Item derivative) – A Python value to initialize Sequence component with (if componentType is set)
│ │ │ or ASN.1 value object to assign to Sequence component.
│ │ │ If value is not given, schema object will be set as a component.bool) – If False, skip constraints validationbool) – If False, skip component constraints matchingbool) – If False, skip constraints validationbool) – If False, skip component tags matchingbool) – If False, skip component constraints matching
│ │ │
│ │ │
│ │ │ dict
│ │ │ +dict
│ │ │ built-in.
│ │ │
SequenceOf type¶
│ │ │
│ │ │
ConstructedAsn1Type,
│ │ │ -its objects are mutable and duck-type Python list objects.list objects.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
PyAsn1Item derivative) – A pyasn1 object representing ASN.1 type allowed within SequenceOf typeTagSet) – Object representing non-default ASN.1 tag(s)ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for SequenceOf type can only occur on explicit
│ │ │ @@ -229,22 +229,22 @@
│ │ │ imposing constraints on SequenceOf type initialization values.
│ │ │
False then this object represents just ASN.1 schema.True then, in addition to its ASN.1 schema features,
│ │ │ +False then this object represents just ASN.1 schema.True then, in addition to its ASN.1 schema features,
│ │ │ this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).int, str, dict etc.).
│ │ │
│ │ │
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is SequenceOf type,
│ │ │ -False otherwise.bool – True if other is SequenceOf type,
│ │ │ +False otherwise.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ @@ -370,46 +370,46 @@
│ │ │ int) – Component index (zero-based). Must either refer to an existing
│ │ │ +int) – Component index (zero-based). Must either refer to an existing
│ │ │ component or to N+1 component (if componentType is set). In the latter
│ │ │ case a new component type gets instantiated and appended to the SequenceOf
│ │ │ sequence.
│ │ │ -
│ │ │ object) – If set and requested component is a schema object, return the default
│ │ │ +object) – If set and requested component is a schema object, return the default
│ │ │ object instead of the requested component.bool) – If True (default), inner component will be automatically instantiated.
│ │ │ -If False either existing component or the NoValue object will be
│ │ │ +bool) – If True (default), inner component will be automatically instantiated.
│ │ │ +If False either existing component or the NoValue object will be
│ │ │ returned.PyAsn1Item – Instantiate SequenceOf component type or return existing component value
│ │ │
│ │ │ int) – Component index (zero-based). Must either refer to existing
│ │ │ +int) – Component index (zero-based). Must either refer to existing
│ │ │ component or to N+1 component. In the latter case a new component
│ │ │ type gets instantiated (if componentType is set, or given ASN.1
│ │ │ object is taken otherwise) and appended to the SequenceOf sequence.
│ │ │ -
│ │ │ object or PyAsn1Item derivative) – A Python value to initialize SequenceOf component with (if componentType is set)
│ │ │ +object or PyAsn1Item derivative) – A Python value to initialize SequenceOf component with (if componentType is set)
│ │ │ or ASN.1 value object to assign to SequenceOf component.
│ │ │ If value is not given, schema object will be set as a component.bool) – If False, skip constraints validationbool) – If False, skip component constraints matchingbool) – If False, skip constraints validationbool) – If False, skip component tags matchingbool) – If False, skip component constraints matching
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ list
│ │ │ +list
│ │ │ built-in.
│ │ │
Set type¶
│ │ │
│ │ │
ConstructedAsn1Type,
│ │ │ -its objects are mutable and duck-type Python dict objects.dict objects.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
NamedType) – Object holding named ASN.1 types allowed within this collectionTagSet) – Object representing non-default ASN.1 tag(s)ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for Set type can only occur on explicit
│ │ │ @@ -245,19 +245,19 @@
│ │ │
│ │ │
│ │ │ @@ -270,41 +270,41 @@
│ │ │ TagSet) – Object representing ASN.1 tags to identify one of
│ │ │ Set object component
│ │ │ -
│ │ │ object) – If set and requested component is a schema object, return the default
│ │ │ +object) – If set and requested component is a schema object, return the default
│ │ │ object instead of the requested component.bool) – If True (default), inner component will be automatically
│ │ │ +bool) – If True (default), inner component will be automatically
│ │ │ instantiated.
│ │ │ -If False either existing component or the noValue
│ │ │ +If False either existing component or the noValue
│ │ │ object will be returned.PyAsn1Item – a pyasn1 object
│ │ │
│ │ │ TagSet) – Object representing ASN.1 tags to identify one of
│ │ │ Set object component
│ │ │ -
│ │ │ object or PyAsn1Item derivative) – A Python value to initialize Set component with (if componentType is set)
│ │ │ +object or PyAsn1Item derivative) – A Python value to initialize Set component with (if componentType is set)
│ │ │ or ASN.1 value object to assign to Set component.
│ │ │ If value is not given, schema object will be set as a component.bool) – If False, skip constraints validationbool) – If False, skip component constraints matchingbool) – If True, search for matching tagSet recursively.bool) – If False, skip constraints validationbool) – If False, skip component tags matchingbool) – If False, skip component constraints matchingbool) – If True, search for matching tagSet recursively.
│ │ │
False then this object represents just ASN.1 schema.True then, in addition to its ASN.1 schema features,
│ │ │ +False then this object represents just ASN.1 schema.True then, in addition to its ASN.1 schema features,
│ │ │ this object can also be used like a Python built-in object (e.g.
│ │ │ -int, str, dict etc.).int, str, dict etc.).
│ │ │
│ │ │
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a
│ │ │ +bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a
│ │ │ normal value.
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is Set type,
│ │ │ -False otherwise.bool – True if other is Set type,
│ │ │ +False otherwise.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ @@ -437,91 +437,91 @@
│ │ │ int) – Component index (zero-based). Must either refer to an existing
│ │ │ +int) – Component index (zero-based). Must either refer to an existing
│ │ │ component or (if componentType is set) new ASN.1 schema object gets
│ │ │ instantiated.
│ │ │ -
│ │ │ object) – If set and requested component is a schema object, return the default
│ │ │ +object) – If set and requested component is a schema object, return the default
│ │ │ object instead of the requested component.bool) – If True (default), inner component will be automatically
│ │ │ +bool) – If True (default), inner component will be automatically
│ │ │ instantiated.
│ │ │ -If False either existing component or the NoValue
│ │ │ +If False either existing component or the NoValue
│ │ │ object will be returned.PyAsn1Item – a PyASN1 object
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ int) – Component index (zero-based). Must either refer to existing
│ │ │ +int) – Component index (zero-based). Must either refer to existing
│ │ │ component (if componentType is set) or to N+1 component
│ │ │ otherwise. In the latter case a new component of given ASN.1
│ │ │ type gets instantiated and appended to Set sequence.
│ │ │ -
│ │ │ object or PyAsn1Item derivative) – A Python value to initialize Set component with (if componentType is set)
│ │ │ +object or PyAsn1Item derivative) – A Python value to initialize Set component with (if componentType is set)
│ │ │ or ASN.1 value object to assign to Set component.
│ │ │ If value is not given, schema object will be set as a component.bool) – If False, skip constraints validationbool) – If False, skip component constraints matchingbool) – If False, skip constraints validationbool) – If False, skip component tags matchingbool) – If False, skip component constraints matching
│ │ │
│ │ │
│ │ │ dict subscription operation (e.g. []).dict subscription operation (e.g. []).
│ │ │
│ │ │ str) – Set type component namestr) – Set type component name
│ │ │ -
│ │ │ object) – If set and requested component is a schema object, return the default
│ │ │ +object) – If set and requested component is a schema object, return the default
│ │ │ object instead of the requested component.bool) – If True (default), inner component will be automatically
│ │ │ +bool) – If True (default), inner component will be automatically
│ │ │ instantiated.
│ │ │ -If False either existing component or the NoValue
│ │ │ +If False either existing component or the NoValue
│ │ │ object will be returned.PyAsn1Item – Instantiate Set component type or return existing
│ │ │ component value
│ │ │
│ │ │
│ │ │ dict item assignment operation (e.g. []).dict item assignment operation (e.g. []).
│ │ │
│ │ │ str) – Set type component namestr) – Set type component name
│ │ │ -
│ │ │ object or PyAsn1Item derivative) – A Python value to initialize Set component with (if componentType is set)
│ │ │ +object or PyAsn1Item derivative) – A Python value to initialize Set component with (if componentType is set)
│ │ │ or ASN.1 value object to assign to Set component.
│ │ │ If value is not given, schema object will be set as a component.bool) – If False, skip constraints validationbool) – If False, skip component constraints matchingbool) – If False, skip constraints validationbool) – If False, skip component tags matchingbool) – If False, skip component constraints matching
│ │ │
│ │ │
│ │ │ dict
│ │ │ +dict
│ │ │ built-in.
│ │ │
SetOf type¶
│ │ │
│ │ │
ConstructedAsn1Type,
│ │ │ -its objects are mutable and duck-type Python list objects.list objects.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
PyAsn1Item derivative) – A pyasn1 object representing ASN.1 type allowed within SetOf typeTagSet) – Object representing non-default ASN.1 tag(s)ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints
│ │ │ verification for SetOf type can only occur on explicit
│ │ │ @@ -229,22 +229,22 @@
│ │ │ imposing constraints on SetOf type initialization values.
│ │ │
False then this object represents just ASN.1 schema.True then, in addition to its ASN.1 schema features,
│ │ │ +False then this object represents just ASN.1 schema.True then, in addition to its ASN.1 schema features,
│ │ │ this object can also be used like a Python built-in object
│ │ │ -(e.g. int, str, dict etc.).int, str, dict etc.).
│ │ │
│ │ │
│ │ │ bool – False if object represents just ASN.1 schema.
│ │ │ -True if object represents ASN.1 schema and can be used as a normal value.bool – False if object represents just ASN.1 schema.
│ │ │ +True if object represents ASN.1 schema and can be used as a normal value.
│ │ │
│ │ │
│ │ │
│ │ │ bool – True if other is SetOf type,
│ │ │ -False otherwise.bool – True if other is SetOf type,
│ │ │ +False otherwise.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ @@ -370,46 +370,46 @@
│ │ │ int) – Component index (zero-based). Must either refer to an existing
│ │ │ +int) – Component index (zero-based). Must either refer to an existing
│ │ │ component or to N+1 component (if componentType is set). In the latter
│ │ │ case a new component type gets instantiated and appended to the SetOf
│ │ │ sequence.
│ │ │ -
│ │ │ object) – If set and requested component is a schema object, return the default
│ │ │ +object) – If set and requested component is a schema object, return the default
│ │ │ object instead of the requested component.bool) – If True (default), inner component will be automatically instantiated.
│ │ │ -If False either existing component or the NoValue object will be
│ │ │ +bool) – If True (default), inner component will be automatically instantiated.
│ │ │ +If False either existing component or the NoValue object will be
│ │ │ returned.PyAsn1Item – Instantiate SetOf component type or return existing component value
│ │ │
│ │ │ int) – Component index (zero-based). Must either refer to existing
│ │ │ +int) – Component index (zero-based). Must either refer to existing
│ │ │ component or to N+1 component. In the latter case a new component
│ │ │ type gets instantiated (if componentType is set, or given ASN.1
│ │ │ object is taken otherwise) and appended to the SetOf sequence.
│ │ │ -
│ │ │ object or PyAsn1Item derivative) – A Python value to initialize SetOf component with (if componentType is set)
│ │ │ +object or PyAsn1Item derivative) – A Python value to initialize SetOf component with (if componentType is set)
│ │ │ or ASN.1 value object to assign to SetOf component.
│ │ │ If value is not given, schema object will be set as a component.bool) – If False, skip constraints validationbool) – If False, skip component constraints matchingbool) – If False, skip constraints validationbool) – If False, skip component tags matchingbool) – If False, skip component constraints matching
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ list
│ │ │ +list
│ │ │ built-in.
│ │ │
GeneralizedTime type¶
│ │ │
│ │ │
SimpleAsn1Type,
│ │ │ -its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ -bytes. When used in octet-stream context, GeneralizedTime type assumes
│ │ │ +its objects are immutable and duck-type Python 2 str or Python 3
│ │ │ +bytes. When used in octet-stream context, GeneralizedTime type assumes
│ │ │ “iso-8859-1” encoding.
│ │ │
│ │ │ -