summaryrefslogtreecommitdiff
path: root/pysnmp/proto/secmod/base.py
diff options
context:
space:
mode:
authorelie <elie>2004-11-12 14:21:27 +0000
committerelie <elie>2004-11-12 14:21:27 +0000
commit5895190d841fae5e8a350c33a884a6eda66d6c19 (patch)
treeafb4f696f8c6d00d7d4575369768a886bbc70749 /pysnmp/proto/secmod/base.py
parent0a91e3d859e42eaad638050e6287e7285043754f (diff)
downloadpysnmp-git-5895190d841fae5e8a350c33a884a6eda66d6c19.tar.gz
Moved from the top-level under the roof of v4 API
Diffstat (limited to 'pysnmp/proto/secmod/base.py')
-rw-r--r--pysnmp/proto/secmod/base.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/pysnmp/proto/secmod/base.py b/pysnmp/proto/secmod/base.py
new file mode 100644
index 00000000..769b42d4
--- /dev/null
+++ b/pysnmp/proto/secmod/base.py
@@ -0,0 +1,21 @@
+from pysnmp.proto.secmod import error
+
+class AbstractSecurityModel:
+ def __init__(self, mibInstrumController=None):
+ self.mibInstrumController = mibInstrumController
+ self.__cacheEntries = {}
+
+ def processIncomingMsg(self, msg, **kwargs):
+ raise error.BadArgumentError(
+ 'Security model %s not implemented' % self
+ )
+
+ def generateRequestMsg(self, msg, **kwargs):
+ raise error.BadArgumentError(
+ 'Security model %s not implemented' % self
+ )
+
+ def generateResponseMsg(self, msg, **kwargs):
+ raise error.BadArgumentError(
+ 'Security model %s not implemented' % self
+ )