OPSI.ldaptor.protocols.pureber module¶
Pure, simple, BER encoding and decoding
-
class
OPSI.ldaptor.protocols.pureber.BERBoolean(value=None, tag=None)¶ Bases:
OPSI.ldaptor.protocols.pureber.BERBase-
classmethod
fromBER(klass, tag, content, berdecoder=None)¶
-
tag= 1¶
-
classmethod
-
class
OPSI.ldaptor.protocols.pureber.BERDecoderContext(fallback=None, inherit=None)¶ -
Identities= {1: <class OPSI.ldaptor.protocols.pureber.BERBoolean>, 2: <class OPSI.ldaptor.protocols.pureber.BERInteger>, 4: <class OPSI.ldaptor.protocols.pureber.BEROctetString>, 5: <class OPSI.ldaptor.protocols.pureber.BERNull>, 10: <class OPSI.ldaptor.protocols.pureber.BEREnumerated>, 16: <class 'OPSI.ldaptor.protocols.pureber.BERSequence'>, 17: <class 'OPSI.ldaptor.protocols.pureber.BERSet'>}¶
-
inherit()¶
-
lookup_id(id)¶
-
-
class
OPSI.ldaptor.protocols.pureber.BEREnumerated(value=None, tag=None)¶ Bases:
OPSI.ldaptor.protocols.pureber.BERInteger-
tag= 10¶
-
-
exception
OPSI.ldaptor.protocols.pureber.BERException¶ Bases:
exceptions.Exception
-
exception
OPSI.ldaptor.protocols.pureber.BERExceptionInsufficientData¶ Bases:
exceptions.Exception
-
class
OPSI.ldaptor.protocols.pureber.BERInteger(value=None, tag=None)¶ Bases:
OPSI.ldaptor.protocols.pureber.BERBase-
classmethod
fromBER(klass, tag, content, berdecoder=None)¶
-
tag= 2¶
-
value= None¶
-
classmethod
-
class
OPSI.ldaptor.protocols.pureber.BERNull(tag=None)¶ Bases:
OPSI.ldaptor.protocols.pureber.BERBase-
classmethod
fromBER(klass, tag, content, berdecoder=None)¶
-
tag= 5¶
-
classmethod
-
class
OPSI.ldaptor.protocols.pureber.BEROctetString(value=None, tag=None)¶ Bases:
OPSI.ldaptor.protocols.pureber.BERBase-
classmethod
fromBER(klass, tag, content, berdecoder=None)¶
-
tag= 4¶
-
value= None¶
-
classmethod
-
class
OPSI.ldaptor.protocols.pureber.BERSequence(value=None, tag=None)¶ Bases:
OPSI.ldaptor.protocols.pureber.BERStructured,UserList.UserList-
classmethod
fromBER(klass, tag, content, berdecoder=None)¶
-
tag= 16¶
-
classmethod
-
class
OPSI.ldaptor.protocols.pureber.BERSequenceOf(value=None, tag=None)¶
-
class
OPSI.ldaptor.protocols.pureber.BERSet(value=None, tag=None)¶ Bases:
OPSI.ldaptor.protocols.pureber.BERSequence-
tag= 17¶
-
-
class
OPSI.ldaptor.protocols.pureber.BERStructured(tag=None)¶ Bases:
OPSI.ldaptor.protocols.pureber.BERBase-
identification()¶
-
-
exception
OPSI.ldaptor.protocols.pureber.UnknownBERTag(tag, context)¶ Bases:
exceptions.Exception
-
OPSI.ldaptor.protocols.pureber.ber2int(e, signed=True)¶
-
OPSI.ldaptor.protocols.pureber.berDecodeLength(m, offset=0)¶ Return a tuple of (length, lengthLength). m must be atleast one byte long.
-
OPSI.ldaptor.protocols.pureber.berDecodeMultiple(content, berdecoder) → [objects]¶ Decodes everything in content and returns a list of decoded objects.
All of content will be decoded, and content must contain complete BER objects.
-
OPSI.ldaptor.protocols.pureber.berDecodeObject(context, string) -> (berobject, bytesUsed)¶ berobject may be None.
-
OPSI.ldaptor.protocols.pureber.int2ber(i, signed=True)¶
-
OPSI.ldaptor.protocols.pureber.int2berlen(i)¶
-
OPSI.ldaptor.protocols.pureber.need(buf, n)¶