pysnmp.asn1.univ
index
/home/mcfletch/pylive/pysnmp/asn1/univ.py

ASN.1 "universal" data types.
 
Copyright 1999-2002 by Ilya Etingof <ilya@glas.net>. See LICENSE for
details.

 
Modules
       
pysnmp.asn1.base
pysnmp.asn1.constraints
pysnmp.asn1.error
pysnmp.asn1.oid
re
string

 
Classes
       
AnyTypeAsn1Object(FixedTypeAsn1Object)
Any
ChoiceTypeAsn1Object(FixedTypeAsn1Object)
Choice(ChoiceTypeAsn1Object, ChoiceMixIn)
RecordTypeAsn1Object(FixedTypeAsn1Object)
Sequence(RecordTypeAsn1Object, SequenceMixIn)
Set(RecordTypeAsn1Object, SetMixIn)
SimpleAsn1Object(Asn1Object)
BitString(SimpleAsn1Object, BitStringMixIn)
Boolean(SimpleAsn1Object, BooleanMixIn)
Enumerated(SimpleAsn1Object, EnumeratedMixIn)
Integer(SimpleAsn1Object, IntegerMixIn)
Null(SimpleAsn1Object, NullMixIn)
ObjectIdentifier(SimpleAsn1Object, ObjectIdentifierMixIn)
OctetString(SimpleAsn1Object, OctetStringMixIn)
Real(SimpleAsn1Object, RealMixIn)
VariableTypeAsn1Object(StructuredAsn1Object)
SequenceOf(VariableTypeAsn1Object, SequenceOfMixIn)
SetOf(VariableTypeAsn1Object, SetOfMixIn)
BitStringMixIn(OctetStringMixIn)
BitString(SimpleAsn1Object, BitStringMixIn)
BooleanMixIn(SimpleAsn1Object)
Boolean(SimpleAsn1Object, BooleanMixIn)
ChoiceMixIn(SingleFixedTypeAsn1Object)
Choice(ChoiceTypeAsn1Object, ChoiceMixIn)
EnumeratedMixIn(IntegerMixIn)
Enumerated(SimpleAsn1Object, EnumeratedMixIn)
IntegerMixIn(SimpleAsn1Object)
Integer(SimpleAsn1Object, IntegerMixIn)
NullMixIn(SimpleAsn1Object)
Null(SimpleAsn1Object, NullMixIn)
ObjectIdentifierMixIn(SimpleAsn1Object)
ObjectIdentifier(SimpleAsn1Object, ObjectIdentifierMixIn)
OctetStringMixIn(SimpleAsn1Object)
OctetString(SimpleAsn1Object, OctetStringMixIn)
RealMixIn(SimpleAsn1Object)
Real(SimpleAsn1Object, RealMixIn)
SequenceMixIn(OrderedFixedTypeAsn1Object)
Sequence(RecordTypeAsn1Object, SequenceMixIn)
SequenceOfMixIn(OrderedVariableTypeAsn1Object)
SequenceOf(VariableTypeAsn1Object, SequenceOfMixIn)
SetMixIn(UnorderedFixedTypeAsn1Object)
Set(RecordTypeAsn1Object, SetMixIn)
SetOfMixIn(UnorderedVariableTypeAsn1Object)
SetOf(VariableTypeAsn1Object, SetOfMixIn)

 
class Any(AnyTypeAsn1Object)
    ASN.1 ANY clause
 
 
Method resolution order:
Any
AnyTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
Asn1Object

Data and other attributes defined here:
tagCategory = 4

Methods inherited from AnyTypeAsn1Object:
__delitem__(self, key)
Delete component by key
__init__(self, **kwargs)
Store dictionary args
__setitem__(self, key, value)
Set component by key & value

Data and other attributes inherited from AnyTypeAsn1Object:
initialComponent = None

Methods inherited from FixedTypeAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__getitem__(self, key)
Return component by key
__hash__(self)
Returns hash of the payload value
__len__(self)
Get length of the object
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
get(self, key, default=None)
Lookup by key with default
has_key(self, key)
Return true if key exists
items(self)
Return a list of tuples (key, value)
keys(self)
Return a list of keys
update(self, dict)
Merge dict to ourselves
values(self)
Return a list of values

Data and other attributes inherited from StructuredAsn1Object:
tagFormat = 32

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
allowedTypes = ()
constraints = ()
tagClass = 0
tagId = None

 
class BitString(SimpleAsn1Object, BitStringMixIn)
    An ASN.1 BITSTRING object XXX
 
 
Method resolution order:
BitString
SimpleAsn1Object
Asn1Object
BitStringMixIn
OctetStringMixIn
SimpleAsn1Object
BerObject

Data and other attributes defined here:
allowedTypes = (<type 'str'>,)
tagId = 3

Methods inherited from SimpleAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__hash__(self)
Returns hash of the payload value
__init__(self, value=None)
Store ASN.1 value
__nonzero__(self)
Returns true if value is true
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
componentFactoryBorrow(self, value=None)
get(self)
Get a value from object
getTerminal(self)
set(self, value)
Set a value to object

Data and other attributes inherited from SimpleAsn1Object:
NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
initialValue = None
tagFormat = 0

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from SimpleAsn1Object:
berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible
decode = berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
encode = berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class Boolean(SimpleAsn1Object, BooleanMixIn)
    An ASN.1 boolean object
 
 
Method resolution order:
Boolean
SimpleAsn1Object
Asn1Object
BooleanMixIn
SimpleAsn1Object
BerObject

Methods defined here:
__and__(self, value)
Perform binary AND operation
__iand__(self, value)
Perform binary AND operation against ourselves
__ior__(self, value)
Perform binary OR operation against ourselves
__ixor__(self, value)
Perform binary XOR operation against ourselves
__or__(self, value)
Perform binary OR operation
__rand__ = __and__(self, value)
__ror__ = __or__(self, value)
__rxor__ = __xor__(self, value)
__xor__(self, value)
Perform binary XOR operation

Data and other attributes defined here:
allowedTypes = (<type 'int'>, <type 'long'>)
constraints = (<pysnmp.asn1.constraints.SingleValueConstraint object>,)
initialValue = 0L
tagId = 1

Methods inherited from SimpleAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__hash__(self)
Returns hash of the payload value
__init__(self, value=None)
Store ASN.1 value
__nonzero__(self)
Returns true if value is true
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
componentFactoryBorrow(self, value=None)
get(self)
Get a value from object
getTerminal(self)
set(self, value)
Set a value to object

Data and other attributes inherited from SimpleAsn1Object:
NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
tagFormat = 0

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
tagCategory = 1
tagClass = 0

Methods inherited from SimpleAsn1Object:
berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible
decode = berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
encode = berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class Choice(ChoiceTypeAsn1Object, ChoiceMixIn)
    ASN.1 CHOICE clause
 
 
Method resolution order:
Choice
ChoiceTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
Asn1Object
ChoiceMixIn
SingleFixedTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
SimpleAsn1Object
BerObject

Data and other attributes defined here:
tagCategory = 4

Methods inherited from ChoiceTypeAsn1Object:
__delitem__(self, key)
Delete component by key
__init__(self, **kwargs)
Store dictionary args
__setitem__(self, key, value)
Set component by key & value
componentFactoryBorrow(self, key)

Data and other attributes inherited from ChoiceTypeAsn1Object:
choiceComponents = []
choiceNames = []
initialComponent = None

Methods inherited from FixedTypeAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__getitem__(self, key)
Return component by key
__hash__(self)
Returns hash of the payload value
__len__(self)
Get length of the object
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
get(self, key, default=None)
Lookup by key with default
has_key(self, key)
Return true if key exists
items(self)
Return a list of tuples (key, value)
keys(self)
Return a list of keys
update(self, dict)
Merge dict to ourselves
values(self)
Return a list of values

Data and other attributes inherited from StructuredAsn1Object:
tagFormat = 32

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
allowedTypes = ()
constraints = ()
tagClass = 0
tagId = None

Methods inherited from SingleFixedTypeAsn1Object:
berDecode(self, input)
decode = berDecode(self, input)

Methods inherited from FixedTypeAsn1Object:
berEncode(self)
Choose optimised version of berEncode for this class
berEncodeWOutSub(self)
berEncodeWSub() -> octet string
 
For classes which do *not* have a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
berEncodeWSub(self)
berEncodeWSub() -> octet string
 
For classes which *have* a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
encode = berEncode(self)
Choose optimised version of berEncode for this class

Methods inherited from StructuredAsn1Object:
berUnwrapHeader(self, input)
Decode BER header, return (data, rest)
berWrapHeader(self, input)
Add BER header to data chunk if needed

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class Enumerated(SimpleAsn1Object, EnumeratedMixIn)
    An ASN.1 ENUMERATED object XXX
 
 
Method resolution order:
Enumerated
SimpleAsn1Object
Asn1Object
EnumeratedMixIn
IntegerMixIn
SimpleAsn1Object
BerObject

Data and other attributes defined here:
allowedTypes = (<type 'int'>, <type 'long'>)
initialValue = 0
tagId = 16

Methods inherited from SimpleAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__hash__(self)
Returns hash of the payload value
__init__(self, value=None)
Store ASN.1 value
__nonzero__(self)
Returns true if value is true
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
componentFactoryBorrow(self, value=None)
get(self)
Get a value from object
getTerminal(self)
set(self, value)
Set a value to object

Data and other attributes inherited from SimpleAsn1Object:
NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
tagFormat = 0

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from SimpleAsn1Object:
berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible
decode = berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
encode = berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class Integer(SimpleAsn1Object, IntegerMixIn)
    An ASN.1, indefinite length integer object
 
 
Method resolution order:
Integer
SimpleAsn1Object
Asn1Object
IntegerMixIn
SimpleAsn1Object
BerObject

Methods defined here:
__add__(self, value)
Add a value
__and__(self, value)
Perform binary AND operation
__div__(self, value)
Divide a value by ourselves
__float__(self)
Return a floating point value of ourselves
__iadd__(self, value)
Add value to ourselves
__iand__(self, value)
Perform binary AND operation against ourselves
__idiv__(self, value)
Divide a value by ourselves
__ilshift__(self, value)
Perform left shift operation
__imod__(self, value)
Take a modulo of ourselves
__imul__(self, value)
Multiply a value to ourselves
__int__(self)
Return an integer value of ourselves
__ior__(self, value)
Perform binary OR operation against ourselves
__ipow__(self, value, modulo)
Provision for x**=y
__irshift__(self, value)
Perform right shift operation
__isub__(self, value)
Subscract value from ourselves
__ixor__(self, value)
Perform binary XOR operation against ourselves
__long__(self)
Return a long integer value of ourselves
__lshift__(self, value)
Perform left shift operation
__mod__(self, value)
Take a modulo of ourselves
__mul__(self, value)
Multiply a value
__or__(self, value)
Perform binary OR operation
__pow__(self, value, modulo)
Provision for pow()
__radd__ = __add__(self, value)
__rand__ = __and__(self, value)
__rdiv__(self, value)
Divide ourselves by value
__rmod__ = __mod__(self, value)
__rmul__ = __mul__(self, value)
__ror__ = __or__(self, value)
__rpow__(self, value, modulo)
Provision for rpow()
__rshift__(self, value)
Perform right shift operation
__rsub__(self, value)
Subscract our value from given one
__rxor__ = __xor__(self, value)
__sub__(self, value)
Subscract a value
__xor__(self, value)
Perform binary XOR operation
dec = __isub__(self, value)
div = __idiv__(self, value)
inc = __iadd__(self, value)
mul = __imul__(self, value)

Data and other attributes defined here:
allowedTypes = (<type 'int'>, <type 'long'>)
initialValue = 0L
tagId = 2

Methods inherited from SimpleAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__hash__(self)
Returns hash of the payload value
__init__(self, value=None)
Store ASN.1 value
__nonzero__(self)
Returns true if value is true
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
componentFactoryBorrow(self, value=None)
get(self)
Get a value from object
getTerminal(self)
set(self, value)
Set a value to object

Data and other attributes inherited from SimpleAsn1Object:
NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
tagFormat = 0

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from SimpleAsn1Object:
berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible
decode = berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
encode = berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class Null(SimpleAsn1Object, NullMixIn)
    ASN.1 NULL object
 
 
Method resolution order:
Null
SimpleAsn1Object
Asn1Object
NullMixIn
SimpleAsn1Object
BerObject

Data and other attributes defined here:
allowedTypes = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>)
constraints = (<pysnmp.asn1.constraints.SingleValueConstraint object>,)
initialValue = ''
tagId = 5

Methods inherited from SimpleAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__hash__(self)
Returns hash of the payload value
__init__(self, value=None)
Store ASN.1 value
__nonzero__(self)
Returns true if value is true
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
componentFactoryBorrow(self, value=None)
get(self)
Get a value from object
getTerminal(self)
set(self, value)
Set a value to object

Data and other attributes inherited from SimpleAsn1Object:
NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
tagFormat = 0

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
tagCategory = 1
tagClass = 0

Methods inherited from SimpleAsn1Object:
berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible
decode = berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
encode = berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class ObjectIdentifier(SimpleAsn1Object, ObjectIdentifierMixIn)
    ASN.1 Object ID object (taken and returned as string in conventional
"dotted" representation)
 
 
Method resolution order:
ObjectIdentifier
SimpleAsn1Object
Asn1Object
ObjectIdentifierMixIn
SimpleAsn1Object
BerObject

Methods defined here:
__add__(self, other)
Add sub-id  with input verification
__delitem__(self, i)
Delete sequence component by index or slice
__getitem__(self, i)
Get sequence component by index or slice
__init__(self, value=None)
__len__(self)
__radd__(self, other)
Add sub-id  with input verification
__setitem__(self, i, item)
Set sub-id by index or slice with input verification
append(self, item)
Append sub-id with input verification
attachNode(self, newNode, newOid=None, idx=None)
Attach a new OID node to OIDs tree
extend(self, item)
Append an oid with input verification
index(self, suboid)
Returns index of first occurrence of given sub-identifier
initChildNodes(self)
Initialize possible children
isaprefix(self, other)
isaprefix(other) -> boolean
 
Compare our own OID with the other one (given as a string),
return non-None if ours is a prefix of the other OID.
 
This is intended to be used for MIB tables retrieval.
match(self, subOids, offset=None)
Compare OIDs by numeric or alias values
resolveKeyOid(self, arg)
searchNode(self, oid, idx=None)
Search the tree of OIDs by name
str2num(self, symbolicOid, aliases=None)
str2num(symbolicOid) -> numericOid
 
Convert symbolic Object ID presented in a dotted form into a
numeric Object ID  represented as a list of numeric sub-ID's.
strNode(self, level=0)
Pretty print OID tree

Data and other attributes defined here:
allowedTypes = (<type 'str'>, <type 'list'>)
initialChildren = []
initialValue = []
tagId = 6

Methods inherited from SimpleAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__hash__(self)
Returns hash of the payload value
__nonzero__(self)
Returns true if value is true
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
componentFactoryBorrow(self, value=None)
get(self)
Get a value from object
getTerminal(self)
set(self, value)
Set a value to object

Data and other attributes inherited from SimpleAsn1Object:
NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
tagFormat = 0

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
constraints = ()
tagCategory = 1
tagClass = 0

Class methods inherited from ObjectIdentifierMixIn:
berInternEncoding(cls, oid) from __builtin__.classobj
Given an OID value, cache the BER encoded values for reference

Data and other attributes inherited from ObjectIdentifierMixIn:
BER_BACKWARD_CACHE = {}
BER_FORWARD_CACHE = {}

Methods inherited from SimpleAsn1Object:
berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible
decode = berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
encode = berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class OctetString(SimpleAsn1Object, OctetStringMixIn)
    ASN.1 octet string object
 
 
Method resolution order:
OctetString
SimpleAsn1Object
Asn1Object
OctetStringMixIn
SimpleAsn1Object
BerObject

Methods defined here:
__add__(self, other)
Add sub-id  with input verification
__getitem__(self, i)
Get string component by index or slice
__len__(self)
__mul__(self, value)
Multiply a value
__radd__(self, other)
Add sub-id  with input verification
__rmul__ = __mul__(self, value)

Data and other attributes defined here:
allowedTypes = (<type 'str'>,)
initialValue = ''
tagId = 4

Methods inherited from SimpleAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__hash__(self)
Returns hash of the payload value
__init__(self, value=None)
Store ASN.1 value
__nonzero__(self)
Returns true if value is true
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
componentFactoryBorrow(self, value=None)
get(self)
Get a value from object
getTerminal(self)
set(self, value)
Set a value to object

Data and other attributes inherited from SimpleAsn1Object:
NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
tagFormat = 0

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from SimpleAsn1Object:
berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible
decode = berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
encode = berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class Real(SimpleAsn1Object, RealMixIn)
    An ASN.1 REAL object XXX
 
 
Method resolution order:
Real
SimpleAsn1Object
Asn1Object
RealMixIn
SimpleAsn1Object
BerObject

Data and other attributes defined here:
allowedTypes = (<type 'int'>, <type 'long'>, <type 'float'>)
initialValue = 0.0
tagId = 9

Methods inherited from SimpleAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__hash__(self)
Returns hash of the payload value
__init__(self, value=None)
Store ASN.1 value
__nonzero__(self)
Returns true if value is true
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
componentFactoryBorrow(self, value=None)
get(self)
Get a value from object
getTerminal(self)
set(self, value)
Set a value to object

Data and other attributes inherited from SimpleAsn1Object:
NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
tagFormat = 0

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from SimpleAsn1Object:
berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible
decode = berDecode(self, input)
berDecode(input) -> (value, rest)
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
encode = berEncode(self, value=None)
berEncode() -> octet string
 
BER encode object payload whenever possible

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class Sequence(RecordTypeAsn1Object, SequenceMixIn)
    ASN.1 SEQUENCE object
 
 
Method resolution order:
Sequence
RecordTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
Asn1Object
SequenceMixIn
OrderedFixedTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
SimpleAsn1Object
BerObject

Data and other attributes defined here:
tagId = 16

Methods inherited from RecordTypeAsn1Object:
__init__(self, **kwargs)
Store dictionary args
__setitem__(self, key, value)
Set component by key & value

Data and other attributes inherited from RecordTypeAsn1Object:
fixedComponents = []
fixedNames = []

Methods inherited from FixedTypeAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__getitem__(self, key)
Return component by key
__hash__(self)
Returns hash of the payload value
__len__(self)
Get length of the object
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
get(self, key, default=None)
Lookup by key with default
has_key(self, key)
Return true if key exists
items(self)
Return a list of tuples (key, value)
keys(self)
Return a list of keys
update(self, dict)
Merge dict to ourselves
values(self)
Return a list of values

Data and other attributes inherited from StructuredAsn1Object:
tagFormat = 32

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
allowedTypes = ()
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from OrderedFixedTypeAsn1Object:
berDecode(self, input)
berDecode(input) -> rest
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
decode = berDecode(self, input)
berDecode(input) -> rest
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.

Methods inherited from FixedTypeAsn1Object:
berEncode(self)
Choose optimised version of berEncode for this class
berEncodeWOutSub(self)
berEncodeWSub() -> octet string
 
For classes which do *not* have a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
berEncodeWSub(self)
berEncodeWSub() -> octet string
 
For classes which *have* a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
encode = berEncode(self)
Choose optimised version of berEncode for this class

Methods inherited from StructuredAsn1Object:
berUnwrapHeader(self, input)
Decode BER header, return (data, rest)
berWrapHeader(self, input)
Add BER header to data chunk if needed

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class SequenceOf(VariableTypeAsn1Object, SequenceOfMixIn)
    ASN.1 SEQUENCE OF object
 
 
Method resolution order:
SequenceOf
VariableTypeAsn1Object
StructuredAsn1Object
Asn1Object
SequenceOfMixIn
OrderedVariableTypeAsn1Object
VariableTypeAsn1Object
StructuredAsn1Object
SimpleAsn1Object
BerObject

Data and other attributes defined here:
tagId = 16

Methods inherited from VariableTypeAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__delitem__(self, idx)
Remove object by subscription
__getitem__(self, idx)
Get object by subscription
__hash__(self)
Returns hash of the payload value
__init__(self, *args)
Store possible components
__len__(self)
__repr__(self)
Return native representation of instance payload
__setitem__(self, idx, value)
Set object by subscription
__str__(self)
Return string representation of class instance
append(self, value)
Append object to end
clear(self)
componentFactoryBorrow(self)
componentFactoryReturn(self, *vals)
extend(self, values)
Extend list by appending list elements
index(self, idx)
insert(self, idx, value)
Insert object before index
pop(self, idx=None)
Remove and return item at index (default last)

Data and other attributes inherited from VariableTypeAsn1Object:
initialValue = []
protoComponent = None

Data and other attributes inherited from StructuredAsn1Object:
tagFormat = 32

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
allowedTypes = ()
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from VariableTypeAsn1Object:
berDecode(self, input)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
berEncode(self, args=[])
berEncode() -> octet string
 
BER encode object payload whenever possible
decode = berDecode(self, input)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
encode = berEncode(self, args=[])
berEncode() -> octet string
 
BER encode object payload whenever possible

Methods inherited from StructuredAsn1Object:
berUnwrapHeader(self, input)
Decode BER header, return (data, rest)
berWrapHeader(self, input)
Add BER header to data chunk if needed

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class Set(RecordTypeAsn1Object, SetMixIn)
    ASN.1 SET object
 
 
Method resolution order:
Set
RecordTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
Asn1Object
SetMixIn
UnorderedFixedTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
SimpleAsn1Object
BerObject

Data and other attributes defined here:
tagId = 17

Methods inherited from RecordTypeAsn1Object:
__init__(self, **kwargs)
Store dictionary args
__setitem__(self, key, value)
Set component by key & value

Data and other attributes inherited from RecordTypeAsn1Object:
fixedComponents = []
fixedNames = []

Methods inherited from FixedTypeAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__getitem__(self, key)
Return component by key
__hash__(self)
Returns hash of the payload value
__len__(self)
Get length of the object
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
get(self, key, default=None)
Lookup by key with default
has_key(self, key)
Return true if key exists
items(self)
Return a list of tuples (key, value)
keys(self)
Return a list of keys
update(self, dict)
Merge dict to ourselves
values(self)
Return a list of values

Data and other attributes inherited from StructuredAsn1Object:
tagFormat = 32

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
allowedTypes = ()
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from UnorderedFixedTypeAsn1Object:
berDecode(self, input)
berDecode(input) -> rest
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
decode = berDecode(self, input)
berDecode(input) -> rest
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.

Methods inherited from FixedTypeAsn1Object:
berEncode(self)
Choose optimised version of berEncode for this class
berEncodeWOutSub(self)
berEncodeWSub() -> octet string
 
For classes which do *not* have a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
berEncodeWSub(self)
berEncodeWSub() -> octet string
 
For classes which *have* a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
encode = berEncode(self)
Choose optimised version of berEncode for this class

Methods inherited from StructuredAsn1Object:
berUnwrapHeader(self, input)
Decode BER header, return (data, rest)
berWrapHeader(self, input)
Add BER header to data chunk if needed

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class SetOf(VariableTypeAsn1Object, SetOfMixIn)
    ASN.1 SET OF object
 
 
Method resolution order:
SetOf
VariableTypeAsn1Object
StructuredAsn1Object
Asn1Object
SetOfMixIn
UnorderedVariableTypeAsn1Object
VariableTypeAsn1Object
StructuredAsn1Object
SimpleAsn1Object
BerObject

Data and other attributes defined here:
tagId = 17

Methods inherited from VariableTypeAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__delitem__(self, idx)
Remove object by subscription
__getitem__(self, idx)
Get object by subscription
__hash__(self)
Returns hash of the payload value
__init__(self, *args)
Store possible components
__len__(self)
__repr__(self)
Return native representation of instance payload
__setitem__(self, idx, value)
Set object by subscription
__str__(self)
Return string representation of class instance
append(self, value)
Append object to end
clear(self)
componentFactoryBorrow(self)
componentFactoryReturn(self, *vals)
extend(self, values)
Extend list by appending list elements
index(self, idx)
insert(self, idx, value)
Insert object before index
pop(self, idx=None)
Remove and return item at index (default last)

Data and other attributes inherited from VariableTypeAsn1Object:
initialValue = []
protoComponent = None

Data and other attributes inherited from StructuredAsn1Object:
tagFormat = 32

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
allowedTypes = ()
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from VariableTypeAsn1Object:
berDecode(self, input)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
berEncode(self, args=[])
berEncode() -> octet string
 
BER encode object payload whenever possible
decode = berDecode(self, input)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
encode = berEncode(self, args=[])
berEncode() -> octet string
 
BER encode object payload whenever possible

Methods inherited from StructuredAsn1Object:
berUnwrapHeader(self, input)
Decode BER header, return (data, rest)
berWrapHeader(self, input)
Add BER header to data chunk if needed

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
Functions
       
delslice(...)
delslice(a, b, c) -- Same as del a[b:c].
getslice(...)
getslice(a, b, c) -- Same as a[b:c].
setslice(...)
setslice(a, b, c, d) -- Same as a[b:c] = d.

 
Data
        __all__ = ['Boolean', 'Integer', 'BitString', 'OctetString', 'Null', 'ObjectIdentifier', 'Real', 'Enumerated', 'Sequence', 'SequenceOf', 'Set', 'SetOf', 'Choice']