Tag->type map¶
-
class
pyasn1.type.tagmap.TagMap(presentTypes=None, skipTypes=None, defaultType=None)¶ 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
dictobjects holding TagSet objects as keys and ASN.1 type objects as values.Parameters: - presentTypes (
dict) – Map ofTagSetto ASN.1 objects considered as being unconditionally present in the TagMap. - skipTypes (
dict) – A collection ofTagSetobjects considered as absent in the TagMap even when defaultType is present. - 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).
-
presentTypes¶ Return TagSet to ASN.1 type map present in callee TagMap
-
skipTypes¶ Return TagSet collection unconditionally absent in callee TagMap
-
defaultType¶ Return default ASN.1 type being returned for any missing TagSet
- presentTypes (